Skip to content

Instantly share code, notes, and snippets.

View HenryYang's full-sized avatar
:octocat:
!@#$%^&*()

HuangI Yang HenryYang

:octocat:
!@#$%^&*()
View GitHub Profile

Keybase proof

I hereby claim:

  • I am HenryYang on github.
  • I am henryyang (https://keybase.io/henryyang) on keybase.
  • I have a public key whose fingerprint is EDB9 A3C7 A747 3884 31A3 BE4B 1DE1 3A1E 428C 6544

To claim this, I am signing this object:

<!-- Office 365 client configuration file sample. To be used for Office 365 ProPlus 2016 apps,
Office 365 Business 2016 apps, Project Pro for Office 365 and Visio Pro for Office 365.
For detailed information regarding configuration options visit: http://aka.ms/ODT.
To use the configuration file be sure to remove the comments
For Office 365 client apps (verion 2013) you will need to use the 2013 version of the
Office Deployment Tool which can be downloaded from http://aka.ms/ODT2013
The following sample allows you to download and install Office 365 ProPlus 2016 apps
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>appRules</key>
<dict>
<key>150</key>
<true/>
<key>am.sunrise.ios</key>
<dict>
@HenryYang
HenryYang / reclaimWindows10.ps1
Created February 1, 2017 07:57 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
@HenryYang
HenryYang / DeutscheBahn_GPS.py
Created January 11, 2018 15:47
Catch Germany DB train Real-time GPS via in-train WiFi
#!/usr/bin/python
# coding: utf8
import requests
import sys
import os
import random
import time
import threading
from urllib2 import urlopen
import json
html = urlopen('https://www.amexlovelocal.com.tw/backend/Api/GetStores').read()
amex_json = html.split('{"StoreList":')[1].split(',"dbl":')[0]
amex_store = json.loads(amex_json)
@HenryYang
HenryYang / get_Mojave_iso.sh
Last active December 23, 2018 15:00 — forked from DjinnGA/prepare-iso.sh
Convert MacOS 10.14 Mojave Installer App To ISO File
#!/bin/bash
hdiutil create -o /tmp/Mojave.cdr -size 8g -layout SPUD -fs HFS+J
hdiutil attach /tmp/Mojave.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv /tmp/Mojave.cdr.dmg ~/Desktop/InstallSystem.dmg
hdiutil detach /Volumes/Install\ macOS\ Mojave
hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/Mojave.iso
mv ~/Desktop/Mojave.iso.cdr ~/Desktop/Mojave.iso
@HenryYang
HenryYang / pp2t_vpn.sh
Last active March 3, 2019 04:07
Easy Install PP2P VPN
#!/bin/bash
apt update
apt install -y pptpd
echo "localip 192.168.0.1" >> /etc/pptpd.conf
echo "remoteip 192.168.0.128-255" >> /etc/pptpd.conf
echo "ms-dns 8.8.8.8" >> /etc/ppp/pptpd-options
@HenryYang
HenryYang / fi.md
Last active September 26, 2019 21:42
Google Fi 方案筆記
  • Flexible 就是月費 20 USD 提供國際免費簡訊與美國國內電話免費,然後額外 1GB / 10 USD 的單一價位國際漫遊。

  • Unlimited 就是月費最高 70 USD,提供前 22 GB 全球高速上網,超過限速。且國際免費簡訊與從美國打出去美國本土與 50 個國家免費。然後還送 100GB 的 Google One 雲端空間。

  • Unlimited 跟 Flexible 家庭方案上限人數都是包含主揪只能 6 人 (就是 1 + 5 的概念)

  • Flexible 與 Unlimited 的家庭方案的流量都是每個人分開計算,但是 Flaxible 有一個 Unlimited 所沒有的 Bill Protection data 限制

    • Unlimited 就是每個人都有全球 22 GB 流量,超量就是限速 256kbps,超量後還是可以用 1GB / 10 USD 的方式繼續開啟高速上網
  • Flexible 則是以 1GB / 10 USD 計算,然後超過一定流量後,就是免費到 15GB,再超過就是限速。同樣的限速後可以用 1GB / 10 USD 的方式繼續開啟高速上網

@HenryYang
HenryYang / credit_card_solution_1.md
Last active October 12, 2019 17:31
信用卡分析紀錄 2019/10/12

使用者描述

  • 一年飛 4 到 6 次
  • 希望搭經濟艙/廉航時有機場貴賓室
  • 如果有機場接送當然也好
  • 低年費
  • 喜歡長榮,但沒有特別偏好,還是便宜為主
  • 使用者提到常去好事多,且有入門款聯名卡

以下為候選清單