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
$ cd | |
$ git clone http://github.com/senchalabs/connect.git | |
$ cd connect/ | |
$ sudo make install | |
cp -f docs/index.1 /usr/local/share/man/man1/connect.1 | |
cp: cannot create regular file `/usr/local/share/man/man1/connect.1': No such file or directory | |
make: *** [install-docs] Error 1 | |
$ sudo mkdir -p /usr/local/share/man/man1/ | |
$ sudo make install | |
cp -f docs/index.1 /usr/local/share/man/man1/connect.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 | |
echo testing write performance | |
sync; date; time dd if=/dev/zero of=1000m bs=1024k count=5000; date | |
echo testing read performance | |
sync; date; time dd if=1000m of=/dev/null bs=1024k; date | |
rm 1000m |
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 | |
# Script to provide answer for question: | |
# http://stackoverflow.com/questions/5149872/how-to-git-remote-add-and-track-a-branch-in-the-same-filesystem | |
echo create origin | |
mkdir origin | |
cd origin/ | |
git init --bare | |
cd .. |
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 | |
# Unix Tree / Linux Tree by Dem Pilafian | |
# http://www.centerkey.com/tree/ | |
# mirrored on https://gist.github.com/896397 | |
####################################################### | |
# UNIX TREE # | |
# Version: 2.3 # | |
# File: ~/apps/tree/tree.sh # | |
# # | |
# Displays Structure of Directory Hierarchy # |
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 Erlang | |
$ sudo apt-get install autoconf | |
$ curl -O https://raw.github.com/dreverri/kerl/master/kerl; chmod a+x kerl | |
$ ./kerl build R14B03 r14b03 | |
$ ./kerl install r14b03 /opt/erlang/r14b03 | |
$ . ~/.kerl/installs/r14b03/activate | |
# Build Riak from source | |
$ git clone git://github.com/basho/riak.git | |
$ cd riak |
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
Note: Use the first reg-file if the cygwin dir is c:\ and the other on if cygwin is installed to c:\cygwin\ - otherwise adjust the path in the file. | |
See also https://gist.github.com/1641943 for unattended cygwin update and package install | |
---- | |
README | |
NAME: | |
Cygwin Here |
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
import os | |
for param in os.environ.keys(): | |
print "%20s %s" % (param,os.environ[param]) | |
# from http://www.wellho.net/resources/ex.php4?item=y115/penv.py |
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 | |
# remove cr and ^Z characters from a dos file: | |
# the codes are octal, oct15 = dec13 and oct32 = dec26 | |
tr -d '\15\32' < winfile.txt > unixfile.txt |
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 | |
mkdir -p /tmp/ramdisk | |
sudo mount -t tmpfs -o size=512M tmpfs /tmp/ramdisk | |
#sudo mount -t tmpfs -o size=1G tmpfs /tmp/ramdisk |
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
cat some.conf | sed 's/^[ \t]*//' |grep -v ^# | sed '/^$/d' | |
# as result all non-blank lines from some.conf that do not start with a "#" (which means this only a comment line) are printed to the terminal | |
# in short: show the lines that contain something relevant | |
# the first sed removes trailing spaces from all lines | |
# the grep removes all lines that start with a "#" | |
# the second sed removes all blank lines |
OlderNewer