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
SetTimer,KeepAwake,480000 ;run every 8 minutes | |
return | |
KeepAwake: | |
{ | |
MouseMove,0,0,0,R ; mouse pointer stays in place but sends a mouse event | |
} | |
return | |
^0:: |
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
[reddit] | |
client_id = XXX | |
client_secret = XXX | |
unique_key = XXX |
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
tskill dwm |
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
def translate(str) | |
words = str.split(" ") | |
result_array = Array.new | |
words.each do |word| | |
if ( word.match(/^[aeiou]/) ) | |
result_array.push( word + 'ay' ) | |
else | |
done = false | |
consonants = '' |
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
var max_errors = 5; | |
var EMAIL = Session.getActiveUser().getEmail(); | |
var scriptProperties = PropertiesService.getScriptProperties(); | |
//scriptProperties.deleteAllProperties(); | |
function myFunction() { | |
var current_stock = {}; | |
var shop_url = 'http://www.k3kc.com/shop/'; | |
var links = new Array(); | |
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
#! perl -w | |
use strict; | |
use List::Gen; | |
my $range; | |
$range = cache gen {$_} range 1, 100; | |
sub fizzbuzz { | |
my ($range, $triggers) = @_; |
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
## | |
## Milk from Milk and Cheese | |
## | |
$the_cow = <<EOC; | |
$thoughts ___ | |
$thoughts / \\ | |
$thoughts / \\ | |
/ \\ | |
___ ___ | |
/___\\ /___\\ |
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 ! [ -x "$(type -P iperf)" ]; then | |
echo "ERROR: script requires iperf" | |
echo "For Debian and friends get it with 'apt-get install iperf'" | |
echo "If you have it, perhaps you don't have permissions to run it, try 'sudo $(basename $0)'" | |
exit 1 | |
fi | |
if [ "$#" -ne "2" ]; 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
package "apache2" do | |
action :install | |
end | |
service "apache2" do | |
action [ :enable, :start ] | |
end | |
execute "mv /etc/apache2/sites-enabled/default-000.conf /etc/apache2/sites-available/default-000.conf.disabled" do | |
only_if do |
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
function wallpaper_cleanup() { | |
var folder = DriveApp.getFoldersByName("wallpapers").next(); | |
var small_folder = DriveApp.getFoldersByName("small_wallpapers").next(); | |
var files = folder.getFiles(); | |
while (files.hasNext()) { | |
var file = files.next(); | |
if (file.getSize() < 200000) { | |
file.makeCopy(small_folder); | |
file.setTrashed(true); | |
Logger.log(file.getName() + file.getSize()); |
NewerOlder