- npm install from public repo
- use of github URLs for private dependencies:
- PRO: easy to use, using #master always fetches latests
- BAD: npm install downloads every time, need to npm link or rm -rf node_modules to make sure
- rebuild of consolidated/minified files every time, using Git version
- BAD: results in consistent build overwriting
- IMPROVE: using hash of result and upload to cloudfront
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://testflightapp.com/install/0ad4aa4dee1873848fd900cb9bc14d61-MTMyMTk5Mjk/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Proof of concept of monkey patching net.connect to make it support SRV records | |
// If require a monkey patched connect function before any other requires we can make a generic fix for handling SRV records | |
// We need of course to handle a few different cases & more robust error handling | |
// We can require a lib and even specify a filter for which hosts to resolve SRV and which not | |
var net = require('net'); | |
var dns = require('dns'); | |
// Set a specific Nameserver to be used | |
dns.setServers(['172.17.42.1']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DOCKER_IP=$(ip addr show docker0|grep "inet "|sed -e 's/^[ ]*//g'| cut -d ' ' -f 2| cut -d '/' -f 1) | |
docker stop redis_0 | |
docker stop redis_1 | |
docker stop sentinel_0 | |
docker stop sentinel_1 | |
docker stop sentinel_2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Created vm ubuntu 14.04 | |
Tried installing via apt-get install youtube-dl | |
- kept getting errors on Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> | |
- this is a bug when using python2 (default on ubuntu) | |
- So remove the apt package | |
Install via pip: | |
- apt-get install pip | |
- alias python=`/usr/bin/python3` | |
- pip install youtube-dl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/bash | |
# Copyright (c) 2011 Float Mobile Learning | |
# http://www.floatlearning.com/ | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the "Software"), | |
# to deal in the Software without restriction, including without limitation | |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
# and/or sell copies of the Software, and to permit persons to whom the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Looking for the correct syntax | |
rsync -avz <host-dir> | docker exec rsync --server --daemon <inside-container-dir> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem instal veewee | |
#if needed replace amd64 with i386 | |
vagrant basebox define 'lucid-box' 'ubuntu-10.04.1-server-amd64' | |
#for tweeking look at definitions/lucid-box/ | |
vagrant basebox build 'lucid-box' | |
vagrant basebox export 'lucid-box' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://www.freebsd.org/doc/en_US.ISO8859-1/articles/remote-install/installation.html | |
dd if=/dev/zero of=/dev/ad4 count=2 | |
#bsdlabel -wB /dev/ad4 | |
sysctl kern.geom.debugflags=16 | |
cat <<EOF >/install.cfg | |
# This is the installation configuration file for our rackmounted FreeBSD | |
# cluster machines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## VagrantFile | |
config.vm.provision :puppet do |puppet| | |
puppet.pp_path = "/tmp/vagrant-puppet" | |
puppet.manifests_path = "manifests" | |
puppet.module_path = "modules" | |
puppet.manifest_file = "newbox.pp" | |
end | |
## modules/newbox.pp (what the box needs) | |
include pxe-server |
OlderNewer