Skip to content

Instantly share code, notes, and snippets.

View amio's full-sized avatar
:octocat:

Amio Jin amio

:octocat:
View GitHub Profile
@amio
amio / gist:2043125
Created March 15, 2012 09:14
Activate Finder
tell application "Finder"
activate
if not (exists Finder window 1) then
open home
end if
end tell
@amio
amio / metalmonkey.user.js
Last active October 9, 2015 02:08
WMOCN.Plus
// ==UserScript==
// @name MetalMonkey Experiment
// @namespace http://amio.us/
// @version 0.3
// @description 测试 MetalMonkey 哎哟
// @match http://developer.chrome.com/*
// @match https://gist.github.com/*
// @include http://www.google.com/intl/en/policies/faq/
// @exclude http://developer.chrome.com/*/whats-new/
// @grant GM_xmlhttpRequest
@amio
amio / readme.md
Created October 22, 2012 07:17
WOL.CN

WOL中文增强


  1. 将鼠标指向技能提示由英文改为中文
  2. 样式美化
    • 修改字体为OpenSans

安装方法

  1. 安装插件环境
@amio
amio / color-picker.applescript
Last active December 12, 2015 03:29
Color Picker using DigitalColor Meter
-- Color Picker using DigitalColor Meter
-- Checks to see if System Preferences > Universal Access > Enable access for assistive devices is checked
-- This option is required for "System Events" to use the keystroke and key code commands.
-- If it is not checked, your password is required to make the change
tell application "DigitalColor Meter" to activate
tell application "System Events"
tell process "DigitalColor Meter"
set visible to false
@amio
amio / sshproxy.md
Last active October 22, 2018 20:32
SSH Through or Over Proxy

SSH Through or Over Proxy

In today's cruel networked world, we're too often hampered behind (evil) company proxies that restricts how we can use the internet while at work, at a customers' place or even in some cases while at home or at friends'.

Not only do proxies restrict what you can do, what protocols that are accepted, what sites you can visit and what TCP ports that are let through, it also allows your company or friend to log and supervise you.

Note that even when you use HTTPS through the proxy, the server name is exposed so a logging proxy will see what HTTPS servers you connect to.

I'll show you some easy steps that help you circumvent the boundaries of most proxy setups, and that also will bring you more freedom and prevent peeking eyes to investigate your browsing habits!

@amio
amio / jsjd.md
Last active December 16, 2015 10:09
Ctrip.FE JD (JavaScript)

资深前端工程师(JS方向)

(携程内最具野心和潜力的移动端项目,年薪25-40W,NB的话再高其实也可以谈啦)

要求:

  • 两年以上专职 JavaScript 开发经验;
  • 精通 JavaScript,熟练手写原生 JS 代码,精通各种前端调试工具;
  • 扎实的 CSS 基础;
@amio
amio / README.md
Last active May 28, 2020 14:19
一些不太常用所以记不住但还挺有用的终端命令

一些不太常用所以记不住但还挺有用的终端命令

@amio
amio / fmog.css
Last active December 22, 2015 21:38
Fork me on Github
/***** Fork me on Github *****/
#fork-me-on-github {
opacity : 0.8;
background-color : #A00;
color : #FFF;
display : block;
position : fixed;
z-index : 10;
right : -6em;
@amio
amio / README.md
Last active August 29, 2015 13:57
Ocean for Gmail (userstyle)
@amio
amio / ng-filter-ago.js
Created April 25, 2014 08:54
Angular filter for transforming a date to 'xxx days ago'
'use strict';
angular.module('Utils', [])
/**
* Transform a date to 'xxx days ago'
*/
.filter('ago', function () {
return function (input) {