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
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 go.sh

Run with PyPy:

pip-pypy install cffi
PYTHON=pypy sh go.sh
@likebeta
likebeta / demo-twisted-stackless
Last active Oct 11, 2015
pypy+stackless+twisted示例
View demo-twisted-stackless
pypy+stackless+twisted 示例
@likebeta
likebeta / dnspod-ddns.py
Created Sep 5, 2015
ddns power by dnspod api
View dnspod-ddns.py
#!/usr/bin/env python
# -*- coding=utf-8 -*-
# Author: 易思龙 <ixxoo.me@gmail.com>
# Create: 2015-09-05
import time
import json
import urllib
import urllib2
View aria2.conf
dir=/home/nas/download
disable-ipv6=true
daemon=true
disk-cache=32M
enable-rpc=true
rpc-listen-all=true
rpc-allow-origin-all=true
View rsyncd.conf
max connections = 16
use chroot = no
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.lock
[backup]
uid = root
gid = root
path = /home/backup
@likebeta
likebeta / nginx.conf
Last active Sep 13, 2015
nginx config simple
View nginx.conf
server {
listen 80;
server_name app.ixxoo.me;
charset utf-8;
location /download/ {
autoindex on;
autoindex_localtime on;
autoindex_exact_size off;
charset utf-8;
}
@likebeta
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
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
@likebeta
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:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
@likebeta
likebeta / smb-diff.conf
Last active Sep 5, 2015
samba config simple
View smb-diff.conf
[global]
workgroup = MYGROUP
display charset = UTF-8
unix charset = UTF-8
security = user
username map = /etc/samba/smbusers
dns proxy = yes
unix extensions = no
[third-party]
@likebeta
likebeta / get_user_name.sh
Created Jun 3, 2015
get user name with shell script
View get_user_name.sh
#!/usr/bin/env bash
# -*- coding=utf-8 -*-
# Author: 易思龙 <ixxoo.me@gmail.com>
# Create: 2015-06-03
username=${USER}
if [ "$username" == "" ]; then
username=`cat /etc/passwd | awk -F':' '{if ($3 == test) {print $1}}' test=$(id -u)`
fi
You can’t perform that action at this time.