Skip to content

Instantly share code, notes, and snippets.

View yesmeck's full-sized avatar
:octocat:
<img src="x" onerror="alert(1)" />

Wei Zhu yesmeck

:octocat:
<img src="x" onerror="alert(1)" />
View GitHub Profile
@yesmeck
yesmeck / keybase.md
Created February 27, 2015 05:06
keybase.md

Keybase proof

I hereby claim:

  • I am yesmeck on github.
  • I am yesmeck (https://keybase.io/yesmeck) on keybase.
  • I have a public key whose fingerprint is 26A9 0B54 5590 9D71 AC36 90B6 E3B5 FC04 0B5C 10B3

To claim this, I am signing this object:

Gist Vim

@yesmeck
yesmeck / regex.md
Last active August 29, 2015 14:13
Regex Lookaround
Regex Match
q(?=u) q followed by a u
q(?!u) q not followed by a u
(?<=u)q q preceded by u
(?
@yesmeck
yesmeck / unicorn.rb
Created December 18, 2014 06:36
unicorn config
# Sample verbose configuration file for Unicorn (not Rack)
#
# This configuration file documents many features of Unicorn
# that may not be needed for some applications. See
# http://unicorn.bogomips.org/examples/unicorn.conf.minimal.rb
# for a much simpler configuration file.
#
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
# documentation.
@yesmeck
yesmeck / unicorn.rb
Created December 18, 2014 05:59
unicorn zero downtime config
# Sample verbose configuration file for Unicorn (not Rack)
#
# This configuration file documents many features of Unicorn
# that may not be needed for some applications. See
# http://unicorn.bogomips.org/examples/unicorn.conf.minimal.rb
# for a much simpler configuration file.
#
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
# documentation.
@yesmeck
yesmeck / site
Last active August 29, 2015 14:09
nginx
upstream app_server {
server unix:/path/to/app/tmp/sockets/unicorn.sock;
}
server {
server_name app.com;
root /path/to/app/public;
access_log /var/log/nginx/app.access.log main;
@yesmeck
yesmeck / cVimrc
Last active November 13, 2017 03:21
cVimrc
let barposition = "bottom"
map <C-f> scrollPageDown
map <C-d> scrollPageUp
alert(1);
[2] pry(main)> "鬼入鏡:詛咒-2D中文版 (Walking With Dinosaurs-2D Digital Chinese ver.) (普遍級)".match /(.+?)-(.+?)\s\(.+?\)\s\((.+)\)/
=> #<MatchData
"鬼入鏡:詛咒-2D中文版 (Walking With Dinosaurs-2D Digital Chinese ver.) (普遍級)"
1:"鬼入鏡:詛咒"
2:"2D中文版"
3:"普遍級">
@yesmeck
yesmeck / Profile
Created January 4, 2014 06:21
foreman
sidekiq: bundle exec sidekiq -c 1