Skip to content

Instantly share code, notes, and snippets.

View santochan's full-sized avatar
🏄‍♂️
Playing

Feng Chen santochan

🏄‍♂️
Playing
  • ThoughtWorks
  • China Beijing
View GitHub Profile
@santochan
santochan / init_vncserver
Created November 11, 2015 11:12
VNC server service config
#/etc/init.d/vncserver
#!/bin/bash
PATH="$PATH:/usr/bin/"
export USER="YOUR_USER_NAME"
DISPLAY="1"
DEPTH="16"
GEOMETRY="1024x768"
OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"
. /lib/lsb/init-functions
@santochan
santochan / tika_upstart
Last active November 11, 2015 11:09
Tika Upstart
description "Apache Tika Server"
start on filesystem or runlevel [2345]
stop on shutdown
respawn
respawn limit 3 12
exec java -jar /opt/tika/tika-server-1.11.jar
@santochan
santochan / g_icons
Created July 4, 2015 02:08
Generate touch icons and favicons
#!/bin/bash
#
# g_icons generate touch-icons and favicons
# It depends on Imagemagick
# USAGE: g_icons SOURCE_FILE TARGET_DIR
#
#
touch_icons=(57 60 72 76 114 120 144 152 180)
favicons=(16 32 96 160 192)