I hereby claim:
- I am atomicnumber1 on github.
- I am atomicnumber1 (https://keybase.io/atomicnumber1) on keybase.
- I have a public key whose fingerprint is A56E 3583 8509 8BD7 B624 C2F9 9A9A E1EB 13EC 05E3
To claim this, I am signing this object:
{ | |
"black": "#1e1e1e", | |
"dark_blue": "#7587a6", | |
"dark_green": "#8f9d6a", | |
"dark_cyan": "#afc4db", | |
"dark_red": "#cf6a4c", | |
"dark_magenta": "#9b859d", | |
"dark_yellow": "#f9ee98", | |
"gray": "#c3c3c3", | |
"dark_gray": "#323537", |
I hereby claim:
To claim this, I am signing this object:
#NoTrayIcon | |
; Workspace Shortcuts | |
;----------------------------------------------------------------------------------------------- | |
+Right:: | |
{ | |
MouseGetPos,,,win | |
WinGetClass, class, ahk_id %win% | |
If class in Progman,WorkerW |
; Media Control Shortcuts | |
; | |
;----------------------------------------------------------------------------------------------- | |
#NoTrayIcon | |
F12::Send {Volume_Up} | |
F11::Send {Volume_Down} | |
F10::Send {Volume_Mute} | |
F9::Send {Media_Next} | |
F8::Send {Media_Play_Pause} | |
F7::Send {Media_Prev} |
This guide shows how to setup a production environment for a Django application using PostgreSQL as database, Gunicorn as application server and Nginx as http server using Ubuntu Server 14.04 as Operative System.
Install PostgreSQL and Nginx using:
sudo apt-get install -y postgresql-9.5 postgresql-contrib-9.5 postgresql-server-dev-9.5 nginx git circus make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils python-setuptools
#insert sdcard | |
# locate sdcard | |
diskutil list | |
# unmount sdcard | |
diskutil unmount /dev/diskx | |
# dump sdcard and compress | |
dd if=/dev/diskx | gzip > /path/to/image.img.gz |
Since this is on Hacker News and reddit...
_t
in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".char *
s.type * name
, however, is entirely intentional.#!/bin/bash | |
LOG="path/to/logs" | |
BACKUP_DIR="path/to/backupdir" | |
START_TIME=$(date +%s) | |
echo "Clean Old Backups :: ScriptStart -- $(date '+%Y-%m-%d_%H-%M-%S')" >> $LOG | |
echo "[INFO] find $BACKUP_DIR/* -name "*.gz" -mtime +30 -type f -delete" >> $LOG | |
find $BACKUP_DIR/* -name "*.gz" -mtime +30 -type f -delete >> $LOG | |
END_TIME=$(date +%s) | |
ELAPSED_TIME=$(expr $END_TIME - $START_TIME) | |
echo "Clean Old Backups :: ScriptEnd -- $(date '+%Y-%m-%d_%H-%M-%S')" >> $LOG |
#!/bin/bash | |
LOG="path/to/logs" | |
START_TIME=$(date +%s) | |
echo "Backup :: ScriptStart -- $(date '+%Y-%m-%d_%H-%M-%S')" >> $LOG | |
USER="postgres" | |
HOST="db" | |
BACKUP_DIR="path/to/backupdir/" | |
SRC_DIR="path/to/src/dir" | |
GZIP="$(which gzip)" | |
NOW=$(date '+%Y-%m-%d_%H-%M-%S') |
This are some notes for the course OS 161 from ops-class.org (based on the OS 161 course from Harvard).
#Geting started
You will need some tools. A nice Text Editor or a fancy IDE for C, I usually go for gedit, or sometimes vim.
Then you will need to install all the toolchain for the course plus some other tools