Skip to content

Instantly share code, notes, and snippets.

eliashussary / metabase-postgres.docker-compose.yml
Created Dec 11, 2018
A docker-compose file for metabase with postgres.
View metabase-postgres.docker-compose.yml
version: "3"
image: postgres
restart: always
- 5432:5432

Install RabbitMQ on CentOS 7

sudo yum -y install epel-release
sudo yum -y update

Install Erlang

Download repository

sergiotabanelli /
Last active Oct 25, 2018
MYSQLND_MS REVAMPED: Single and multi-master read/write consistency enforcing in MySQL asynchronous clusters with PHP and mysqlnd_ms extension

MYSQLND_MS REVAMPED: Single and multi-master read/write consistency enforcing in MySQL asynchronous clusters with PHP and mysqlnd_ms extension

NOTE: The service level and consistency feature is one of the most changed areas of the mymysqlnd_ms fork. Functionalities like server side read consistency and server side write consistency allow transparent migration to MySQL asyncronous clusters in almost all use cases with no or at most extremely small effort and application changes.

Different types of MySQL cluster solutions offer different service and data consistency levels to their users. Any asynchronous MySQL replication cluster offers eventual consistency by default. A read executed on an asynchronous slave may return current, stale or no data at all, depending

peatiscoding /
Created Jan 24, 2018
a script to convert your docker-compose.yml (version 2) with build node to image node; this script required DOCKERHUB_USER environment available.
import os
import subprocess
import time
import yaml
import re
user_name = os.environ.get("DOCKERHUB_USER")
abstractart /
Last active Jul 3, 2020
Free Programming Ebooks - O'Reilly Media. Codeship free ebooks here -

CentOS 7 Fails to Boot - XFS Corrupt - Enters Emergency Mode

bash xfs_repair -L /dev/mapper/centos-root

Networking Issues

Stop NetworkManager.

bash service NetworkManager stop

View Shopify Shipping Scripts - Free Shipping if cart is over X
min_discount_order_amount = * 50
total = Input.cart.subtotal_price_was
discount = if total > min_discount_order_amount
message = "Free shipping if order is over $50"
Input.shipping_rates.each do |shipping_rate|
motss / tips_increase_memory_limit_nodejs.js
Last active May 8, 2020
[TIPS] Increase memory limit in Node.js
View tips_increase_memory_limit_nodejs.js
// By default the memory limit in Node.js is 512MB.
// This will cause FATAL ERROR- JS Allocation failed – process out of memory when processing large data files.
// It can be avoided by increasing the memory limit.
node --max_old_space_size=1024 server.js // increase to 1gb
node --max_old_space_size=2048 server.js // increase to 2gb
node --max_old_space_size=3072 server.js // increase to 3gb
node --max_old_space_size=4096 server.js // increase to 4gb
node --max_old_space_size=5120 server.js // increase to 5gb
node --max_old_space_size=6144 server.js // increase to 6gb
Dillie-O / get_all_media.ps1
Created Oct 20, 2016
PowerShell script to iterate all containers and blobs in a storage account and download it.
View get_all_media.ps1
$destination_path = 'C:\Users\dilli\Downloads\media_dump'
$connection_string = '[AZURE_STORAGE_CONNECTION_STRING]'
$storage_account = New-AzureStorageContext -ConnectionString $connection_string
$containers = Get-AzureStorageContainer -Context $storage_account
Write-Host 'Starting Storage Dump...'
foreach ($container in $containers)
francois-blanchard /
Last active Jul 2, 2020
How to debug a failed build

How to debug a failed build

1/ Go to travais build


2/ Connect to travis build with ssh

You can’t perform that action at this time.