Skip to content

Instantly share code, notes, and snippets.

@ntwi
ntwi / toolbox-context-menu.ps1
Last active April 1, 2022 11:18 — forked from jcwillox/toolbox-context-menu.ps1
PowerShell script to automatically add context menu entries for Jetbrains IDEs
<#
.SYNOPSIS
Automatically add context menu entries for Jetbrains IDEs.
.PARAMETER Name
The name or names of the IDEs to add context menus for, use -List to see available IDEs.
.PARAMETER BasePath
The path to the Toolbox apps directory, defaults to "$env:LOCALAPPDATA\JetBrains\Toolbox\apps".
.PARAMETER Global
Install context menu entries in HKLM registry (machine wide), requires running as administrator.
.PARAMETER Force
@ntwi
ntwi / tn2mn.py
Last active October 25, 2021 15:38 — forked from Warchant/tn2mn.py
Convert multiple phase 1 private keys to phase 2 private keys
#!/usr/bin/env python
import base58
from bottle import run, get, post, request
import json
main = bytes([128])
test = bytes([239])
@ntwi
ntwi / gist:4571c1bbaf03b89a34daef46d051372b
Created August 22, 2021 17:46 — forked from jwebcat/gist:5122366
Properly download from github using wget and curl
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1
# --no-check-cerftificate was necessary for me to have wget not puke about https
curl -LJO https://github.com/joyent/node/tarball/v0.7.1
@ntwi
ntwi / background.js
Created August 7, 2021 18:42 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});