Skip to content

Instantly share code, notes, and snippets.

stil

Block or report user

Report or block stil

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View WpfApp.csproj
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup>
<LanguageTargets>$(MSBuildExtensionsPath)\$(VisualStudioVersion)\Bin\Microsoft.CSharp.targets</LanguageTargets>
<TargetFramework>net47</TargetFramework>
<OutputType>Exe</OutputType>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<!-- App.xaml -->
View inodes-fix.sh
# http://stackoverflow.com/a/9387415/1420356
find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n
View turbopublik.user.js
// ==UserScript==
// @name TurboPublik
// @description Prevents loading of New Relic Agent scripts on eRepublik.
// @include *://www.erepublik.com/*
// @version 0.1
// @grant none
// @run-at document-start
// ==/UserScript==
document.onbeforescriptexecute = function (e) {
View steam_market_bot.py
import urllib2, urllib
import json
import StringIO
import gzip
import random
import codecs
import time
import pprint
import requests
import re
View wifi.sh
#!/bin/bash
# http://pastebin.com/Pa90HBiU
# 01/06/2013
# This script attempts to semi-automate the wifi connection process from
# the command line.
# It is intended to be used on a headless machine without the
# requirement of typing several commands for a connection.
# The script stores previous connection credentials in PLAINTEXT as
# *.wpa files in the executed directory and in /etc/wpasupplicant.conf.
@stil
stil / backup.ps1
Created Mar 2, 2014
Differential backup with 7zip and Powershell
View backup.ps1
# CONFIGURATION
$dirToBackup = "C:\Users\John" # path to directory we back up (no following backslash)
$outputDir = "E:\bak" # path directory we store our backups (no following backslash)
$params = '-t7z', '-r', '-ms=off', '-mx1'
# THE SCRIPT
$fullBackup = $outputDir + "\full.7z"
if (Test-Path ($fullBackup)) { # Let's check whether full backup exists
Write-Host "Full backup already exists"
View masslap.py
__module_name__ = "Mass Highlight"
__module_version__ = "1.666"
__module_description__ = "Script annoying everyone on the channel."
import hexchat
def masshl(word, word_eol, userdata):
notice = " ".join(word[1:])
users = hexchat.get_list('users')
prefix = '\0030,0'
@stil
stil / gist:5694720
Last active Dec 18, 2015
Refill energy every 30-90 minutes in eRepublik. Run on your server and keep running 24/7.
View gist:5694720
<?php
require __DIR__.'/vendor/autoload.php';
use Erpk\Harvester\Client\Client;
use Erpk\Harvester\Module\Management\ManagementModule;
$client = new Client;
$client->setEmail('email@address.com');
$client->setPassword('password');
$client->setUserAgent('Opera/9.80 (Windows NT 6.1; Win64; x64) Presto/2.12.388 Version/12.15');
You can’t perform that action at this time.