Skip to content

Instantly share code, notes, and snippets.

View cheeplusplus's full-sized avatar
🐆

Jess cheeplusplus

🐆
View GitHub Profile
### Keybase proof
I hereby claim:
* I am cheeplusplus on github.
* I am jessiko (https://keybase.io/jessiko) on keybase.
* I have a public key ASA-qPqmF6TXBf_4N97CxVzDESRZMwaBB9hSiKfefKfPngo
To claim this, I am signing this object:
@cheeplusplus
cheeplusplus / .eslintrc.json
Created July 2, 2017 06:41
My standard ESLint config
{
"parserOptions": {
"ecmaVersion": 8
},
"env": {
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "google"],
"rules": {
@cheeplusplus
cheeplusplus / @@time.muf
Created March 6, 2014 08:03
Internet time MUF script
( cmd-@@time.muf by Andrew =AndrewNeo=
Written 4-26-03
Please port freely )
(===DETAILS=== Lines 5-7)
( Returns internet time
Use either @@time or
@@time 12:00 in 24 hour style )
( Updated 11-20-03 for a little MPI support )
lvar command
@cheeplusplus
cheeplusplus / Program.cs
Created January 12, 2014 23:09
URL to PNG
using System;
using System.Threading;
using Awesomium.Core;
namespace UrlToPng
{
class Program
{
private const string ScrollbarCss = "::-webkit-scrollbar { visibility: hidden; }";
@cheeplusplus
cheeplusplus / tahoe.conf
Created November 7, 2013 22:52
Upstart script for user install of tahoe --- Put in /etc/init/
# tahoe
description "Tahoe"
author "AndrewNeo"
setuid andrew
setgid andrew
start on (filesystem and net-device-up IFACE=lo)
stop on runlevel [!2345]
@cheeplusplus
cheeplusplus / SetPlayCount.vbs
Created October 16, 2013 05:12
Sets the play count of the currently playing track in iTunes (Windows). http://joe.siegler.net/2010/11/how-to-change-the-play-count-number-in-itunes/
Dim iTunesApp, currTrack, newPlayCount
Dim prompt, title, defaultValue
Set iTunesApp = WScript.CreateObject("iTunes.Application")
Set currTrack = iTunesApp.CurrentTrack
prompt = "New playcount:"
title = currTrack.Artist & " - " & currTrack.Name
defaultValue = currTrack.PlayedCount
@cheeplusplus
cheeplusplus / twython_test.py
Created June 11, 2013 23:23
Sample OAuth post with Twython
import twython;
twitter = twython.Twython(twitter_token='CONSUMER_KEY', twitter_secret='CONSUMER_SECRET', oauth_token='ACCESS_TOKEN', oauth_token_secret='ACCESS_TOKEN_SECRET');
twitter.updateStatus(status='MESSAGE');
@cheeplusplus
cheeplusplus / start_server.sh
Created April 18, 2013 03:32
FTB start server script
#!/bin/bash
MINMEM=1024M
MAXMEM=4096M
JARFILE=ftbserver.jar
java -Xms$MINMEM -Xmx$MAXMEM -XX:ParallelGCThreads=4 -server -Xincgc -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -Xnoclassgc -XX:UseSSE=3 -XX:PermSize=128m -XX:LargePageSizeInBytes=4m -jar $JARFILE nogui
@cheeplusplus
cheeplusplus / unicodeissue.py
Created August 27, 2012 05:27
Sqlite issue with unicode strings
# coding=utf8
import sqlite3
# Read ourselves, here is a failing character: é
file = open("unicodeissue.py", "r")
text = file.read()
file.close()
args = {"Value": text}
@cheeplusplus
cheeplusplus / journalhighlight.user.js
Created November 25, 2011 11:31
FA Journal Highlighter
// ==UserScript==
// @name FA Journal Highlighter
// @namespace http://projects.neocodenetworks.com/gm/
// @include http://www.furaffinity.net/msg/others/
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
// ==/UserScript==
function highlightLine(row, color) {
$(row).css("background-color", color);
}