Skip to content

Instantly share code, notes, and snippets.

說到20年的電話號碼。
用 no-ip.org 架設的 gmail , 2007到現在, 十月就滿15年了。
不論颳風下雨, 每個月都上去 no-ip 按一下續命。
Oct 31, 2016 的時候 no-ip 停止提供他們品牌的 domain 來用 ddns, 那時候一度手殘把紀錄刪掉, 導致某些帳號忘記密碼, 又沒辦法重設密碼。
後來發現, 右鍵自己打 request 可以把紀錄加回去, 就這樣又續命到現在。
$ cat /tmp/tmp
1
2
10
9
Bash:
D is array
@ksc91u
ksc91u / rate.json
Last active October 22, 2021 05:08
rate.json
{
"ok": true,
"warning": "",
"tiers": [
{
"from_currency": "USDT",
"to_currency": "USD",
"rates": [
{
"amount": "1000",
@ksc91u
ksc91u / currencies.json
Last active October 22, 2021 04:45
currencies.json
{
"currencies": [
{
"coin_id": "BTC",
"name": "Bitcoin(Net)",
"symbol": "BTC",
"token_decimal": 8,
"contract_address": "",
"withdrawal_eta": [
"30 secs",
$ host www.amd.com 8.8.8.8
Using domain server:
Name: 8.8.8.8
Address: 8.8.8.8#53
Aliases:
www.amd.com is an alias for dsa-www.amd.com.edgekey.net.
dsa-www.amd.com.edgekey.net is an alias for dsa-www.amd.com.edgekey.net.globalredir.akadns.net.
dsa-www.amd.com.edgekey.net.globalredir.akadns.net is an alias for e2897.b.akamaiedge.net.
e2897.b.akamaiedge.net has address 103.239.61.56
syntax = "proto3";
package tutorial;
message Person {
enum Corpus {
UNIVERSAL = 0;
WEB = 1;
IMAGES = 2;
LOCAL = 3;
NEWS = 4;
PRODUCTS = 5;
@ksc91u
ksc91u / ipset-netflix.sh
Created December 21, 2020 15:29
netflix
www.us-east-1.internal.dradis.netflix.com.
www.us-east-2.internal.dradis.netflix.com.
www.us-west-1.internal.dradis.netflix.com.
www.us-west-2.internal.dradis.netflix.com.
www.eu-west-1.internal.dradis.netflix.com.
www.netflix.com
netflix.com
@ksc91u
ksc91u / sum.py
Created November 18, 2020 13:39
python const integer 0-255
#!/usr/bin/env python3
a=5
print(hex(id(a)))
b=2+3
print(hex(id(b)))
c=300
print(hex(id(c)))
curl --verbose "https://preview.wave.com.tw/api/v1/users/103b366c-36d4-49a6-8b9f-41f530a28f36/share_link"
curl --verbose -H "User-Agent: Facebook" "https://preview.wave.com.tw/api/v1/users/103b366c-36d4-49a6-8b9f-41f530a28f36/share_link"
@ksc91u
ksc91u / gpg.md
Created February 19, 2020 09:00
auto start gpg-agent, apply env with zsh

auto-start gpg-agent with zsh

  • .gnupg/gpg-agent.conf
default-cache-ttl 7200
max-cache-ttl 14400
default-cache-ttl-ssh 7200
max-cache-ttl-ssh 14400
enable-ssh-support