Skip to content

Instantly share code, notes, and snippets.

@satreix
satreix / docker.bash
Created October 21, 2016 21:15
PG Golang
docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres -p 5432:5432
@satreix
satreix / keybase.md
Created August 17, 2016 00:20
keybase.md

Keybase proof

I hereby claim:

  • I am satreix on github.
  • I am satreix (https://keybase.io/satreix) on keybase.
  • I have a public key whose fingerprint is 599B 4858 E7D4 388D 747A 6994 445D AC65 BD74 F67C

To claim this, I am signing this object:

MONO=mono
fact_package="fact.ff"
git clone git@bitbucket.org:shugo/fact.git
cd fact
make deploy
cd bin/Deploy
${MONO} ./FactExe.exe system install --create-package this -o ${fact_package}
${MONO} ./FactExe.exe system install --package ${fact_package}
#!/bin/sh
ret=1
SUMS="md5sums.txt"
OLD_SUMS=".latest_arch"
rm -rf $SUMS
wget http://archlinux.polymorf.fr/iso/latest/$SUMS 2> /dev/null
if [ ! -f $OLD_SUMS ]; then
sleep_screen() {
# Mute audio
osascript -e 'set volume output muted true'
#/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
pmset displaysleepnow
}
@satreix
satreix / custom_archlinux_live_USB.md
Last active March 15, 2024 10:32
Custom Arch Linux live USB

Custom Arch Linux live USB

Setup

Install the dependencies for the archiso package:

(root): pacman -S make squashfs-tools libisoburn dosfstools patch lynx devtools git

I recommend archiso getting them from git, there is a package in the repositories, however, at this time of writing, it will not work with the instructions below. So, grab the most recent version from git and install it:

(user): git clone git://projects.archlinux.org/archiso.git && cd archiso

@satreix
satreix / travis-tv.css
Created November 16, 2014 11:24
Travis TV mode
/* Taken from https://github.com/lafosca/travis-tv-mode and added a few fixes. */
#top,
#main,
#right,
#search_box,
.last_build,
.duration_label,
.duration,
.indicator,
def validInsee(insee, cle):
# http://fr.wikipedia.org/wiki/Numero_de_Securite_sociale#Unicit.C3.A9
# gestion numeros corses
insee = insee.replace('A', 0)
insee = insee.replace('B', 0)
reste = int(insee) % 97
return ((97 - reste) == int(cle))
@satreix
satreix / sshuttle.sh
Last active December 16, 2015 23:49
SSH tunneling using sshuttle
#!/bin/bash
user='username'
serv='servername'
echo "Connecting to $serv ..."
sshuttle --dns --daemon -r $user@$serv 0/0
ssh_cmd_return=$?
@satreix
satreix / Xressources
Created March 31, 2013 07:47
my .config/Xressources for urxvt mainly
! Colors
#define S_yellow #f0e030
#define S_orange #fd971f
#define S_red #ff322f
#define S_magenta #d33682
#define S_violet #6c71c4
#define S_blue #268bd2
#define S_cyan #2aa198
#define S_green #a6e22e