Skip to content

Instantly share code, notes, and snippets.

蝎子 likebeta

Block or report user

Report or block likebeta

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
likebeta / README.rst
Created Dec 8, 2016 — forked from tonyseek/README.rst
Build Python binding of C++ library with cffi (PyPy/Py3K compatible)
View README.rst

Run with Python:

pip-2.7 install cffi
PYTHON=python2.7 sh

Run with PyPy:

pip-pypy install cffi
PYTHON=pypy sh
likebeta / demo-twisted-stackless
Last active Oct 11, 2015
View demo-twisted-stackless
pypy+stackless+twisted 示例
likebeta /
Created Sep 5, 2015
ddns power by dnspod api
#!/usr/bin/env python
# -*- coding=utf-8 -*-
# Author: 易思龙 <>
# Create: 2015-09-05
import time
import json
import urllib
import urllib2
View aria2.conf
View rsyncd.conf
max connections = 16
use chroot = no
log file = /var/log/rsyncd.log
pid file = /var/run/
lock file = /var/run/rsyncd.lock
uid = root
gid = root
path = /home/backup
likebeta / nginx.conf
Last active Sep 13, 2015
nginx config simple
View nginx.conf
server {
listen 80;
charset utf-8;
location /download/ {
autoindex on;
autoindex_localtime on;
autoindex_exact_size off;
charset utf-8;
likebeta / config.txt
Last active Jun 15, 2017
raspbian config
View config.txt
# uncomment if you get no picture on HDMI for a default "safe" mode
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
likebeta / httpd.conf
Last active Aug 29, 2015
apache config simple
View httpd.conf
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:> for detailed information.
# In particular, see
# <URL:>
# for a discussion of each configuration directive.
# Do NOT simply read the instructions in here without understanding
likebeta / smb-diff.conf
Last active Sep 5, 2015
samba config simple
View smb-diff.conf
workgroup = MYGROUP
display charset = UTF-8
unix charset = UTF-8
security = user
username map = /etc/samba/smbusers
dns proxy = yes
unix extensions = no
likebeta /
Created Jun 3, 2015
get user name with shell script
#!/usr/bin/env bash
# -*- coding=utf-8 -*-
# Author: 易思龙 <>
# Create: 2015-06-03
if [ "$username" == "" ]; then
username=`cat /etc/passwd | awk -F':' '{if ($3 == test) {print $1}}' test=$(id -u)`
You can’t perform that action at this time.