Skip to content

Instantly share code, notes, and snippets.

View jewel-andraia's full-sized avatar
🧜‍♀️
diving back into coding

Jewel Andraia Darger-Sacher jewel-andraia

🧜‍♀️
diving back into coding
View GitHub Profile
unbind C-b
set -g prefix C-w
# pane switching
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# pane creation
@jewel-andraia
jewel-andraia / nightmode.css
Created January 31, 2016 19:46
diff RES v4.5.4 vs RES 4.6.0
.res-nightmode body,
.res-nightmode body .content,
.res-nightmode .modal-body,
.res-nightmode .side,
.res-nightmode .icon-menu a,
.res-nightmode .side .leavemoderator,
.res-nightmode .side .leavecontributor-button,
.res-nightmode .side .titlebox,
.res-nightmode .side .spacer .titlebox .redditname,
.res-nightmode .side .titlebox .flairtoggle,
@jewel-andraia
jewel-andraia / keybase.md
Created February 18, 2016 23:10
keybase.md

Keybase proof

I hereby claim:

  • I am andytuba on github.
  • I am andytuba (https://keybase.io/andytuba) on keybase.
  • I have a public key whose fingerprint is 91A4 86A0 7A99 A10A 58EB 4775 8166 B31E 4198 08B7

To claim this, I am signing this object:

@jewel-andraia
jewel-andraia / keybase.md
Created February 18, 2016 23:10
keybase.md

Keybase proof

I hereby claim:

  • I am andytuba on github.
  • I am andytuba (https://keybase.io/andytuba) on keybase.
  • I have a public key whose fingerprint is 91A4 86A0 7A99 A10A 58EB 4775 8166 B31E 4198 08B7

To claim this, I am signing this object:

@jewel-andraia
jewel-andraia / getHash.js
Last active March 19, 2016 23:26
TBRESUtils
TBRESutils.getHash => location.hash.split(/[#!|#\?])find(hash => (hash.beginsWith('#!settings') && window.RESutils) || (hash.beginsWith('#?tbettings') && window.TButils))
@jewel-andraia
jewel-andraia / subreddit.css
Last active March 26, 2016 22:46
fake srstyle checkbox
.subButtons:after {
content: url(%%KkOs0p54vK4gHnUH%%) " Use Subreddit Style";
vertical-align: middle;
position: relative;
display: block;
top: -38.4px;
text-align: left;
font-size: 12px;
}
@jewel-andraia
jewel-andraia / to-clipboard.ps1
Created April 14, 2016 00:24
Copy image to clipboard using PowerShell
[Reflection.Assembly]::LoadWithPartialName('System.Drawing');
[Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms');
$filename = 'C:\Users\Administrator\Pictures\background-logo-1024.png';
$file = get-item($filename);
$img = [System.Drawing.Image]::Fromfile($file);
[System.Windows.Forms.Clipboard]::SetImage($img);
@jewel-andraia
jewel-andraia / README.md
Last active August 23, 2016 20:11
Reddit HTML change impact brainstorm

Sometimes changes to reddit HTML break subreddit CSS or browser extension functionality. It would be nice to minimize breaks and to notify mods/developers about breaking changes.

@jewel-andraia
jewel-andraia / README.md
Last active December 21, 2016 14:04
Add many users to reddit friends

This script prompts you for many usernames and adds them to your your r/friends list.

Usage:

  1. Visit https://www.reddit.com/prefs/friends
  2. Run this script.
  3. Wait around for a while. (1 minute / 30 people.)

⚠️ You really shouldn't run random scripts from people on the internet. Your account/computer might get compromised or broken.

@jewel-andraia
jewel-andraia / callback.py
Created August 7, 2018 21:47
Echo POST request
import SimpleHTTPServer
import SocketServer
import json
from datetime import datetime
PORT = 8443
class ServerHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_POST(self):