Skip to content

Instantly share code, notes, and snippets.

View hassansin's full-sized avatar
👋
Working from home

Hassansin hassansin

👋
Working from home
View GitHub Profile
@hassansin
hassansin / deploy.sh
Created May 18, 2015 08:41
Deploy Node app with bash
#!/bin/env sh
USER=ubuntu
SERVER=example.com
DESTINATION=/var/www/ics-feed
git archive -o latest.zip HEAD
scp latest.zip $USER@$SERVER:$DESTINATION
ssh $USER@$SERVER " \
mkdir -vp $DESTINATION && cd $DESTINATION \
@hassansin
hassansin / module.js
Created December 20, 2014 11:23
node.js - require module multiple times results in same object
//has to return object
module.exports = {
key: 'Hello'
}
@hassansin
hassansin / aspell-add-words.sh
Last active February 8, 2019 11:47
aspell add words to dictionary
touch ~/aspell.personal.txt
vi ~/aspell.personal.txt # add words per line
aspell --lang=en create master /tmp/en-personal.pws < ~/aspell.personal.txt
cp /tmp/en-personal.pws /usr/lib/aspell
vim /usr/lib/aspell/en_US.multi # add the line: 'add en-personal.pws'