Skip to content

Instantly share code, notes, and snippets.

View lstomberg's full-sized avatar

Lucas Stomberg lstomberg

View GitHub Profile
@lstomberg
lstomberg / FortuneCookie.js
Created July 7, 2021 14:08 — forked from Tydus/FortuneCookie.js
FortuneCookie.js
Game.Win('Third-party');
if(FortuneCookie === undefined) var FortuneCookie = {};
if(typeof CCSE == 'undefined') Game.LoadMod('https://klattmose.github.io/CookieClicker/' + (0 ? 'Beta/' : '') + 'CCSE.js');
FortuneCookie.name = 'Fortune Cookie';
FortuneCookie.version = '2.17';
FortuneCookie.GameVersion = '2.022';
FortuneCookie.launch = function(){
FortuneCookie.init = function(){
FortuneCookie.isLoaded = 1;
@lstomberg
lstomberg / mint.com-HideZeroBalanceAccounts.js
Created November 20, 2019 19:19
TamperMonkey script to hide all accounts with a $0.00 balance on Mint.com's overview page
// ==UserScript==
// @name Hide $0.00 account balances on Mint
// @namespace http://tampermonkey.net/
// @version 1.0
// @description This script cleans up the Cash and Credit Card accounts list on the overview page by hiding all accounts showing a balance of $0.00.
// @author Lucas Stomberg
// @match https://mint.intuit.com/overview.event
// @grant none
// ==/UserScript==
@lstomberg
lstomberg / list-swift-protocols.sh
Last active September 8, 2018 16:09
Find all protocols defined in Swift source from apple/swift
# Get the source
git clone https://github.com/apple/swift.git
cd swift
# 1.
# find all lines that have protocol as one of the first 2 words, strip characters '{' and '}' to clean up the line
grep -rh -E "^[^\/ ]* ?protocol " --exclude-dir={.git,.github,unittests,validation-test,test,docs,cmake,apinotes,benchmark} . | sed 's/[{}]//g'
# 2.
# To get just the protocol name and inheritance, additionally strip all characters preceeding and including 'protocol '
######################
# Options
######################
REVEAL_ARCHIVE_IN_FINDER=false
FRAMEWORK_NAME="${PROJECT_NAME}"
SIMULATOR_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework"
@lstomberg
lstomberg / private-fork.md
Created January 19, 2018 16:47 — forked from DavideMontersino/private-fork.md
How to fork to a private gitlab instance

Theory:

your git repository can have more than one remote server; In this case we want to have two:

  1. one for our private repository on gitlab (will be the default one, called origin)
  2. one to be connected to the source repo on github, to be able to pull new changes (will be called upstream)

How to make a private fork from github to gitlab