Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Jintao Zhang tao12345666333

🎯
Focusing
Block or report user

Report or block tao12345666333

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View put-multiarch-prototype.sh
#!/usr/bin/env bash
set -Eeuo pipefail
# for real pushes, this would be "library"
targetOrg='trollin'
# https://github.com/tianon/dockerhub-public-proxy
publicProxy="$DOCKERHUB_PUBLIC_PROXY"
_curl() {
@tao12345666333
tao12345666333 / nginx.conf
Last active Sep 7, 2019
多个vue前端项目使用同一域名nginx配置
View nginx.conf
upstream api {
server localhost:6663;
}
server {
listen 80;
server_name moelove.info;
charset utf-8;
root /www/moelove;
index index.html index.html;
@tao12345666333
tao12345666333 / Python3.6-build-on-CentOS7.txt
Created Jun 22, 2017
Python3.6 source code build on CentOS 7.3
View Python3.6-build-on-CentOS7.txt
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_dbm _gdbm _lzma
_sqlite3 _tkinter readline
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
so.
sudo yum install gdbm-devel tk-devel xz-devel sqlite-devel readline-devel bzip2-devel ncurses-devel zlib=devel
@tao12345666333
tao12345666333 / MovingTheCtrlKey.sh
Created Aug 28, 2015
Moving the Ctrl key to Caps Lock
View MovingTheCtrlKey.sh
setxkbmap -layout "$(setxkbmap -print | awk -F + '/xkb_symbols/ {print $2}')" -option ctrl:nocaps
@tao12345666333
tao12345666333 / gist:bc4544836af6f619be5a
Created Sep 26, 2014
隐藏Web类APP的browser bar
View gist:bc4544836af6f619be5a
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
View conky-setting
# Conky settings #
background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
@tao12345666333
tao12345666333 / Regex-match-Chinese.py
Created Jul 23, 2014
正则表达式匹配中文
View Regex-match-Chinese.py
import re
nickname = raw_input('Please input your nickname > ')
if not re.search(u'^[\u4e00-\u9fa5a-zA-Z0-9]+$', unicode(nickname,'utf8')):
print 'Your nickname format is error, please try again !'
else:
print 'Hello %s'% nickname
@tao12345666333
tao12345666333 / show-git-branch
Created Jul 22, 2014
show git branch in bash shell
View show-git-branch
function git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return;
echo "("${ref#refs/heads/}") ";
}
PS1="[\[\e[1;35m\]\u\[\e[1;32m\]\w\[\e[0m\]] \[\e[0m\]\[\e[1;36m\]\$(git_branch)\[\e[0;33m\]\$"
View AboutMoeLove.js
(+[[]+(1<<1<<1<<1)+(1^1<<1)+(1<<1>>1)+(-~1<<1<<1)+(1.1>>1.1)+(11>>>1)])[[(!!/-/+{})[111^111]+[[]+{}][!1&.1][1|1>>1|1]]+([111/[]+[]][+(1>1)][([]+{})[11-1>>1]+[[],[]+{}+[]][[]+1][1]+(/^/[1]+[])[1|1>>1|1]+[{},1e1,!{}+[]][1+1][1<<1^1]+(11/!{}+{})[~1+1e1+~1]+[!!{}+{}][[]&111][1&1]+(/^/[111]+[])[11^11]+[{},[{}]+{},1][1+[]][11-~1+11>>1]+(!!1+{})[1&1>>1]+([]+{1:1}+[])[1|1]+[[]+!!1][111>>>111][1<<1>>1]]+[])[([]+![111])[1|1<<1|1]+[/=/,[]+[][11]][1|[]][1>>1]+([{}]+{})[1+!![1]]+[1,!1+/~/][1%11][1^1<<1]+(111/[]+{})[~1+1e1+~1]+[!!/-/+/-/][111%111][+!!1]]((~1+1e1+1)+((!1&.1)==([]+/-/[(!![111]+{})[1^1]+(!![1]+[])[1<<1^1]+(!{}+{})[1^1<<1]+(!![1]+/-/)[+(1>1)]])[+(1>1)]),1-~1<<1)](~1-~1e1<<1<<1)+":"+(([]===[])+/-/)[5]+(([]===[])+/-/)[5]
//http://
"."+
(+[[]+([]+1)+(1-~1<<1)+(1+1<<1)+(1|1<<1)+(1<<1<<1<<1)])
[[(!!1+{})[!1&.1]+[[]+{}+[]][1&[]][1+[]]]
+([11/[]+{}][+(111>111)][([{}]+[{}])[1e1>>1]+[[],[]+{}][[]+1][+!!1]+(/^/[111]+/&/)[1&1]+[{},1e1,!1+[]][1<<1][1^1<<1]+(111/!{}+/1/)[~1+1e1+~1]+[!!/-/+[]][11>>11][1|1]+([][1]+/&/)[1.
@tao12345666333
tao12345666333 / hostapd建立wifi
Created Mar 30, 2014
fedora 18 建立wifi热点
View hostapd建立wifi
$  sudo yum install hostapd
建立hostapd 配置文件
$ cat /etc/hostapd/hostapd.conf
##----------hostapd.conf----------##
interface=wlan0
driver=nl80211
hw_mode=g
channel=10
macaddr_acl=0
auth_algs=3
You can’t perform that action at this time.