Skip to content

Instantly share code, notes, and snippets.

View geirawsm's full-sized avatar

geirawsm

  • Norway
View GitHub Profile
@ManuelTS
ManuelTS / install_phantomJs.sh
Last active May 5, 2023 12:55
This script installs PhantomJS on your Debian/Ubuntu System
#!/usr/bin/env bash
# This script installs PhantomJS on your Debian/Ubuntu System
#
# Taken from https://gist.github.com/julionc/7476620#gistcomment-2030572 and changed the download directory
#
# This script must be run as root:
# sudo sh install_phantomjs.sh
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
@victorstanciu
victorstanciu / .bashrc
Created January 24, 2013 15:28
Show octal permissions in ls output
alias lo="ls -lha --color=always -F --group-directories-first | awk '{k=0;for(i=0;i<=8;i++)k+=((substr(\$1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf(\"%0o \",k);print}'"