Skip to content

Instantly share code, notes, and snippets.

View Jontem's full-sized avatar
🖥️
Programming

Jonathan Mourtada Jontem

🖥️
Programming
View GitHub Profile
git config --global user.name "Jonathan M"
git config --global user.email [email protected]
git init
git init --bare
const fs = require("fs");
const logStream = fs.createWriteStream('output.txt', {'flags': 'a'});
const tempBuffer = fs.createWriteStream('temp.txt', {'flags': 'a'});
const input = require("./input");
const regex = /\((\d+?)x(\d+?)\)/;
let restOfInput = input;
@Jontem
Jontem / freenas_s3_backup.sh
Last active July 5, 2017 14:16
ZFS replication backup script from FreeNAS to Amazon s3
#!/bin/sh
# The first argument should be the name of the dataset to backup
if test -z $1; then
echo "Please specify a valid dataset"
exit 1
fi
# Passphrase file
passphrase_file=/root/snapshot-gpg-passphrase