Skip to content

Instantly share code, notes, and snippets.

View joeangel's full-sized avatar
📚
Working on Crypto

JoeAngel.tw joeangel

📚
Working on Crypto
View GitHub Profile
@joeangel
joeangel / auto-crypto-briefing-dst-tpe.md
Last active September 3, 2025 16:16
auto-crypto-briefing-dst-tpe.md

Automated Crypto/Finance Briefing (TPE Timezone × US DST)

  • 加密/金融快訊自動摘要機制(台北時區 × 美東夏令/冬令時間)
  • Automated Crypto/Finance Briefing: Synced with TPE Timezone & US DST

prompt

Determine whether the US is observing Daylight Saving Time (DST) today 
(EDT from the 2nd Sunday of March to the 1st Sunday of November; otherwise EST). 

Trello Helper

Get started

  1. Open Trello Board in Chrome Broewer
  2. Enable Chrome Developer Tools
  1. Copy and past in Chrome url on your Trello webpage.
  2. remove trelling backslash sign \
  3. Switch Tab to Console in Chrome Developer Tools, and you will see the result

Code.gas

function doGet(e) {
  var form = FormApp.openById(e.parameter.form);
  var ss = SpreadsheetApp.create(e.parameter.name);
  var folder = DriveApp.getFolderById(e.parameter.folder);
  var file = DriveApp.getFileById(ss.getId());
 folder.addFile(file);
@joeangel
joeangel / bulk-delete-repos-org.md
Last active October 9, 2019 08:09
Use this trick to bulk delete repos in an organization

Bulk delete repos in an organization

Remove all repons in an organization

USERNAME="joeangel"
PASSWORD="YOUR PASSWORD"
ORG="THE ORG name"
curl -u $USERNAME:$PASSWORD "https://api.github.com/orgs/$ORG/repos?page=1&per_page=100" | jq '.[].full_name' | tr -d '\r' | xargs -I '{}' curl -u $USERNAME:$PASSWORD -XDELETE https://api.github.com/repos/'{}'
#!/bin/bash
dbs="admin dbname1 dbname2"
user=admin
password=your-password
host=localhost:27017
i=0
for db in $dbs; do
echo [MongoDB] backup db: $db
mongodump -u ${user} -p ${password} --host ${host} --db ${db}

在 AWS, GZCP 使用 git 的注意地方

AWS

  • 因為登入後的帳號都是 ubuntu,所以要 sudo su 切換成 root 操作,並且 ssh public/private key 要用 root 產生。
  • sudo chown -R root: .git/ .gitingore
  • 不能用 sudo git push 下指令會吃到 ubuntu 使用者的設定

GCP

@joeangel
joeangel / remove-cr-wordpress.md
Last active August 6, 2017 05:13
Remove CR in WordPress all php files

Remove CR in WordPress all php files

first

sudo su

then

@joeangel
joeangel / Facebook-sdk-issue.md
Created October 12, 2016 09:48
Sometimes got issue when loading Facebook sdk

I'm using bellow code, works well!

<script src="//connect.facebook.net/zh_TW/sdk.js#xfbml=1&version=v2.8"></script>

using above code instead of Facebook share-button step 2:

@joeangel
joeangel / chat_max_con_current.txt
Created December 30, 2015 07:37
[市調] 請問,大家知道哪些家的聊天軟體/聊天室,最多可以多少人同時在線聊天?
[市調] 請問,大家知道哪些家的聊天軟體/聊天室,最多可以多少人同時在線聊天?
Line 200
WeChat 100 / 500(認證)
Band 1000
WhatsApp 30
Skype 100
Telegram 1000
RC 50
Slack 1000
LiveHouse.in 1000/5000 (超過 1000 要談)
@joeangel
joeangel / og.js
Last active October 23, 2015 08:14
[Node.js][Promise] fetch og from url
// Install og
// > npm install open-graph --save
//
// Run for test in node
// > var og = require('./og');
// > og('https://www.fanily.tw/post/11e568b9cef90de19e1542010af01a54').then(function(data){console.log(data)}).catch(function(e) {console.log(e)});
module.exports = require('bluebird').promisify(require('open-graph'));