Skip to content

Instantly share code, notes, and snippets.

Patrick Debois jedi4ever

Block or report user

Report or block jedi4ever

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jedi4ever /
Created Mar 18, 2014
Nodejs & Versioning etc.. in Continous Delivery

Current setup

  • 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

Improved flow:

View gist:855464178ff623d4def0
jedi4ever / gist:8da590c05d66ffbdcffb
Last active Aug 29, 2015
monkey patch net.connect nodejs to support SRV records
View gist:8da590c05d66ffbdcffb
// 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
jedi4ever / gist:b6013f313aacdac844bf
Created May 19, 2015
redis - redis sentinel - docker setup
View gist:b6013f313aacdac844bf
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
View Notes on downloading devopsdays vimeo archive
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
jedi4ever /
Last active Aug 29, 2015 — forked from mediabounds/
A small bash script to re-sign iOS applications.
# !/bin/bash
# Copyright (c) 2011 Float Mobile Learning
# 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
View gist:5d916c1b1c2d767f3f65
Looking for the correct syntax
rsync -avz <host-dir> | docker exec rsync --server --daemon <inside-container-dir>
jedi4ever / gist:818432
Created Feb 9, 2011
create vagrant - lucid box with veewee
View gist:818432
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'
jedi4ever / Scripted Install.cfg - Freebsd
Created Feb 11, 2011
Why is sysinstall not creating the partitions?
View Scripted Install.cfg - Freebsd
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
View gist:827638
## 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"
## modules/newbox.pp (what the box needs)
include pxe-server
You can’t perform that action at this time.