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
// ==UserScript==
// @name SOJM "Softlite" Variant
// @namespace salembeats
// @version 2.03
// @description Variant of SOJM for those who are demotivated by seeing the leaderboards and can't resist the urge to look at them. Basically the same as regular SOJM (https://gist.github.com/salembeats/fd67a279b7ec7977f2f01a90cbd0958b), but with competitive elements removed. NOTE: Requires Kadauchi's "MTurk Dashboard Enhancer" script to function properly.
// @author Cuyler Stuwe (salembeats)
// @include https://worker.mturk.com/dashboard*
// @grant GM_info
// ==/UserScript==
function gaps(sortedAscendingEarnings) {
const ascendingSortedGaps = sortedAscendingEarnings.reduce((acc, num) => {
return { prevNumber: num, gaps: [ ...acc.gaps, num - acc.prevNumber ] }
}, { prevNumber: 0, gaps: [] }).gaps.sort((a, b) => (a-b));
return ascendingSortedGaps;
}
function averageGap(ascendingSortedValues) {
const gapsFromSortedValues = gaps(ascendingSortedValues);
@cuylerstuwe
cuylerstuwe / tmux-cheatsheet.markdown
Created January 23, 2019 22:22 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

I’m looking for any tips or tricks for making chrome headless mode less detectable. Here is what I’ve done so far:

Set my args as follows:

const run = (async () => {

    const args = [
        '--no-sandbox',
        '--disable-setuid-sandbox',
        '--disable-infobars',
@cuylerstuwe
cuylerstuwe / karabiner.json
Created January 17, 2019 20:38 — forked from PerpetualBeta/karabiner.json
Karabiner Configuration File
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": false,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
#!/bin/bash
# Swap Caps Lock and Escape
xmodmap ~/.xmodmap
SYNAPTICS_DEVICE_ID=$(xinput list | grep Synaptics | grep -oP '(?<=id=)\w*')
PALM_REJECTION_ID=309
PALM_SIZE_AND_PRESSURE_ID=310
PALM_REJECTION_ENABLE=1
// ==UserScript==
// @name mTurk Dashboard - Last 7 Days' Earnings
// @namespace salembeats
// @version 1.3
// @description UPDATE: Weekly report generation.
// @author Cuyler Stuwe (salembeats)
// @match https://worker.mturk.com/dashboard*
// @grant none
// ==/UserScript==
@cuylerstuwe
cuylerstuwe / panda-crazy-local-copy.user.js
Created December 5, 2018 06:04
Shrinkwrapped copy of the most current public version of Panda Crazy, uploaded here to ensure compatibility with custom extensions. This tool's author is JohnnyRS (johnnyrs@allbyjohn.com).
// ==UserScript==
// @name JR Mturk Panda Crazy
// @version 0.6.3
// @description Collects panda's for you at a certain cycle instead of timers. Lot of organizing of panda's and grouping them together to start and stop them at once.
// @author (JohnnyRS on mturkcrowd.com and mturkgrind.com) johnnyrs@allbyjohn.com
// @include http*://worker.mturk.com/?filters[search_term]=pandacrazy=on*
// @include http*://worker.mturk.com/requesters/PandaCrazy/projects*
// @include http*://worker.mturk.com/?PandaCrazy*
// @include http*://worker.mturk.com/?end_signin=1&filters%5Bsearch_term%5D=pandacrazy%3Don*
// @require http://code.jquery.com/jquery-2.1.4.min.js
// ==UserScript==
// @name JVteam submit fix
// @namespace salembeats
// @version 1.32
// @description .
// @author Cuyler Stuwe (salembeats)
// @include *
// @require https://gist.github.com/salembeats/3dd0c6c765a553c1184bc1d6d075bb9a/raw/5335a3ca833e5ccb7574c3c1d7b8af2e0e96a859/mselect.library.user.js
// @require https://gist.github.com/salembeats/6f50c37f7309fe1c7632376c4e2f3a1c/raw/bce38260696278c5cb42d0d8ee5f65125511577b/maction.library.user.js
// @require https://gist.github.com/salembeats/2661fe710d1520a50cb0f8fa8b23d052/raw/d8174bc63c1c3fea038dbed542308d64375bfecb/mutil.library.user.js