Skip to content

Instantly share code, notes, and snippets.

View zation's full-sized avatar

Zation zation

View GitHub Profile
@zation
zation / analytics.js
Created October 18, 2017 08:17
Analytics
(function () {
document.body.insertAdjacentHTML('beforeend', `
<style>
.AnalyticsContainer {
position: relative;
border: 3px solid red !important;
}
.AnalyticsContainer:hover > .Analytics {
display: block;
}
@zation
zation / sshb
Last active July 19, 2017 02:45
A shell file to show current hostname in iTerm2 window for iTerm2 version 3.0.0
#!/bin/bash
# SSH with host name and IP address in background (only in iTerm.app)
# This is depended on imagemagick
# First, check to see if we have the correct terminal!
if [ "$(tty)" == 'not a tty' ] || [ "$TERM_PROGRAM" != "iTerm.app" ] ; then
/usr/bin/ssh "$@"
exit $?
fi
@zation
zation / private.xml
Last active December 30, 2015 21:19 — forked from zhigang1992/private.xml
<?xml version="1.0"?>
<root>
<item>
<name>F19 to F19</name>
<appendix>(F19 to Hyper (ctrl+shift+cmd+opt) + F19 Only, F19)</appendix>
<identifier>private.f192f19</identifier>
<autogen>
--KeyOverlaidModifier--
KeyCode::F19,
KeyCode::COMMAND_L,