<code>

The can of worms you wish you never opened…

Skip to content
Menu
  • Home
Posted on 27th October 201927th October 2019Javascript

Semantic Versioning : Rules for npm package versions

To avoid confusion and remember how semanic versioning woks in npm the following is useful: (source: https://docs.npmjs.com/about-semantic-versioning) Code status Stage Rule Example version First release…

Continue Reading
Posted on 27th October 2019Git

Retrieve a deleted file in a git repository

So… you deleted a file last week in your git repo and now you want it back? No problem: 1. Use git log –diff-filter=D –summary to get…

Continue Reading
Posted on 11th September 2019Laravel

How to run Laravel Homestead over HTTPS

Everything needs HTTPS nowadays, and even working locally can require HTTPS to function correctly. As was the case recently as I was trying to build…

Continue Reading
Posted on 15th August 2019Laravel

Setting up test suite with PhpStorm and Laravel Homestead

PhpStorm is awesome but setting it up to run the test suite with Homestead is annoying and something I always forget. It’s something you usually…

Continue Reading
Posted on 15th August 2019Server

How to install Homebrew on mac

Homebrew can be used to install various software very easily. Use this to install Homebrew ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” Use this to uninstall Homebrew…

Continue Reading
Posted on 1st August 20191st August 2019Random

Useful one liners…

Here are some useful one liners which I can never remember: Reset Server Time sudo date -s “$(wget -qSO- –max-redirect=0 google.com 2>&1 | grep Date:…

Continue Reading
Posted on 1st August 2019Laravel

Cancel all pending axios requests in Vue SPA on router change

Building requests with axios.js which include cancellation tokens is quite straight forward. You create a token and pass it in along with any other parameters.…

Continue Reading
Posted on 16th July 2019Server

Convert .ppk to .pem file

To convert .ppk to .pem on mac follow these steps: Install putty via homebrew ‘brew install putty’ Convert with: ‘$ puttygen key.ppk -O private-openssh -o…

Continue Reading
Posted on 3rd April 20193rd April 2019Laravel

@ import alias for vue files with Laravel mix / webpack

Importing vue components and files is easy however sometimes when in nested components import statements look like: import ../../../components/mycomponent This can be a problem, especially…

Continue Reading
Posted on 27th March 201927th March 2019Server

SSH quickly with SSH aliases

Speed up access via SSH by making aliases. This means that typing something like: ssh -i ‘~/.ssh/your-private-key’ user@myexampleserver.com Can be replaced with something simple to…

Continue Reading

Posts navigation

Page 1 Page 2 Next Page

Categories

  • Git
  • Javascript
  • Laravel
  • PHP
  • Random
  • Server
  • Vue

Recent Posts

  • Semantic Versioning : Rules for npm package versions
  • Retrieve a deleted file in a git repository
  • How to run Laravel Homestead over HTTPS
  • Setting up test suite with PhpStorm and Laravel Homestead
  • How to install Homebrew on mac
Andrew James Bibby
Alkane Theme by WPAlkane ⋅ Powered by WordPress