Skip to content

Instantly share code, notes, and snippets.


mwanjajoel mwanjajoel

View GitHub Profile
ankurk91 /
Last active Nov 23, 2021
Laravel Horizon, redis-server, supervisord on Ubuntu 20 server

Laravel Horizon, redis-server, supervisord on Ubuntu server

Laravel 8.x, Horizon 5.x, Redis 6.x

Parepare application

  • Install and configure Laravel Horizon as instructed in docs
  • Make sure you can access the Horizon dashboard like -
  • For now it should show status as inactive on dashbaord

Install redis-server

berkedel /
Created Apr 4, 2018
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib

How to solve dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib

brew uninstall --ignore-dependencies node icu4c
brew install node
Betree /
Created Aug 19, 2017
Verify Gitlab CI config (.gitlab-ci.yml) using command line

Test your CI config upon API

You need to install js-yaml-cli first :

npm install -g js-yaml-cli

Example :

> ./
{"status":"invalid","errors":["variables config should be a hash of key value pairs"]}%  
janzell / force-drop-table-bypass-foreign-key.sql
Last active Aug 15, 2021
Force Drop Mysql Table - Bypassing foreign key constraint
View force-drop-table-bypass-foreign-key.sql
SET foreign_key_checks = 0;
drop table TABLE_NAME
SET foreign_key_checks = 1;
View image-queue.js
'use strict';
// Dependencies
const gcloud = require('google-cloud', {
projectId: 'sara-bigquery',
keyfileName: 'keyfile.json'
const vision =;
const fs = require('fs');
const async = require('async');
View gist:c34b3b803928a22631df
#!/bin/env sh
lines=$(tput lines)
cols=$(tput cols)
nicerobot /
Last active Oct 29, 2021
Mac OS X uninstall script for packaged install of node.js from

To run this, you can try:

curl -ksO
chmod +x ./