Skip to content

Instantly share code, notes, and snippets.

@mhberger
mhberger / tot.sh
Last active March 29, 2020 02:06 — forked from gruber/tot.sh
A shell script for Tot
#!/bin/bash
# Fork of CHOCK's original tot.sh to add support for dot "0" to target
# the first empty dot.
# https://gist.github.com/chockenberry/d33ef5b6e6da4a3e4aa9b07b093d3c23
#
# 2 Mar 2020
# + Incorporated suggestions from ShellCheck (https://www.shellcheck.net).
# Thanks to Ramsey Dow.
# + Changed call to `python` to `/usr/bin/python` to get Python 2, avoiding
@mhberger
mhberger / gist:1eeafa6622979829fc8103f1adf806ec
Last active July 5, 2019 03:55 — forked from steipete/ios-xcode-device-support.sh
Using iOS 12.2 devices with Xcode 10.1
// The trick is to link the DeviceSupport folder from the beta to the stable version.
// Updated on Feb 15th, 2019 for Xcode 10.1
// For beta
ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.2\ \(16E5191d\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
// For stable and Xcode 10.1 installed at /Applications/Xcode\ 10.1.app
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.2\ \(16E226\) /Applications/Xcode\ 10.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
@mhberger
mhberger / checkpoint.sh
Last active December 27, 2015 16:09 — forked from bubenkoff/checkpoint.sh
#!/bin/bash
#
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just
# from time to time
# Usage: checkpoint.sh load|unload
# You will need sudo power, of course
#
COMMAND=$1