Skip to content

Instantly share code, notes, and snippets.

View mnebuerquo's full-sized avatar
😎
Being awesome!

Sherman Adelson mnebuerquo

😎
Being awesome!
View GitHub Profile
@mnebuerquo
mnebuerquo / new-luminus-project.sh
Last active July 8, 2017 13:07
Script to create a new Luminus project with my typical options
#!/bin/sh
# project name is first argument
PROJECTNAME=$1
shift
if [ -z "$PROJECTNAME" ]; then
echo "You gotta specify a name for your project, you big dummy!"
exit 1
fi
@mnebuerquo
mnebuerquo / kill-idle-vnc.sh
Created June 24, 2016 11:46
place in /etc/cron.hourly and it will kill any idle vnc sessions
#!/bin/bash
# http://serverfault.com/a/767361/33170
displays=`ps aux | grep Xvnc | grep -v 'grep\|sed' | sed -r 's|.*(Xvnc :[0-9]*).*|\1|' | cut -d' ' -f 2`
limit=30
date
echo "Checking for inactive sessions!"
while read -r d; do