I hereby claim:
- I am chanux on github.
- I am chanux (https://keybase.io/chanux) on keybase.
- I have a public key whose fingerprint is 35DA F004 6EE5 B967 5BBF 9221 4936 8DFE DF62 5DBB
To claim this, I am signing this object:
#!/usr/bin/env python | |
""" | |
This script implements a git subcommand for viewing git branches with | |
a summary on how far behind/ahead each branch is compared to current branch. | |
copy the file to somewhere in the path as git-branches and make it executable | |
then you can use `git branches` to see summary of unmerged branches |
I hereby claim:
To claim this, I am signing this object:
This is a bare minimum guide to try traefik with Docker.
port = ":80"
[web]
#!/usr/bin/env bash | |
# This script pauses music on Ubuntu when screen is locked (cmd+l) | |
# My other script 'playdog' is required. | |
# It gives you seamless controls to vlc, spotify and mocp | |
# You should add this script to startup scripts | |
# Get playdog here: https://gist.github.com/chanux/db01bd2c66effc7a259f | |
dbus-monitor --session "type='signal',interface='com.ubuntu.Upstart0_6'" | | |
while read x; do |
#!/usr/bin/env python | |
import argparse | |
import psycopg2 | |
""" | |
Script to help copy data to postgres databases from mysql dump files | |
mysql2postgres -f <mysql dump file> -t <postgres table name> -c <comma separated list of columns> | |
NOTE: the column name list should be in order of dump file fields | |
""" |
#!/usr/bin/env bash | |
# Make your multimedia keybindings work with both spotify and mocp. | |
# I prefer to have them control Spotify when it's open. | |
# Place this script somewhere in $PATH and bind multimedia keys/your favorite | |
# shortcuts accordingly. The commands are self explanatory | |
# | |
# playdog -playpause | |
# playdog -pause | |
# playdog -next |
`````` | |
`./syhddddddhys/.` | |
`-sdNmy+/:....:/+ymNds-` | |
:dNd+- ``.....` -+dNd: | |
`yMd: .:++ooooooo+:. :dMy` | |
.dMs` .+ooo+:----:+ooo+. `sMd. | |
dMs .////. ./ooo: sMd | |
/Mm` :ooo. `mM/ | |
oMy ooo/ yMo | |
oMy `ooo: yMo |
# Fish port of Marcin Kulik's newscratch script | |
# Read more and fin \d bash/zsh scripts here: | |
# http://www.ku1ik.com/2012/05/04/scratch-dir.html | |
function new-scratch | |
set cur_dir "$HOME/scratch" | |
set dir_suffix (date +'%s') | |
set new_dir "$HOME/tmp/scratch-$dir_suffix" | |
mkdir -p $new_dir | |
ln -nfs $new_dir $cur_dir |
function za | |
## Fish shell port of za https://gist.github.com/chanux/1119556 | |
## What The Fish? : http://wp.me/p1rVu-bO | |
## | |
## To use za as a Fish function, just copy paste the script and enter | |
## Then run func_save za | |
## Now you can use za on your Fish <">< | |
if [ -z $argv[1] ] | |
set za_mark 1 |
My current firefox version is 26 (on Ubuntu). It's said to be a bad SSL client. | |
Check yours here: https://www.howsmyssl.com | |
The issues on version 26 are supported SSL version and the cipher suit used. | |
I managed to fixed this by using following about:config settings | |
security.tls.version.max = 3 (TLS v1.2) | |
security.ssl3.rsa_fips_des_edes_sha = false |