This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, os, commands, time, errno | |
def getExecutablesAndMd5(directory): | |
""" | |
Returns a dictionary with the following. | |
Key: Paths to executable within specified directory. | |
Value: The md5sums of the executable. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Watch over project files, and automatically rebuild | |
# project when files are modified. Can easily be | |
# customized for different project types/languages. | |
# | |
# Use: ./autobuild.sh [executable] | |
# | |
# Optional: Pass path to executable to run whenever |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
prefixDir=`pwd`/sdl2-x86 | |
# ------------------------------ Functions Start ------------------------------ | |
function cloneSdlRepo { | |
(hg clone http://hg.libsdl.org/$1 && cd SDL && hg co default && hg pull -u) | |
} | |
function pullAndBuildSdlRepo { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
delay=0.2 | |
title='default' | |
count=0 | |
loop=1 #0 for infinite loop | |
# Set if you want to skip mouse selection | |
if [[ $# -eq 6 ]] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iomanip> | |
#include <iostream> | |
int spritesSDL(); | |
int spritesSFML(); | |
int spritesAlphaSDL(); | |
int spritesAlphaSFML(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Modifies /etc/apache2/ports.conf to listen to specified port-number ($2) | |
# Adds configuration file to /etc/apache2/sites-available/$1.conf | |
# Creates symbolink to the above file in /etc/apache2/sites-enabled/$1.conf | |
# Restarts apache server. | |
# | |
# Note: This is a very rough script, and only used to automate a process. | |
# Not intended for production. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to move mouse cursor to the specified screen (for separate x screens). | |
# Useful if set up to trigger with a global hotkey. | |
# | |
# e.g.: ./focusscreen.sh 0 | |
# | |
if [ ! `which xdotool` ] ; then echo "You need xdotool!" && exit ; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[[ ! "$1" == "-" && ! "$1" == "+" ]] && echo "Invalid sign paramter [-|+]" && exit; | |
[[ "$1" == "-" ]] && suff="neg"; | |
[[ "$1" == "+" ]] && suff="pos"; | |
cntfile='cntfile_'$suff | |
[[ ! -e $cntfile ]] && echo '0' > $cntfile; | |
file='values_'$suff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# $1: PID | |
# Returns true if a process exists with pid=PID | |
function isProcessAlive { | |
if [ `ps -p $1 | wc -l` -gt 1 ] ; then | |
return 0; | |
else | |
return 1; | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! $# -eq 2 ] ; then | |
echo "Usage: ./recordscreen delay outputfolder" | |
exit | |
fi | |
if [ ! -d $outputFolder ] ; then | |
echo "Output folder does not exist" | |
exit |
OlderNewer