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 | |
# | |
# 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
#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 | |
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 | |
# | |
# 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
#!/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 | |
version=0.1.4 | |
versionDate="2014-09-02" | |
function showHelp() { | |
echo "subtlemark - add subtle watermarks to images | |
Usage: | |
---------------------------------------- |
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 | |
file=/home/$SUDO_USER/.local/share/userpass.list | |
function showHelp { | |
version=0.0.2 | |
versionDate="2014-06-24" | |
echo "$0 - manage passwords | |
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
;;; info-mode-el -- Major mode for editing INFO files | |
;; Author: Roald Fernandez <contact@swarminglogic.com> | |
;; Created: 10 Nov 2014 | |
;; Keywords: INFO major-mode | |
;; Copyright (C) 2014 Roald Fernandez <contact@swarminglogic.com> | |
;; This program is free software; you can redistribute it and/or | |
;; modify it under the terms of the GNU General Public License as |
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 | |
# pngopt: A wrapper for pngcrush, that makes it easier to use for overriding | |
# images with its optimized output. | |
# | |
# use: pngopt FILE1 [FILE2] [FILE3] ... | |
# | |
# If a file is optimized it outputs the filename with percentage reduction. | |
# | |
# |
NewerOlder