Skip to content

Instantly share code, notes, and snippets.

View kxxoling's full-sized avatar
💉
💊💊💊

Kane Blueriver kxxoling

💉
💊💊💊
View GitHub Profile
#!/usr/bin/env python
import os
import ConfigParser
from setuptools import find_packages, setup, Command
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
long_description = '\n' + f.read()
@kxxoling
kxxoling / github_open_in_nbviewer.user.js
Created September 5, 2017 07:08
Open Jupyter notebook in nbviewer.
// ==UserScript==
// @name GitHub nbviewer
// @namespace https://windrunner.me/
// @version 0.1
// @description Jump to nbviewer
// @author Kane Blueriver
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @match https://*.github.com/*.ipynb
// ==/UserScript==
@kxxoling
kxxoling / gamePadConfig.txt
Created August 28, 2017 09:50
Evoland 2 PS4 手柄按键配置
{
"analogX":0,
"analogY":1,
"analogYInv":false,
"attack":10,
"confirm":11,
"menu":13,
"cancel":12,
"ddrUp":16,
"up":6,
for i in $( seq -f "%04g" 1 500 )
do
wget https://cgv.blicky.net/fsn/$i.jpg
done
/Applications/Steam.app/Contents/MacOS/steam_osx steam://run/570
[2017-08-16 22:53:40] Startup - updater built Aug 22 2016 17:36:46
found breakpad via in process memory: '/Applications/Steam.app/Contents/Frameworks/Breakpad.framework/Versions/A/Resources'
Installing breakpad crash handler
[2017-08-16 22:53:40] Startup - updater built Jul 17 2017 16:15:39
found breakpad via in process memory: '/Users/windrunner/Library/Application Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/Frameworks/Breakpad.framework/Versions/A/Resources'
Installing breakpad crash handler
Looks like steam didn't shutdown cleanly, scheduling immediate update check
SteamID: 0, universe Public
[2017-08-16 22:53:40] Checking for update on startup
import requests
session = requests.Session()
session.get('https://forums.e-hentai.org/index.php')
session.post('https://forums.e-hentai.org/index.php?act=Login&CODE=01&CookieDate=1',
data={ 'UserName': 'kxxoling', 'PassWord': '1qaz2wsx', 'x': 30, 'y': 10 })
rsp = requests.get('https://exhentai.org', cookies=dict(session.cookies.items()))
print(rsp.text)
Process: dota2 [39389]
Path: /Users/USER/Library/Application Support/Steam/*/dota2.app/Contents/MacOS/dota2
Identifier: com.dota2
Version: 2.0.0
Code Type: X86-64 (Native)
Parent Process: ??? [39386]
Responsible: dota2 [39389]
User ID: 501
Date/Time: 2017-04-04 01:14:55.992 +0800
Computer Information:
Manufacturer: Apple
Model: MacBookPro13,3
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
CPU Family: 0x6

删除无 tag 的 docker 镜像:docker rmi $(docker images | grep "^" | awk "{print $3}")

import requests
import base64
import re
import urllib
import rsa
import json, binascii
from bs4 import BeautifulSoup
url_prelogin = 'http://login.sina.com.cn/sso/prelogin.php?entry=weibo&callback=sinaSSOController.preloginCallBack&su=&rsakt=mod&client=ssologin.js(v1.4.5)&_=1364875106625'
url_login = 'http://login.sina.com.cn/sso/login.php?client=ssologin.js(v1.4.5)'
session = requests.Session()