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
sudo adduser --disabled-password backuper | |
sudo su backuper | |
cd ~/.ssh | |
ssh-keygen -t dsa | |
# entrée pour ne pas saisir de passphrase | |
# entrée pour garder le nom par défaut, très satisfaisant |
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 | |
refname="$1" | |
oldrev="$2" | |
newrev="$3" | |
PATH=~/bin:$PATH | |
if [ -z "$GIT_DIR" ]; then | |
echo "Don't run this script from the command line." >&2 |
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
#include "server.hpp" | |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
using std::cout; | |
using std::cerr; | |
using std::cin; | |
using std::endl; | |
using std::fstream; |
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
all: | |
@echo MAKEFLAGS = $(MAKEFLAGS) |
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 | |
error="91" | |
warning="35" | |
( $1 3>&1 1>&2- 2>&3- ) | sed \ | |
-e "s/^\(.* ERROR - \)\(.*\)$/\1\x1b[${error}m\2\x1b[0m/" \ | |
-e "s/^\(.* WARNING - \)\(.*\)$/\1\x1b[${warning}m\2\x1b[0m/" |
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
# Handlers | |
nope = (tx, obj) -> | |
displayResult = (tx, rs) -> | |
alert "Succeeded!" | |
displayError = (tx, err) -> | |
alert "Error: #{err.message}" | |
class Storage |
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
test "Bookmark toString works", -> | |
### given ### | |
bookmark = new Bookmark "lien@localhost", "lien", new Point 0, 1 | |
### when ### | |
text = bookmark.toString() | |
### then ### | |
equals "Bookmark \"lien\" lien@localhost at (0,1)", text, "Bookmark.toString()" |
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
sudo apt-get install scons g++-multilib | |
scons sample=shell regexp=interpreted |
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 | |
from="$1" | |
to="$2" | |
for file in $(git show --numstat $from --pretty=format: | cut -f3) | |
do | |
git diff $from $to -- $file | |
done |
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 color { | |
echo -e "\x1b[${2}m$1\x1b[0m" | |
} |
OlderNewer