Skip to content

Instantly share code, notes, and snippets.

Daniele Orru' danydev

Block or report user

Report or block danydev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
danydev / ssh
Last active Nov 16, 2019
Update iTerm Badge with hostname of the server used to ssh
View ssh
# Script that updates the iTerm Badge with the hostname of the server that you are
# connecting to with ssh.
# Instructions:
# - Put this script in ~/bin/ssh (this will override the default ssh binary)
# - Run 'chmod +x ~/bin/ssh' to give execution permission to the script
# - Open iTerm\Preferences\Profiles, select your profile and put '\(user.current_ssh_host)' in the Badge text box
# - Enjoy!
View PSPDFUIKitMainThreadGuard.m
#import "VMUIKitMainThreadGuard.h"
#import <objc/runtime.h>
#import <objc/message.h>
#import <UIKit/UIKit.h>
* This installs a small guard that checks for the most common threading-errors in UIKit.
* This won't really slow down performance but still only is compiled in DEBUG versions.
* @note No private API is used here.
You can’t perform that action at this time.