This file contains 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 | |
set -e | |
function error { | |
echo -e $* >&2 | |
} | |
OPTS=`getopt -o hd:p: -l help,dist:,password:,jwt: -- "$@"` | |
if [ $? != 0 ] ; then error "Failed parsing options." ; exit 1 ; fi |
This file contains 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
package main | |
import ( | |
"fmt" | |
"github.com/siddontang/ledisdb/config" | |
"github.com/siddontang/ledisdb/server" | |
"gopkg.in/redis.v2" | |
"math/rand" | |
"time" | |
) |
This file contains 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
select mean("x") - mean("y") FROM | |
(SELECT mean("value") as "x" FROM "series" WHERE $timeFilter GROUP BY time($__interval)), | |
(SELECT mean("value") as "y" FROM "series" WHERE $timeFilter GROUP BY time($__interval)) | |
WHERE $timeFilter group by time($__interval) fill(linear) |
This file contains 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 i3pystatus import Status | |
from i3pystatus.weather import Weather | |
status = Status() | |
# Displays clock like this: | |
# Tue 30 Jul 11:59:46 PM KW31 | |
# ^-- calendar week | |
status.register("clock", | |
format="%a %-d %b %X",) |
This file contains 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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout somewhen, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! |
This file contains 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
# vim: filetype=yaml | |
--- | |
meta: | |
description: 'Solarized theme by lasers' | |
colors: | |
base03: '#002b36' | |
base02: '#073642' | |
base01: '#586e75' | |
base00: '#657b83' | |
base0: '#839496' |
This file contains 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
!*Rxvt.depth: 32 | |
!*Rxvt.background: black | |
URxvt.buffered: true | |
URxvt.saveLines: 100000 | |
URxvt.termName: rxvt | |
!------------------------------------------------------------------------------- | |
! URxvt settings | |
! Colours lifted from Solarized (http://ethanschoonover.com/solarized) | |
! More info at: |
This file contains 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 | |
function run_git { | |
pwd | |
git $@ | |
} | |
for dir in `find . -maxdepth 1 -type d -not -name .`; do | |
pushd $dir >/dev/null | |
if [ ! -d .git ]; then |
NewerOlder