This file contains hidden or 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
# 256 colors | |
set -g default-terminal screen-256color | |
set-window-option -g xterm-keys on | |
# Scrolling | |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
# remap prefix to Control + a | |
set -g prefix C-a | |
unbind C-b |
This file contains hidden or 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
" Do you want bepo configuration ? 0 if not | |
let want_bepo = 1 | |
" Set 'nocompatible' to ward off unexpected things that your distro might | |
" have made, as well as sanely reset options when re-sourcing .vimrc | |
set nocompatible | |
" Attempt to determine the type of a file based on its name and possibly its | |
" contents. Use this to allow intelligent auto-indenting for each filetype, | |
" and for plugins that are filetype specific. |
This file contains hidden or 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/sh | |
ffmpeg -f x11grab -s 1280x800 -r 25 -i :0.0+nomouse -s hd720 -vcodec libx264 -vpre lossless_ultrafast -an -threads 0 $1 |
This file contains hidden or 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 | |
DEFAULT_OUTPUT_DIR=/tmp/mp3ify | |
QUALITY=2 | |
VBR_QUALITY=4 | |
MIN_BITRATE=320 | |
MAX_BITRATE=320 | |
SAMPLE_FREQ=44.1 | |
This file contains hidden or 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 | |
temp1=`cat /sys/devices/platform/coretemp.0/temp2_input` | |
temp2=`cat /sys/devices/platform/coretemp.0/temp3_input` | |
echo `expr $temp1 / 1000`C `expr $temp2 / 1000`C |
This file contains hidden or 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 | |
# popup a small notification with 'notify-send' | |
dis=`formail -X From: -X Subject:` | |
from=`echo "$dis" | formail -X From:` | |
sub=`echo "$dis" | formail -X Subject:` | |
# tweaks < > are special | |
from=${from//</\(} | |
from=${from//>/\)} | |
from=${from//&/\.} |
This file contains hidden or 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
#include <time.h> | |
#include <stdio.h> | |
int main (void) { | |
time_t cur; | |
time_t next; | |
struct tm curtime; | |
struct tm nexttime; | |
This file contains hidden or 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
Install xmonad | |
In .xinitrc : | |
setxkbmap fr bepo | |
setxkbmap -option "ctrl:swapcaps" | |
exec xmonad | |
Useful programs : | |
* stow => clone dotfiles | |
* keychain => add config to bashrc |
This file contains hidden or 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
d.multicall=incomplete,d.stop= | |
d.multicall=incomplete,d.directory.set=test |
This file contains hidden or 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
from scipy.spatial import KDTree | |
import numpy as np | |
import itertools | |
import matplotlib.pyplot as plt | |
import random | |
pos = np.zeros((10, 2)) | |
for (i, j) in itertools.product(range(10), range(2)): | |
pos[i,j] = random.randint(0, 10) |
OlderNewer