Skip to content

Instantly share code, notes, and snippets.

View cuylerstuwe's full-sized avatar
Drinking covfefe.

Cuyler Stuwe cuylerstuwe

Drinking covfefe.
View GitHub Profile
@cuylerstuwe
cuylerstuwe / forking-over-9000.user.js
Last active July 18, 2019 18:47
A significantly-improved variant of Hit Forker. Visit https://worker.mturk.com/?over9000 after installing.
// ==UserScript==
// @name FO-9000 ("Forking Over 9000")
// @version 1.09
// @description A significantly-improved variant of Hit Forker. UPDATE: Caveman-speak and single-word requester names when horizontal space is at a premium.
// @author Cuyler Stuwe (salembeats)
// @icon https://i.imgur.com/snRSm80.gif
// @include https://worker.mturk.com/?over9000*
// @include https://worker.mturk.com/?end_signin=1&over9000*
// @grant GM_log
// @grant GM_setClipboard
@cuylerstuwe
cuylerstuwe / modified-agnoster-for-oh-my-zsh.zsh-theme
Created February 20, 2019 22:08
Agnoster theme for Oh My Zsh, modified for brevity on OSX (avoids showing local user by setting machine-specific DEFAULT_USER, shows only directory name instead of full path)
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
@cuylerstuwe
cuylerstuwe / github_gpg_key.md
Last active February 16, 2019 09:13 — forked from ankurk91/github_gpg_key.md
Github : Signing commits using GPG (Ubuntu/Mac)

Signing GitHub Commits Using GPG (Ubuntu/Mac)

Ubuntu Prerequisites

sudo apt-get install gpa seahorse

OSX Prerequisites

brew install gpg

@cuylerstuwe
cuylerstuwe / copiesOf.js
Last active February 11, 2019 17:07
Generator function meant for destructuring an arbitrary amount of variables to a specific shape.
function* copiesOf(val) {
if(Array.isArray(val)) {
while(true) yield [...val];
}
else if(val === null) {
while(true) yield null;
}
else if(typeof val === "object") {
while(true) yield {...val};
@cuylerstuwe
cuylerstuwe / install-default.sh
Created February 3, 2019 19:34
Installer to set up Neovim to be ready to use my init.vim configuration script.
#!/bin/bash
mkdir -p ~/.config/nvim/dein && \
git clone https://github.com/Shougo/dein.vim ~/.config/nvim/dein/repos/github.com/Shougo/dein.vim
@cuylerstuwe
cuylerstuwe / init.vim
Last active February 5, 2019 00:42
New init.vim file created to be fairly lightweight to run on a Pi 3B+.
" ====================================
" NeoVim Configuration file for Pi
" Cuyler Stuwe
" Version 1.1
" ====================================
"
" Description:
"
" Neovim configuration with a decent balance of functionality and light weight
" for editing code on the Raspberry Pi 3B+.
// ==UserScript==
// @name Contribute to "Seen" API
// @namespace salembeats
// @version 1.03
// @description When browsing mTurk, mark seen HITs as seen.
// @author Cuyler Stuwe (salembeats)
// @include https://worker.mturk.com/
// @include https://worker.mturk.com/projects
// @include https://worker.mturk.com/projects/
// @include https://worker.mturk.com/projects?page_size*
// ==UserScript==
// @name Public -Testing Headers
// @namespace salembeats forked by jrw254 (sabedth)
// @version 1.1
// @description Links to whatever you want on the Overview & Earnings Bar Original code by salembeats with a small tweak to place inside this specific navbar
// Combine this with Forking Panda Links on mTurk Dashboard for double the links!
// @author Cuyler Stuwe (salembeats) forked by jrw254 (sabedth)
// @include https://worker.mturk.com/dashboard*
// @include https://worker.mturk.com/tasks*
// @include https://worker.mturk.com/projects*
// ==UserScript==
// @name Forking Short
// @namespace salembeats
// @version 1.00
// @description Keeps the Hit Forker log short (trimming off old HITs first) for performance purposes.
// @author Cuyler Stuwe (salembeats)
// @include https://worker.mturk.com/?finder_beta
// @include https://worker.mturk.com/?hit_forker
// ==/UserScript==