Skip to content

Instantly share code, notes, and snippets.

View Diffs with Fira Code in BitBucket Server
/* 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;
View gist:a35605c64fa24bc9768d10c5e70724d1
#!/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
View create_HighSierra_iso.sh
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
View useful-terminal-commands.sh
# 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
Manually install Brew
View install-brew.sh
# 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 Dec 5, 2012
Synaptics Touch Control Panel Launcher Batch File
View Synaptics Launcher
:: Right click this file and choose run as administrator
rundll32.exe "C:\Program Files\Synaptics\SynTP\SynTPCpl.dll",ShowDevicePropPage 0
View TabTip-Tamer
#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