Skip to content

Instantly share code, notes, and snippets.

View ardian's full-sized avatar
💭
I may be slow to respond.

Ardian Haxha ardian

💭
I may be slow to respond.
View GitHub Profile
@ardian
ardian / script.sh
Last active March 20, 2024 04:31 — forked from vielhuber/script.sh
PostgreSQL: Backup and restore pg_dump with password on command line #sql
# linux
PGPASSWORD="password" pg_dump -h host -p port -U username database > file.sql
# windows
PGPASSWORD=password&& pg_dump -h host -p port -U username database > file.sql
# alternative
pg_dump --dbname=postgresql://username:password@host:port/database > file.sql
# restore
find the appropriate file for your system on https://nodejs.org/en/download/
(if you're not sure whether you should use 32-bit or 64-bit, follow instructions here: https://www.computerhope.com/issues/ch001121.htm)
copy the link to the appropriate file. in the example below we're using the link for the Linux 64-bit binary. if you're using a different file, substitute as necessary.
on the command line, do the following series of commands one at a time:
cd /tmp
wget https://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-x64.tar.xz
tar -xf node-v6.10.3-linux-x64.tar.xz
@ardian
ardian / Monaco for Powerline.otf
Created October 31, 2016 02:28 — forked from baopham/Monaco for Powerline.otf
Patched font Monaco for OSX Vim-Powerline
@ardian
ardian / gist:7cfd2222813374152c3e1756abeac4e3
Created June 30, 2016 23:56 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master