Skip to content

Instantly share code, notes, and snippets.

@EugeneKay
EugeneKay / kittens.js
Last active August 29, 2015 14:17
Kitten Clicker
autoPlay = setInterval(function() {
var steamworks = gamePage.bld.get('steamworks');
if ( !steamworks.on) {
return;
}
var catpower = gamePage.resPool.get('manpower');
if (catpower.value / catpower.maxValue > 0.99) {
$("a:contains('Send hunters')").click();
}
var furs = gamePage.resPool.get('furs').value;
@djs52
djs52 / check_salt_state.py
Last active January 28, 2023 10:28
Nagios Salt check which tests the highstate
#!/usr/bin/env python
# Copyright © 2016 Dan Sheridan <dan.sheridan@postman.org.uk>
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
import salt.client
import argparse
import sys
import fnmatch
@taddev
taddev / nginx.conf
Last active July 27, 2023 10:49
Nginx reverse proxy to Exchange 2010/2013
server {
listen 80;
#listen [::]:80;
server_name mail.gwtest.us autodiscover.gwtest.us;
return 301 https://$host$request_uri;
}
server {
listen 443;
#listen [::]:443 ipv6only=on;