Skip to content

Instantly share code, notes, and snippets.

Avatar

Kondrashov Ilia caseycs

  • Netherlands, Amsterdam
View GitHub Profile
View pdf2png
/usr/local/bin/gs -sDEVICE=pngalpha -o logo_%03d.png -dUseCropBox -sDEVICE=pngalpha -r600 logo.pdf
@caseycs
caseycs / gist:e407f2e05e2de092397c
Last active Aug 29, 2015
DigitalOcean Debian 7.0 x64 bootstrap script, inspired by Linode StackScripts
View gist:e407f2e05e2de092397c
#!/bin/sh
# usage: wget -O - httpshttps://gist.githubusercontent.com/caseycs/e407f2e05e2de092397c/raw/gistfile1.sh | sh
function user_add_sudo {
# Installs sudo if needed and creates a user in the sudo group.
#
# $1 - Required - username
# $2 - Required - password
USERNAME="$1"
USERPASS="$2"