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
View jquery_download
<script src="http://libs.useso.com/js/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
function ajax_download(url, data) {
var $iframe,
iframe_doc,
iframe_html;
if (($iframe = $('#download_iframe')).length === 0) {
$iframe = $("<iframe id='download_iframe'" +
" style='display: none' src='about:blank'></iframe>"
View redis-server
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid
@likebeta
likebeta / qq-chat
Last active Aug 29, 2015
qq相关组件
View qq-chat
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=&site=qq&menu=yes">
<img border="0" src="http://wpa.qq.com/pa?p=2::52" alt="点击这里给我发消息" title="点击这里给我发消息"/>
</a>
@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
@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
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
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
@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 / 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 / demo-twisted-stackless
Last active Oct 11, 2015
pypy+stackless+twisted示例
View demo-twisted-stackless
pypy+stackless+twisted 示例
You can’t perform that action at this time.