Skip to content

Instantly share code, notes, and snippets.

Lucas Stomberg lstomberg

  • Wisconsin
Block or report user

Report or block lstomberg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lstomberg
lstomberg / mint.com-HideZeroBalanceAccounts.js
Created Nov 20, 2019
TamperMonkey script to hide all accounts with a $0.00 balance on Mint.com's overview page
View mint.com-HideZeroBalanceAccounts.js
// ==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 Sep 8, 2018
Find all protocols defined in Swift source from apple/swift
View list-swift-protocols.sh
# 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 '
View gist:c037f0154a209ee1004eaa94e7acd10b
######################
# 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 Jan 19, 2018 — forked from DavideMontersino/private-fork.md
How to fork to a private gitlab instance
View private-fork.md

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

You can’t perform that action at this time.