Skip to content

Instantly share code, notes, and snippets.

@mapitman
mapitman / profiles.json
Last active September 8, 2020 16:47
Windows Terminal Config
// This file was initially generated by Windows Terminal 1.2.2381.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{ff4f0db0-f0f2-46bc-a58f-fe44d62f51cc}",
// You can add more global application settings here.
{
"log": {
"version": "1.2",
"pages": [],
"entries": [
{
"request": {
"method": "POST",
"url": "https://api.gettyimages.com/oauth2/token",
"httpVersion": "HTTP/1.1",
@mapitman
mapitman / hyper.js
Created August 30, 2017 23:00
Windows Hyper Term config
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
@mapitman
mapitman / dropkick.sh
Created December 31, 2015 23:58
Shell script to detect and disable certain brands of webcams. https://julianoliver.com/output/log_2015-12-18_14-39
#!/bin/bash
#
# DROPKICK.SH
# Originally from: https://julianoliver.com/output/log_2015-12-18_14-39
#
# Detect and Disconnect the DropCam and Withings devices some people are using to
# spy on guests in their home, especially in AirBnB rentals. Based on Glasshole.sh:
#
# http://julianoliver.com/output/log_2014-05-30_20-52
#
pushd 'c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC'
cmd /c "vcvarsall.bat&set" |
foreach {
if ($_ -match "=") {
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
}
popd
write-host "`nVisual Studio 2013 Command Prompt variables set." -ForegroundColor Yellow

Keybase proof

I hereby claim:

  • I am mapitman on github.
  • I am markpitman (https://keybase.io/markpitman) on keybase.
  • I have a public key whose fingerprint is 9800 3095 BE42 CE16 CA61 FCC2 A4FA 7F2D 49BA EB9D

To claim this, I am signing this object: