Skip to content

Instantly share code, notes, and snippets.

@isayme
isayme / isayme.xcs
Last active March 7, 2022 12:52
xshell color scheme
[isayme]
text(bold)=eaeaea
magenta(bold)=ff00ff
text=ffffff
white(bold)=eaeaea
green=00c000
red(bold)=d20000
green(bold)=00ff00
black(bold)=808080
red=c00000
@isayme
isayme / v2ex_coin.py
Last active July 3, 2020 07:59
V2EX 每日登陆奖励自动获取脚本. 此脚本不再更新, 毕竟要依赖第三方pycurl库. 新版见: https://github.com/isayme/v2ex
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# 此脚本不再更新, 毕竟要依赖第三方pycurl库.
# 重写的脚本不再依赖非标准库, 感兴趣的见: https://github.com/isayme/v2ex
import sys
import string
try:
import pycurl2 as pycurl
@isayme
isayme / upload.js
Last active June 26, 2020 02:29
服务端使用 request & axios 上传文件
/*
* request 背后也是用的 form-data. 符合浏览器的 window.FromData 规范生产 body 及 header 信息.
* smfile 需要是 stream, 从而判定为文件.
* 另: formstream 应该也可以, 但没有测试过.
*/
const fs = require('fs')
const axios = require('axios')
const request = require('request-promise')
const FormData = require('form-data')
// ==UserScript==
// @name 电影天堂(dy2018.com)
// @version 0.1.2
// @description 修正下载链接
// @author iSayme
// @namespace https://github.com/isayme
// @homepage https://github.com/isayme
// @icon https://www.dy2018.com/favicon.ico
// @include https://www.dy2018.com/*
// @run-at document-end

Keybase proof

I hereby claim:

  • I am isayme on github.
  • I am isayme (https://keybase.io/isayme) on keybase.
  • I have a public key whose fingerprint is 1423 B54A 7C03 A38F 1B39 2167 10EE 8329 90BC 2A8A

To claim this, I am signing this object:

@isayme
isayme / Backbone-1.1.2-comments.js
Last active September 15, 2017 22:01
Backbone源码注释
// Backbone.js 1.1.2
// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
// 典型自执行函数格式:
// (funtion(root, factory) {
// // do stuff here
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
@isayme
isayme / songtaste-download.user.js
Last active January 19, 2017 11:11
油猴脚本 => 获取SongTaste歌曲下载链接, 点击页面中的"下载歌曲"即可直接下载.
// ==UserScript==
// @name SongTasteDownload
// @namespace http://www.onefloweroneworld.com
// @description 自动解析SongTaste歌曲URL,点击即可下载~
// @include http://www.songtaste.com/song/*
// @include http://songtaste.com/song/*
// @include http://www.songtaste.com/playmusic.php?song_id=*
// @include http://songtaste.com/playmusic.php?song_id=*
// @version 0.1
// @author iSayme
@isayme
isayme / ascii_isayme.txt
Created September 22, 2013 14:41
ASCII for iSayme
** ********
// **////// ** **
** /** ****** //** ** ********** *****
/** /********* //////** //*** //**//**//** **///**
/** ////////** ******* /** /** /** /** /*******
/** /** **////** ** /** /** /** /**////
/** ******** //******** ** *** /** /** //******
// //////// //////// // /// // // //////
@isayme
isayme / bash
Last active December 10, 2015 22:28
Linux setting
export PS1='\[\e[36;1m\]\u\[\e[01;30m\]@\[\e[32;1m\]\h:\[\e[01;35m\]\w \$ \[\e[0m\]'
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'