Skip to content

Instantly share code, notes, and snippets.

View sergeycherepanov's full-sized avatar
:bowtie:
Focusing

S.Cherepanov sergeycherepanov

:bowtie:
Focusing
View GitHub Profile
etcd:
image: kubernetes/etcd:2.0.5.1
net: "host"
command: /usr/local/bin/etcd --addr=127.0.0.1:4001 --bind-addr=0.0.0.0:4001 --data-dir=/var/etcd/data
master:
image: gcr.io/google_containers/hyperkube:v0.14.1
net: "host"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/sebgoa/master.json:/etc/kubernetes/manifests/master.json
@joshwand
joshwand / gist:1074244
Created July 10, 2011 03:53
How to fix "libiconv is missing" problem installing Nokogiri on 10.6 with MacPorts

When installing Nokogiri on 10.6 with macports, the build fails because libiconv is missing:


Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
       ERROR: Failed to build gem native extension.

/Users/jmacdonald/.rvm/rubies/ruby-1.8.7-p174/bin/ruby extconf.rb
checking for libxml/parser.h... yes
@SchumacherFM
SchumacherFM / cron.sh
Created August 18, 2014 00:06
Magento cron.sh file for OSX
#!/bin/sh
# location of the php binary
if [ ! "$1" = "" ] ; then
CRONSCRIPT=$1
else
CRONSCRIPT=cron.php
fi
MODE=""
if [ ! "$2" = "" ] ; then
@gordonturner
gordonturner / KVM OVMF.md
Last active September 21, 2016 12:30
KVM OVMF
@shirkey
shirkey / install_dokku_to_debian_wheezy
Created February 21, 2014 17:54
Installation of Dokku to Debian Wheezy -- fixes some repository pointers that would otherwise fail during the standard installation script for Dokku v0.2.1
#######################################################################################################################
#
# Purpose: Bash script to fix a few elements of the default Dokku script with running correctly on Debian Wheezy
# Author: Shirkey <dev@shirkey.me>
# License: MIT
# Tested with:
# * Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux
# * v0.2.1 of Dokku installer script
#
#######################################################################################################################
@tuanpmt
tuanpmt / php7_build_ubuntu15.04.sh
Created December 4, 2015 07:32 — forked from m1st0/php_build_ubuntu.sh
Compiling PHP 7 on Ubuntu 15.04 with LDAP Support
#! /bin/bash
## PHP 7 Initial Compile ##
## Some help from the various places like these. ##
# http://www.zimuel.it/install-php-7/
# http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu
## Setup Ubuntu 15.04 ##
# I like the speed of Apt-Fast. Will check for installs some other day.
sudo apt-get install apt-fast
@michaeljota
michaeljota / webpack-shell-plugin.js
Last active March 27, 2019 16:28
A webpack shell plugin to hock command after and before the build. All credits to original author: Yair Tavor. http://stackoverflow.com/a/35337516. I just classed it.
'use strict';
const exec = require('child_process').exec;
function puts(error, stdout, stderr) {
console.log(stdout);
}
class WebpackShellPlugin {
constructor(options) {
@arudmin
arudmin / syncthing
Last active June 8, 2019 17:44
/etc/init.d/syncthing script for Raspberry Pi (or any Ubuntu/Debian)
#!/bin/sh
### BEGIN INIT INFO
# Provides: syncthing
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Multi-user daemonized version of syncthing.
@ruebenramirez
ruebenramirez / create-orders-programmatically.md
Created May 5, 2016 16:38
magento create orders programmatically
@dz1984
dz1984 / utils.go
Created March 25, 2014 06:22
Utility Functions with Golang.
package utils
import (
"bufio"
"fmt"
"io/ioutil"
"os"
)
func IsExists(path string) bool {