Skip to content

Instantly share code, notes, and snippets.

@JaosnHsieh
JaosnHsieh / delete-google-photos.js
Created December 30, 2023 00:56
google photos delete all photos day by day
/* 2023.12.29 google photos delete all photos day by day
1. visit google photos
2. replace the buttons css selectors first by manualy right click and see current selectors
3. run the script on console
*/
@JaosnHsieh
JaosnHsieh / print.md
Last active May 16, 2023 04:58
save all *.ts and *.tsx code to one file for claude-instant-100k bot to analyze the code

claude-instant-100k

poe.com added a bot that can consume 75,000 words, that can read the code or papers and give suggestions based on it. It's amazing.

print.sh for typescript projects

Code was generated by GPT-4

Save it to print.sh and make it executable chmod +x ./print.sh

@JaosnHsieh
JaosnHsieh / ipatool.md
Created April 21, 2023 22:06
ipatool that able to download ipa file on macos to see more details of a public iOS app
@JaosnHsieh
JaosnHsieh / intercept-proxy-mitmweb.md
Last active September 13, 2023 20:50
2023-dev-notes

2023.02.03

Intercept proxy mitmweb

mitmweb: proxy server that able to intercept(pause/modify) http requests/responses for web/android/ios development

  1. Install mitmweb and start it by mitmweb -p 3033
  2. Setup proxy on android emulator setting -> proxy and set hostname to your local ip by $ ipconfig and 3033 port
  3. Open browser navigate to mitmweb localhost:8081 and on pause filter type ~u apikeyword
@JaosnHsieh
JaosnHsieh / index.html
Last active September 9, 2022 04:21
Use picture in picture browser API to monitor my back when I use a laptop with a cam
<!-- Runnable examples -->
<!-- https://jsfiddle.net/vatnc7b3/show -->
<!-- https://j2jr9u.csb.app/ -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
//http://ianrogers.uk/google-page-rank/
//PR(A) = (1-d) + d (PR(T1)/C(T1) + … +z PR(Tn)/C(Tn))*
const alpha = 0.85;
//forward links
// a -> b
// b -> a, c
// c -> b
@JaosnHsieh
JaosnHsieh / 普通人的海外求職指南.MD
Created May 27, 2022 23:33
普通人的海外求職指南 幾個想記下來的點

2022.05.28 普通人的海外求職指南 閱讀 讀後筆記 讀墨連結

  1. 英文口說 ( 用獵頭的第一通電話 重新檢驗自己的英文溝通能力 )
  2. 面試名單可分 夢幻 理想 備選 , 先面 備選 暖身練習增加自信
  3. 如果目標是取得身份 關鍵字可搜 VISA SPONSOR
  4. 優化 Linkedin page. Linkined 提供的統計數字做優化 ( 就是一直換關鍵字優化 依照"被查閱數" )
  5. 面試嘴故事可以用 STAR 原則 故事比較耐聽 ( 情境(Situation)、任務(Task)、行動(Action)、結果(Result))
    1. 普通版 「挑戰喔,因為我是工程師,所以 PM 提出需求我們就要去做。有時候時程很趕,但是舊的程式碼又很難改,記得有一次我們有一個很大的客戶說要一個功能,我就花了很多時間去讀我們的程式碼,然後和同事一起加班,終於準時搞定了,也順手把程式碼更新了一下。」
    2. STAR版本 「(S) 我們是新創公司,大客戶對我們來說很重要,但他們也常常提出時限很急迫的新需求。(S END) (T)我是負責使用者介面的工程師,我發現其實這個客戶提出的需求其實不難改,不過因為我們的程式碼很老舊,所以總是需要很多人同時加班才能準時完成。(T END) (A)於是我向 PM 提案:可不可以給我們一個月的時間,先不要承諾客戶的需求,讓團隊能優先更新程式碼,如此一來,改動起來會比較容易。PM 說一個月有困難,但兩週他應該可以幫我們和客戶爭取。我同意了,然後利用兩週的時間領導整個使用者介面的程式碼更新,(A END) (R)接下來的六個月,不只每次的需求都能準時完成,工程師團隊也沒有再度因為這個專案加班過。(R END)
  6. 伴侶溝通相處 3 模式 主從 輪流 雙主
2022 Some notes, code snippets, configurations, findings in open souce code.
@JaosnHsieh
JaosnHsieh / nginx.conf
Created April 6, 2022 10:37 — forked from dctrwatson/nginx.conf
Caching NPM proxy using Nginx
user www-data;
worker_processes 4;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}