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
CPUTYPE?=nocona | |
CFLAGS+=-Os -pipe -fno-strict-aliasing | |
COPTFLAGS=-Os -pipe -funroll-loops -ffast-math -fno-strict-aliasing | |
KERNCONF=BSD GENERIC | |
OPTIMIZED_CFLAGS=YES | |
WITHOUT_X11=YES | |
BUILD_OPTIMIZED=YES | |
WITH_CPUFLAGS=YES | |
WITH_OPTIMIZED_CFLAGS=YES | |
#WITHOUT_DEBUG=YES |
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
mkdir pkgname | |
cd pkgname | |
git svn init https://host/svn/pkgname/trunk/pkgname/src/trunk | |
git svn fetch |
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 --exclude=".svn" -rq ~/mounts/www.example.com/ /var/www/www.example.com/ |
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 | |
# Text color variables | |
txtund=$(tput sgr 0 1) # Underline | |
txtbld=$(tput bold) # Bold | |
bldred=${txtbld}$(tput setaf 1) # red | |
bldblu=${txtbld}$(tput setaf 4) # blue | |
bldwht=${txtbld}$(tput setaf 7) # white | |
txtrst=$(tput sgr0) # Reset | |
info=${bldwht}*${txtrst} # Feedback |
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
URxvt.xftAntialias: false | |
!URxvt.font: xft:Bitstream Vera Sans Mono:pixelsize=10 | |
URxvt.font: xft:Terminal-10 | |
!URxvt*saveLines: 9999 | |
!URxvt*background: #000000 | |
!URxvt*foreground: #ffffbf | |
!URxvt*scrollBar: False | |
!URxvt*SaveLines: 2000 | |
!URxvt*loginShell: True |
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
set-option -g mode-mouse on | |
set-option -g mouse-resize-pane on | |
set-option -g mouse-select-pane on | |
set-option -g mouse-select-window on | |
set-option -g xterm-keys on |
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
rsync -av --ignore-existing nova.old/* nova/ |
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
svn co https://server/svn/repo repo-svn | |
svn log -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > ../users.txt | |
git svn clone --stdlayout --no-metadata -A users.txt https://server/svn/repo repo-tmp | |
# Note that the "--stdlayout" flag implies you have the common "trunk/branches/tags" svn layout. If your layout differs | |
# become familiar with --tags, --branches, --trunk options | |
cd repo-tmp | |
git svn fetch | |
# skipping branching if interested go here (3rd answer): | |
# http://stackoverflow.com/questions/79165/how-to-migrate-svn-with-history-to-a-new-git-repository | |
cd ../ |
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
git clone /XYZ /ABC # To clone your local repository | |
cd ABC | |
git remote rm origin | |
# only rewrite the HEAD branch and ignore tags and other branches | |
git filter-branch --tag-name-filter cat --prune-empty --subdirectory-filter subdirectory_to_repo HEAD | |
# then delete the backup reflogs so the space can be truly reclaimed (although now the operation is destructive) | |
git reset --hard | |
git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d | |
git reflog expire --expire=now --all | |
git gc --aggressive --prune=now |
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/libexec/qemu-kvm -m 256 -drive file=server.img -cdrom some.iso -boot d -net nic -net user -vnc :0 | |
$ ssh -L 5900:127.0.0.1:5900 your_ip_here | |