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 qq-mail-me
<a target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=GnZzcX94f257WmtrNHl1dw" style="text-decoration:none;">
<img src="http://rescdn.qqmail.com/zh_CN/htmledition/images/function/qm_open/ico_mailme_02.png" />
</a>
@likebeta
likebeta / qq-mail-share
Last active Dec 15, 2015
QQ邮件分享
View qq-mail-share
<script type="text/javascript">
(function(){
var p = {
url:location.href,
to:'qqmail',
desc:'', /*默认分享理由(可选)*/
summary:'',/*摘要(可选)*/
title:'',/*分享标题(可选)*/
site:'',/*分享来源 如:腾讯网(可选)*/
pics:'' /*分享图片的路径(可选)*/
View git.md

1.同一台电脑可以有2个git账号(不同网站的)

首先不同网站,当然可以使用同一个邮箱,比如我的github,gitlab,bitbucket的账号都是monkeysuzie[at]gmail.com 这时候不用担心密钥的问题,因为这些网站push pull 认证的唯一性的是邮箱 比如我的windows 上 2个账号一个gitlab 一个github (用的都是id_rsa)

host github
  hostname github.com
  Port 22
host gitlab.zjut.com
View An_example.markdown

This re-styles your sublime text 2 sidebar to be darker, so it doesn't blind you when using a dark theme.

Dark sublime text 2 sidebar

Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.

View python-enum
class TEnum:
def __init__(self, *arguments):
idx = 0
for name in arguments:
if '=' in name:
name,val = name.rsplit('=', 1)
if val.isalnum():
idx = eval(val)
searrt(self, name.strip(), idx)
idx += 1
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 / foo.bar.__init__.py
Last active Dec 8, 2016
python-import-test
View foo.bar.__init__.py
#!/usr/bin/env python
# -*- coding=utf-8 -*-
# Author: 易思龙 <ixxoo.me@gmail.com>
# Create: 2014-10-21
print __file__
def bar_init():
@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
You can’t perform that action at this time.