Skip to content

Instantly share code, notes, and snippets.

View emj365's full-sized avatar
🎯
Focusing

Michael JIN emj365

🎯
Focusing
View GitHub Profile
@emj365
emj365 / gist:1044024
Created June 24, 2011 01:11
css overlay
#over_div {
position:fixed;
top:0;
left:0;
z-index:1987;
width:100%;
height:100%;
background:#000;
filter:alpha(opacity=70);
opacity:0.7;
@emj365
emj365 / jsbin.ovisoz.css
Created July 24, 2013 14:42
this is a very simple rolling banner write as jqueryPlugin
.emj-banner {
overflow: hidden;
position: relative;
}
.emj-banner a {
top: 0;
left: 0;
position: absolute;
}
###
#
# this script rename all files in current floder by number sequence
#
###
@start_i = 0
@folder = Dir.pwd
class String
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install dnscrypt-proxy --with-plugins
brew install caskroom/cask/brew-cask
# https://github.com/caskroom/homebrew-versions
# Alternate versions of Casks for homebrew-cask http://caskroom.io
brew tap caskroom/versions
brew cask install launchrocket
brew cask install alfred
@emj365
emj365 / devise.zh-CN.yml
Last active September 13, 2015 14:32 — forked from Kenrick-Zhou/devise.zh-CN.yml
rails devise 3.5.2 I18n translations zh-CN
# Chinese (China) translations for Devise(3.5.2)
# by Kenrick-Zhou (https://github.com/Kenrick-Zhou)
# https://gist.github.com/Kenrick-Zhou/7909822
zh-CN:
devise:
confirmations:
confirmed: "您的email已经确认。"
send_instructions: "几分钟后,您将收到确认帐号的电子邮件。"
send_paranoid_instructions: "如果您的邮箱存在于我们的数据库中,您将收到一封确认账号的邮件。"
@emj365
emj365 / authorized_keys
Last active March 5, 2017 10:42
docker registry
no-pty,no-X11-forwarding,permitopen="127.0.0.1:5000",permitopen="127.0.0.1:8080",command="/bin/echo do-not-send-commands" ssh-rsa <key-string> <id>
#!/bin/bash
docker run \
--name reverse-proxy \
--net=host \
-p 80:80 \
-v /root/nginx-conf.d:/etc/nginx/conf.d \
-d nginx:stable
Michael JIN - Full Stack Developer
===================================
Summary
--------
Good at self-study. Like new technology even about hardware.
- https://github.com/emj365
- https://stackoverflow.com/users/811653/emj365
@emj365
emj365 / install.sh
Last active September 7, 2017 09:52
install eslint for reactjs by yarn
yarn add --dev eslint eslint-config-standard eslint-config-standard-react eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-react eslint-plugin-standard
touch .eslintrc
cat > .eslintrc <<EOL
{
"extends": ["standard", "standard-react"]
}
EOL
touch .eslintignore
@emj365
emj365 / distfeeds.conf
Last active September 16, 2017 06:43
Lede config of Raspberry Pi 3
#/etc/opkg/distfeeds.conf
src/gz reboot_core http://mirrors.ustc.edu.cn/lede/releases/17.01.2/targets/brcm2708/bcm2710/packages
src/gz reboot_base http://mirrors.ustc.edu.cn/lede/releases/17.01.2/packages/arm_cortex-a53_neon-vfpv4/base
src/gz reboot_luci http://mirrors.ustc.edu.cn/lede/releases/17.01.2/packages/arm_cortex-a53_neon-vfpv4/luci
src/gz reboot_packages http://mirrors.ustc.edu.cn/lede/releases/17.01.2/packages/arm_cortex-a53_neon-vfpv4/packages
src/gz reboot_routing http://mirrors.ustc.edu.cn/lede/releases/17.01.2/packages/arm_cortex-a53_neon-vfpv4/routing
src/gz reboot_telephony http://mirrors.ustc.edu.cn/lede/releases/17.01.2/packages/arm_cortex-a53_neon-vfpv4/telephony