Skip to content

Instantly share code, notes, and snippets.

View 1dot75cm's full-sized avatar

1dot75cm

View GitHub Profile
@1dot75cm
1dot75cm / scrapper.py
Created January 28, 2016 17:35 — forked from madjar/scrapper.py
A example of scrapper using asyncio and aiohttp
import asyncio
import aiohttp
import bs4
import tqdm
@asyncio.coroutine
def get(*args, **kwargs):
response = yield from aiohttp.request('GET', *args, **kwargs)
return (yield from response.read_and_close(decode=True))
@1dot75cm
1dot75cm / nitrokey-app.spec
Created October 14, 2016 11:41
nitrokey-app.spec
%global _icondir %{_datadir}/icons/hicolor
Name: nitrokey-app
Version: 0.5.1
Release: 1%{?dist}
Summary: Nitrokey Configuration tool
Group: Applications/System
License: GPLv3
URL: https://github.com/Nitrokey/nitrokey-app
Source0: %{url}/archive/v%{version}.tar.gz
@1dot75cm
1dot75cm / onedrive.patch
Created October 21, 2016 13:24
review.patch
diff --git a/rpms/onedrive/0001-ldc2-makefile.patch b/rpms/onedrive/0001-ldc2-makefile.patch
index 417b216..e8cfcc0 100644
--- a/rpms/onedrive/0001-ldc2-makefile.patch
+++ b/rpms/onedrive/0001-ldc2-makefile.patch
@@ -1,18 +1,37 @@
-diff --git a/Makefile b/Makefile
-index 006d1a0..425b313 100644
--- a/Makefile
+++ b/Makefile
-@@ -1,4 +1,4 @@
@1dot75cm
1dot75cm / requirements.txt
Last active October 28, 2016 15:33 — forked from mrluanma/requirements.txt
Python 登录新浪微博 (requests 真的比 urllib2 强了 2^^32 倍,兼容 py2/3)
future==0.16.0
requests==2.11.1
rsa==3.4.2
@1dot75cm
1dot75cm / australia_bank_for_whv.md
Last active November 20, 2017 12:15
Australia Bank for WHV

各银行外汇牌价对比, 银联卡汇率, 境外电汇汇款手续费, 国外刷卡汇率表

基本概念

外汇分为:现钞和现汇。
现钞:外币现金;只在外币所在国使用,银行买入外币需要运费/保管费,所以银行现钞买入价要低些。
现汇:银行存款;银行只需要完成转账工作,不需要运费,所以银行现汇买入价会高些。
现钞买入价 + 运费 = 现汇买入价
外汇中间价=(卖出价+买入价)/2

购汇:将人民币兑换成外汇。

Install OS X 10.10 Yosemite in VirtualBox

(本教程基于此 this pastebin 文档编写, 并且适合于 Yosemite 正式版)

(免责声明: 本教程旨在说明如何在 VirtualBox 中运行 Mac OS X 操作系统, 并且本系统仅供测试使用.)

Howto