Skip to content

Instantly share code, notes, and snippets.

@atwright147
atwright147 / keybindings.json
Created November 10, 2022 14:16
VSCode Keyboard Shortcuts
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "shift+alt+enter",
"command": "editor.emmet.action.wrapWithAbbreviation"
},
{
"key": "shift+alt+cmd+enter",
"command": "editor.emmet.action.wrapIndividualLinesWithAbbreviation"
},
hdiutil create -o /tmp/HighSierra.cdr -size 7000m -layout SPUD -fs HFS+J &&\
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build &&\
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build &&\
mv /tmp/HighSierra.cdr.dmg ~/Desktop/InstallSystem.dmg &&\
hdiutil detach /Volumes/Install\ macOS\ High\ Sierra &&\
hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/HighSierra.iso &&\
mv ~/Desktop/HighSierra.iso.cdr ~/Desktop/HighSierra.iso &&\
rm ~/Desktop/InstallSystem.dmg
/* Bitbucket Server */
@import url(https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css);
/* Bitbucket code and diffs */
.content-view .CodeMirror pre,
pre.CodeMirror-line,
code {
font-family: 'Fira Code';
text-rendering: optimizeLegibility;
font-weight: 500;
#!/usr/bin/env python3.7
import iterm2
# This script was created with the "basic" environment which does not support adding dependencies
# with pip.
async def main(connection):
# Your code goes here. Here's a bit of example code that adds a tab to the current window:
app = await iterm2.async_get_app(connection)
window = app.current_terminal_window
# find files matching pattern `*.orig`
find . -name '*.orig'
# find files matching pattern `*.orig` and delete them
find . -name '*.orig' -exec rm -rf {} \;
@atwright147
atwright147 / install-brew.sh
Last active May 17, 2017 10:37
Manually install Brew
# FROM: https://github.com/Homebrew/homebrew-core/issues/5084#issuecomment-248834806
cd /usr/local/Homebrew &&\
git init &&\
git remote add origin https://github.com/Homebrew/brew &&\
git fetch --all &&\
git checkout -B master origin/master &&\
cd /usr/local &&\
ln -s /usr/local/Homebrew/bin/brew /usr/local/bin
@atwright147
atwright147 / Synaptics Launcher
Created December 5, 2012 21:58
Synaptics Touch Control Panel Launcher Batch File
:: Right click this file and choose run as administrator
rundll32.exe "C:\Program Files\Synaptics\SynTP\SynTPCpl.dll",ShowDevicePropPage 0
#Persistent
FlashWinTitle = Flash, Alias, Mirage, Painter, Photoshop, Illustrator, Expression, ArtRage
SetTimer, WatchFlash, 2000 ;Checks the window every 2 seconds
WatchFlash:
WinGetActiveTitle, ActiveTitle
If ActiveTitle Not Contains %FlashWinTitle%
{
Process, Priority, tabtip.exe, normal
}
Else ;it is the active window so make it high priority