Skip to content

Instantly share code, notes, and snippets.

View iuhoay's full-sized avatar
🏠
Working from home

iuhoay iuhoay

🏠
Working from home
  • Ningbo, China
  • 08:42 (UTC +08:00)
View GitHub Profile
@iuhoay
iuhoay / blurlock
Last active December 21, 2022 09:11
i3lock run script - blur
#!/bin/bash
# /usr/bin/blurlock
# take screenshot
# import -silent -window root /tmp/screenshot.png
scrot -z /tmp/screenshot.png
# blur it
# convert /tmp/screenshot.png -brightness-contrast -20x20 -colorspace LinearGray -blur 0x5 -average /tmp/screenshotblur.png
@iuhoay
iuhoay / ffmpeg_usage.md
Last active June 22, 2020 13:12
ffmpeg usage

去掉片头广告

ffmpeg -ss 00:00:00 -i input.mp4 -vcode copy -acodec copy output.mp4
@iuhoay
iuhoay / multiple_ssh_setting.md
Created August 31, 2016 06:22 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
zh-CN:
admin:
js:
true: True
false: False
is_present: "存在"
is_blank: "为空"
date: "日期 ..."
between_and_: "在 ... 和 ... 之间"
today: "今天"
@iuhoay
iuhoay / gist:37edc605651855cf80ef
Created January 26, 2016 12:00
clear Mac OSX icns cache
touch /Applications/App.app
touch /Applications/App.app/Contents/Info.plist
killall Dock
@iuhoay
iuhoay / generators.rb
Last active December 22, 2015 06:09
Rails Generators initializer
# http://guides.rubyonrails.org/configuring.html#configuring-generators
Rails.application.config.generators do |g|
g.assets = false # no assets
g.helper = false # no helper
end
@iuhoay
iuhoay / tomcat
Last active August 29, 2015 14:02
Ubuntu tomcat
case $1 in
start)
sh $CATALINE_HOME/bin/startup.sh
;;
stop)
sh $CATALINE_HOME/bin/shutdown.sh
;;
restart)
sh $CATALINE_HOME/bin/startup.sh
sh $CATALINE_HOME/bin/shutdown.sh
@iuhoay
iuhoay / gist:5932619
Created July 5, 2013 07:22
msyql 批量清理连接
mysql>select concat('KILL ',id,';') from information_schema.processlist into outfile '/tmp/a.txt';
mysql>source /tmp/a.txt;
@iuhoay
iuhoay / eclipse.ini
Created May 15, 2013 03:12
eclipse gc 优化
-XX:MaxPermSize=256m
-Xms1024m
-Xmx1024m
-XX:+PrintGCTimeStamps
-XX:+PrintGCDetails
-verbose:gc
-Xloggc:LOG/eclipse-gc.log
-XX:+DisableExplicitGC
@iuhoay
iuhoay / Gemfile
Last active December 17, 2015 04:48
say Hello from Sinatra
source "http://ruby.taobao.org/"
gem "sinatra"