Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
tail -n +2 $1 | split -l 10000 - split_
for file in split_*
do
head -n 1 $1 > tmp_file
cat $file >> tmp_file
mv -f tmp_file output/$file.csv
rm $file
done
@javifr
javifr / git-cheatsheet.mkd
Created May 18, 2011 15:44
git cheatsheet

GIT CHEATSHEET

De una máquina a otra en la misma red

( siendo xxxx ip de la máquina y YYYYYY carpeta del repo )
CLONE
git clone -u /usr/local/git/bin/git-upload-pack ssh://XXXXXXX/users/javier/Sites/YYYYYYYYY

PULL
git pull --upload-pack /usr/local/git/bin/git-upload-pack ssh://XXXXXXX/users/javier/Sites/YYYYYYYYY

@balupton
balupton / README.md
Last active July 13, 2024 17:32
Ajaxify a Website with the HTML5 History API using History.js, jQuery and ScrollTo