#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
#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; |
| /** | |
| * [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){ |
| 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..." |
| #!/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 |
| // ==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== |
| // 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' |