Skip to content

Instantly share code, notes, and snippets.

View Gronghon's full-sized avatar
😕
I may be slow to respond.

Gronghon

😕
I may be slow to respond.
  • 06:41 (UTC +01:00)
View GitHub Profile
@Gronghon
Gronghon / Scrapy Tor Vidalia Polipo.md
Last active January 21, 2018 22:11
Installer Tor et Polipo pour Scrapy sur Windows 10
@Gronghon
Gronghon / gitbashAdmin.bat
Created July 26, 2016 21:19 — forked from yoavniran/gitbashAdmin.bat
ConEmu - Run GitBash as Admin
"%ConEmuDrive%\Program Files (x86)\Git\bin\sh.exe" --login -i -new_console:a
@Gronghon
Gronghon / sort_array.php
Created February 8, 2016 21:37
php sort array
<?php
$tableau = array(
"id_cat4" => array(
"zom_cat1",
"éom_cat1" => array(
"nom_elem3" => "description_elem1",
"nom_elem2" => "description_elem2",
"nom_elem1" => "description_elem2"
),
@Gronghon
Gronghon / [docker] mount shared folder.txt
Last active January 19, 2016 21:26
How to mount a shared folder on a docker machine (draft)
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
Host : Windows 10
@Gronghon
Gronghon / snippets.sh
Created June 3, 2014 13:36
shell snippets
#nombre de fichiers dans le répertoire courant inluant les sous répertoires
find . -name \* | wc -l
#exécuter le script courant dans vim
:w | !/bin/bash %
#Modifier les droits sur des répertoires X
chmod -R a+rX *
@Gronghon
Gronghon / 0_reuse_code.js
Created May 3, 2014 14:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#
# Run as root
# $ bash <(curl -s https://raw.github.com/gist/1631411)
#
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential git-core curl \
libssl-dev \
#rightCol { display:none; }
#pagelet_bookmark_nav div { display:none; }
.homeWiderContent div#contentArea { width:auto!important; padding-right:0!important;}
.uiStreamMessage .actorName a, .uiStreamMessage .passiveName { color:#C11F1F!important; font-size:14px; font-weight: normal!important; font-style: italic }
.uiStreamHomepage > li { border-top: 1px solid #ccc!important; border-bottom: 1px solid #ccc!important; }
@Gronghon
Gronghon / git user (reminder)
Created July 21, 2013 21:21
create a git user on debian without password and with git shell
sudo adduser \
--system \
--shell /usr/bin/git-shell \
--gecos 'git version control' \
--group \
--disabled-password \
--home /home/git \
git
user www-data;
worker_processes 2;
pid /run/nginx.pid;
events {
worker_connections 768;
multi_accept on;
}
http {