Launching with yarn and npm side by side
21 May, 2021As a person working with different people indifferent repos, mixing up npm with yarn and inconsistent script names to start the project…
As a person working with different people indifferent repos, mixing up npm with yarn and inconsistent script names to start the project…
I lovehate putting state in the url. You can create complex wizards or flows with a shareable url-state which you can store or send to a…
There's often a couple of Raspberry Pi laying around, or an old laptop. Let's make it into a status screen, that'll show any URL on boot…
There's system logs and there's application logs. System logs are quite similar across different services. HTTP servers typically include…
Git bisect is the underutilized superhero of debugging. To use it effectively, keep your commits small and simple – and write tests. Add a…
When loading webfonts, there's a few tricks you can use to speed up the performance: Preconnect to external sources that deliver content…
This is a guide on how to setup Passbolt on Heroku using Docker image , shit, AWS using Elastic Beanstalk with Docker , fuck AWS EC…
I like ESLint. But I don't quite understand how the setup works. Let's learn it! Installation Getting Started with ESLint tells us to go get…
Going from mapStateToProps and mapStateToDispatch to useDispatch, useSelector or custom hooks: What's the benefits? Does typing…
A small guide on how to use ClickUps integration with Github. But first, let's do three quick questions: A good text saves them time by…
Converting mp4 to gif on can be done with ffmpeg . On a Mac it can be done from command line with the following script: Now you can convert…
Every ~4 years, I'm getting a new Mac. It has happened a few times now, so I thought I might as well make a setup guide for next time. Also…
Do you know the feeling when you see your family drag their mouse over some text to select it, right clicking to find the Copy command…
A few rules of thumb for Github Pull requests. Use Draft until the PR is ready If I'm planning to change any meaningful part of the pull…
Here's how to find the location of the postgres logs on my machine, setting them to logging everything , and watching it's output.…
From time to time, I'd like to see how the performance gain/loss was after a code change. Say I've updated locahost:8000/search and I'd like…
A 1-2-3 on Python3 boto3 package with my most common operations Copy object between two S3 buckets Upload file to S3 bucket Create…
Create an AWS Lambda function with Python3 and integrate with S3? Simple when you know how – though getting there can be tricky. Do Amazon…
I've heard multiple say that creating a chrome extension is about as easy as creating a static web page. Is it really? Here's a step-by-step…
Notes on adding a Google Service worker that enables you to query Google Analytics with an access token. Create service user and add key…
The manifest.json for web apps can make your mobile experience a bit sweeter. Force rotation? Check! Home screen icon? Check! Splash…
If Custom Slash commands weren't enough for you, or if you are trapped behind a firewall without the option to make public endpoints, bots…
Imagine begin able to open Slack, and write And then having a small bot on the other end saying Or /app web to receive current deployed…
If you haven't already, try to add the Beanstalk application in your environment using only the eb command (see own post ). What we do…
"The EC2 instances failed to communicate with AWS Elastic Beanstalk." FUDGE! Notes on how to successfully launch a Beanstalk instance in a…
Wow, such easy, much free! A few simple steps on How to obtain a certificate for your domain How to use it on your CloudFront or Elastic…
Some notes on using AWS for handling DNS and e-mail. Task 1 : example.com, www.example.com should go to some Cloudfront, and api.example…
I have a "stupid computer" whos job is only to show a build screen. Its a debian, and I'd like for it to automatically reload the build page…
Beanstalk is quite nice. And the awsebcli looks nice too, along with its documentation and the example guide at pypi. You can deploy…
I have a Java app that runs on an regular Linux (EC2) instance, and logs to some folder on that machine. What I want is for Slack to be…
I have a few servers on AWS. Some information on those, e.g. high load, would be nice to be notified of. Preferably on Slack. How do I do…
Case: I have some frontend app that consists of static files, e.g. a React app packed with WebPack. I want to deploy it to S3, with…
Adding slack as an app in Freshdesk allows you to use observers and dispatcher in freshdesk to notify / recieve data from Slack. First, add…
If you already have a React web app, and consider porting it to a proper phone app, you should consider using React Native . However, you…
git is genious. Hands down brilliant. Every 6 months or so, I come across another command I didn't know I needed before I needed it. And…
Note: Your index.html will not be rendered when the short s3-path is requested (e.g. bucket.s3.amazonaws.com), only when the full dns is…
Simple notes on how to install hubot and add it to Slack Requires git, npm, heroku toolbelt and having added hubot-integration to slack…
How to grep tails and head
Open devtools Select Profiles Select Collect JavaScript CPU Profile Click Start Do the (typically slow) things you wish to record Click…
Sending SMS using twilio.com is nice, but it also costs money. If you want something free that you can use for your hobby projects, check…
Here's a simple step by step guide on how to create a s3 bucket, with an attached cloudfront and a user with write access. This is typically…
How to grep only the response headers Show headers response Show headers response as if you ask from google.com This might be useful when…
2021 update: This content is somewhat dated. Consider following the click-through guide at ihasabucket.it instead . Edit: I was going to…
Case: You want efficient collectstatic and serving of files You want static files and media files to be hosted on an AWS S3 bucket…
I changed the MEDIA_URL and STATIC_URL, but wanted the previously used urls "/media/" and "/static/" to rewrite to the new url. It would…
I was looking for WEB_CONCURRENCY environment variable on my Django-app. This is used for the number of concurrent webworkers for gunicorn…
Sometimes I clone a repository with Django and make a setup of the environment on my own machine. Then I would usually like to have some…
It has happened on more than one occasion that I want a new Django project, with Grunt, jQuery, Bootstrap, Font-Awesome etc, deployed on…
Edit: Stop what your doing. It's hurting, I know. Go read The Easy Way of Sending Newsletter Emails . Outlook Web App is horrible. https…
I'm new to the whole Bluetooth communication game, but in my case I've run into having to communicate using 8-bit usigned integer arrays (I…
Create a file .pythonrc in ~/.pythonrc Export it by adding this export to your profile file (if you use zsh, append to ~/.zprofile instead…
This little JavaScript snippet lets you easily decide (from another javascript function) to show a confirm-dialog (Bootstrap), and functions…
Case: You're using virtualenv and have used apache with a config somewhat like this . Problem: Apache 'goes to sleep' Reason: Apache…
Case I don't have sudo and life is awful on a cheap server / VPS. There is no python, or the wrong python version. How do I run my project…
Quick and dirty backup from remote SQL and FTP server Introduction The following is a quick and dirty, simple implementation of a backup…
Often, you have to deal with limited web hotels that only provide a customly made (and usually poor) administration page, FTP- and SQL…
Mounting remote ftp The following will mount your remote FTP-location in /mnt/my_ftp. Note that FTP is not secure, and you should combine…
Want to backup Case: I have a Wordpress page that stores stuff in MySQL database. I want to schedule a backup of the page, so that I am…
So you have created an event, and wish to invite all your friends (or all friends in a circle), but don't want to manually click all of them…
Requirements: You have an existing google analytics account You have a webpage to track events with How: Edit: If you're on ES6 with webpack…
Cron jobs run as root can be created with Cron jobs run as logged in user can be created with Existing cron jobs can be viewed by writing…
So, you have a git branch named BESTBRANCH and you have basically made it your master branch? If you want to get back on track, and make…
OK, so here's the thing. I use a Mac and I edit files located on a server somewhere on the Internet. I want to have the files and folders on…