Skip to content

Instantly share code, notes, and snippets.

#Remove Dock Icon of Mac OSX App

How to get rid of unnecessary dock icons.

##Generic

Navigate to the app and look in the container for info.plist. Open info.plist and add or modify the LSUIElement Element.

LSUIElement
# opening and closing windows and popovers
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
# smooth scrolling
defaults write -g NSScrollAnimationEnabled -bool false
# showing and hiding sheets, resizing preference windows, zooming windows
# float 0 doesn't work
defaults write -g NSWindowResizeTime -float 0.001
var scr = document.createElement('script');
scr.type = 'text/javascript';
scr.src = "http://libs.baidu.com/jquery/1.9.0/jquery.min.js";
document.head.appendChild(scr);
scr.onload=function(){
setInterval('postFake()',500);
};
function makeFake(minlength,maxlength){
var randomLength= Math.floor(Math.random()*(maxlength-minlength))+minlength;
@RobertYim
RobertYim / postFakeAppleID-Parameter Ver
Created October 20, 2015 15:33 — forked from chitanda/postFakeAppleID-Parameter Ver
循环往钓鱼网站库里写虚假帐号和密码。目前自动模式只支持form表格提交的钓鱼网站。使用方法:在钓鱼网站页面打开浏览器开发者工具,将下面的代码复制到`console`中运行即可。自定义效果的话只需要按照函数说明的样式填写四个参数即可。eg loopPost(10,12,2000,2000)
/**
* [loopPost 循环往钓鱼网站库里写虚假帐号和密码。目前自动模式只支持form表格提交的钓鱼网站]
* @param {[type]} min [帐号和密码的最小长度,默认为6]
* @param {[type]} max [帐号和密码的最大长度,默认为12]
* @param {[type]} timeGap [发送数据的时间间隔,单位为ms,不需要填写单位。默认为500]
* @param {[type]} times [一共发送的虚假帐号个数,默认为5000]
* @return {[type]} [description]
*/
function loopPost(min,max,timeGap,times){
@RobertYim
RobertYim / GAME_MASTER_v0_1.protobuf
Created July 18, 2016 03:58 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
#!/bin/bash
printf '\e[1;40;92m'
clear
printf "All TNT releases are provided\n\tfree of charge for educational and uncommercial reasons.\n"
printf "Все релизы TNT предоставляются\n\tбезвозмездно для образовательных и некоммерческих целей.\n"
echo ""
echo "Press ENTER if you agree or close this window!"
echo "Нажмите ENTER, если вы согласны, или закройте окно!"
read ok
echo "Please wait..."
@RobertYim
RobertYim / captcha.py
Created April 13, 2017 02:36 — forked from liberize/captcha.py
简单验证码识别
#!/usr/bin/env python
# coding: utf-8
import os
import sys
from PIL import Image, ImageChops
templates = []
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
@RobertYim
RobertYim / sinaimg.js
Last active September 5, 2017 02:57 — forked from mysteriouss/sinaimg.js
// ==UserScript==
// @name sinaimg
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match *://*.sinaimg.cn/*
// @grant none
// ==/UserScript==
@RobertYim
RobertYim / crypto-gcm.js
Created February 1, 2018 17:35 — forked from chris-rock/crypto-gcm.js
Use GCM for authenticated encryption in nodejs
// Nodejs encryption with GCM
// Does not work with nodejs v0.10.31
// Part of https://github.com/chris-rock/node-crypto-examples
var crypto = require('crypto'),
algorithm = 'aes-256-gcm',
password = '3zTvzr3p67VC61jmV54rIYu1545x4TlY',
// do not use a global iv for production,
// generate a new one for each encryption
iv = '60iP0h6vJoEa'