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
# convert a git repo to svn or, an svn repo to git | |
# - git-core/git, subversion/svn and subgit ver 2.x.x should be installed | |
# - when converting from git to svn, a git-bare repo will be created | |
# | |
# HOW TO USE | |
# invoke make giving the appropriate target for the conversion and | |
# also definig the REPO variable that represents the repository name. | |
# do _not_ insert a leading / when specifying the repository name! | |
# example #1: make REPO=/path/to/some/git/repo svn | |
# example #2: make REPO=/path/to/some/svn/repo git |
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
zorba -i -f -q "${xsl}" -o "${out}" |
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
xqilla -i "${xmlu}" -o "${out}" "${xsl}" |
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
java -cp "${oxygenInstallDir}"/lib/BaseX.jar org.basex.BaseX -w -i "${xmlu}" -o "${out}" "${xsl}" |
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
/* cc -lm segs.c -o segs */ | |
/* Problem: | |
* | |
* Given a sequence of length N, find the number of | |
* segments needed to divide the sequence in groups | |
* of K, where each group overlaps with the next. | |
* | |
* e.g., Given the sequence 1,2,3,4,5,6,7,8,9 of length 9 | |
* when divided in groups of 3 will become: |
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
#!/usr/bin/env sh | |
: "${c:=12}" # max channel width | |
: "${n:=12}" # max user name width | |
: "${p:=1}" # prettify - colors and stuff | |
: "${w:=110}" # max mesg width | |
: "${s:="|"}" # the separator | |
trap "stty '$(stty -g)'; kill -TERM 0" EXIT | |
stty -echonl -echo |
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
#!/usr/bin/env bash | |
# Status script | |
# original: https://bitbucket.org/jasonwryan/eeepc/src/fefeccd4b280/Scripts/dwm-status | |
# colours: 01:normal 02:green 03:orange 04:red 05:gray 06:blue | |
## sleep interval - delay between updates | |
declare -r interval=3 | |
## color definitions |
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
/* under cookie license -- all cookies (C) reserved | |
* contact c00kiemon5ter on freenode | |
* | |
* build | |
* ----- | |
* make nwm CFLAGS="-std=c99 -Wall -Wextra -pedantic -Os -lX11" LDFLAGS="-s" | |
* | |
* usage | |
* ----- | |
* setup your ~/.xinitrc and startx |
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
diff --git a/tmux.c b/tmux.c | |
index 5d82ff5..3331f67 100644 | |
--- a/tmux.c | |
+++ b/tmux.c | |
@@ -52,6 +52,7 @@ pid_t environ_pid = -1; | |
int environ_idx = -1; | |
#ifdef XTMUX | |
char *xdisplay = NULL; | |
+char *res_name = NULL; | |
#endif |
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/sh | |
name="scratchpad" | |
class="URxvt" | |
# print the window id of the window with the given | |
# instance name as the first argument '$1' and | |
# class name as the second argument '$2' | |
get_win_id() { | |
xwininfo -root -children -int | awk -v n="$1" -v c="$2" '$3 == "(\""n"\"" && $4 == "\""c"\")" { print $1 }' |