Skip to content

Instantly share code, notes, and snippets.

@sclem
sclem / kubectl-set-cookie.patch
Created September 8, 2022 21:39
Configure session cookie from env for kubectl to steal web authentication
@sclem
sclem / tampermonkey_fidelity_closed_pl.js
Created May 19, 2021 15:32
Shows P&L Percentage on Fidelity's "Closed Positions" table in the HTML title attribute
// ==UserScript==
// @name Fidelity P&L Percent
// @namespace http://tampermonkey.net/
// @version 0.1
// @description show fidelity p&l percent on closed positions view
// @author You
// @match https://oltx.fidelity.com/ftgw/fbc/ofaccounts/closedPositions
// @icon https://www.google.com/s2/favicons?domain=fidelity.com
// @grant none
// ==/UserScript==
@sclem
sclem / gist:77457a5bd00e2ec60959
Created March 4, 2016 21:49 — forked from cdated/gist:c43a80a56d5931e09bd2
Remove git submodules
Remove config entries:
git config -f .git/config --remove-section submodule.$submodulepath
git config -f .gitmodules --remove-section submodule.$submodulepath
Remove directory from index:
git rm --cached $submodulepath
Commit
Delete unused files:
rm -rf $submodulepath
rm -rf .git/modules/$submodulepath
@sclem
sclem / t3500.md
Last active January 4, 2022 19:51
Dell Precision T3500 OSX Power Management Tutorial

Dell T3500 OSX Power Management Tutorial

  1. Assume you have OSX installed.

Extract your dsdt from windows or linux - use aida64.

You may get errors. Choose fix errors. If any remain, google the line the error occurs for the fix. For example: My only remaining error was an unidentified *. rename *pnp0c14 to PNP0C14 - all caps, remove the *, keep the quotes.