Skip to content

Instantly share code, notes, and snippets.

Avatar

mwanjajoel mwanjajoel

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

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 - http://yourapp.com/horizon
  • For now it should show status as inactive on dashbaord

Install redis-server

@berkedel
berkedel / flow-error-icu4c-not-loaded.md
Created Apr 4, 2018
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib
View flow-error-icu4c-not-loaded.md

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
Betree / README.md
Created Aug 19, 2017
Verify Gitlab CI config (.gitlab-ci.yml) using command line
View README.md

Test your CI config upon Gitlab.com API

You need to install js-yaml-cli first :

npm install -g js-yaml-cli

Example :

> ./check_gitlab_ci.sh
{"status":"invalid","errors":["variables config should be a hash of key value pairs"]}%  
@janzell
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 = gcloud.vision();
const fs = require('fs');
const async = require('async');
View gist:c34b3b803928a22631df
#!/bin/env sh
lines=$(tput lines)
cols=$(tput cols)
awkscript='
{
letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"
lines=$1
@nicerobot
nicerobot / README.md
Last active Oct 29, 2021
Mac OS X uninstall script for packaged install of node.js from https://stackoverflow.com/a/9287292/23056
View README.md

To run this, you can try:

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh