Skip to content

Instantly share code, notes, and snippets.


johackim johackim

View GitHub Profile
View firewall.php
/* PHP Firewall: Universal Firewall for WebSite */
/* ============================================ */
/* Write by Cyril Levert */
/* Copyright (c) 2009-2010 */
/* */
/* */
/* Others projects: */
/* CMS PHP Maximus ( with mysql database ) */
View colorchart
echo -e "\n 40m 41m 42m 43m\
44m 45m 46m 47m";
for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \
'1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \
' 36m' '1;36m' ' 37m' '1;37m';
johackim / Dockerfile
Created Apr 23, 2016 — forked from callahad/Dockerfile
Preliminary Firefox Sync Dockerfile
View Dockerfile
FROM debian:7.4
MAINTAINER Dan Callahan <>
RUN apt-get update --fix-missing
RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
vim curl locales \
&& apt-get clean
RUN locale-gen C.UTF-8 && LANG=C.UTF-8 /usr/sbin/update-locale
johackim / arch-linux-install
Last active Sep 9, 2016 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
View arch-linux-install
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide ( contains a more verbose description.
# Download the archiso image from
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# This assumes a wifi only system...
View gist:f6bb30ba0dbb08b665916f44ec473f2f
# Block bad user agents
if ($http_user_agent ~* (spbot|libwww-perl|DotBot|Sogou-Test-Spider|ia_archiver|agbot|GeoHasher|TurnitinBot|JikeSpider|voilabot|Sosospider|Wayback|80legs|coccoc|YodaoBot|Exabot|Nutch|DigExt|SeznamBot|discoverybot|MJ12bot|SearchmetricsBot|SEOstats|GrapeshotCrawler|YandexBot|meanpathbot|YYSpider|Yeti|MyNutchTest|CareerBot|Wotbox|A6-Indexer|sogou|seoresearch|accelobot|Alcohol|WebMoney|||aboutthedomain|Zeus|larbin|BlackWidow|Custo|DISCo|eCatch|EirGrabber|EmailSiphon|EmailWolf|WebPictures|ExtractorPro|EyeNetIE|FlashGet|GetRight|Go-Ahead-Got-It|GrabNet|Grafula|HMView|Stripper|Sucker|InterGET|Ninja|JetCar|libghttp|LeechFTP|Downloader|MIDown|Missigua|Mister|Navroad|NearSite|NetAnts|NetSpider|Vampire|NetZIP|PageGrabber|Papa|pavuk|RealDownload|ReGet|SiteSnagger|SmartDownload|SuperBot|SuperHTTP|Surfbot|tAkeOut|Teleport|VoidEYE|WebAuto|WebCopier|WebFetch|WebGo|WebLeacher|WebReaper|WebSauger|eXtractor|Quester|WebStripper|WebWhacker|WebZIP|WWWOFFLE|Alexibot||a
echo "Welcome to your favourite script!"
read -r -p "Are you sure you want to execute it? [y/N] " response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]
echo "Execution in progress..."
# Write your action here
echo "Action canceled."


Les US sont décrits en anglais. Cela permet l'utilisation de l'Ubiquituous Language depuis les US jusque dans le code, en passant par les tests.


On utilise le formalisme Behavior-Driven Development:


Git Cheat Sheet


git clone
git init
git config [--global] <pseudo>
johackim /
Last active Nov 17, 2016
Global install


  • sudo
  • zsh
  • vim
  • vim-nox
  • vim-gui-common
  • git
  • git-svn
  • git-flow
  • conky
johackim / Vagrantfile
Last active Nov 20, 2016
Vagrantfile ubuntu/xenial64 for rancher
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
You can’t perform that action at this time.