Skip to content

Instantly share code, notes, and snippets.

View mis101247's full-sized avatar
🌱
Growing

Keyo mis101247

🌱
Growing
View GitHub Profile
@mis101247
mis101247 / bookmarklet-commands.md
Created March 3, 2023 19:41
The bookmarklet commands that I frequently use.
javascript: (function () {
  var inputBox = document.querySelector("textarea");
  inputBox.value = "Please translate the above response into English.";
  var event = new Event("keydown");
  event.key = "Enter";
 event.keyCode = 13;
@mis101247
mis101247 / docker-compose.yml
Created October 6, 2022 20:39
Share this container network with the other containers with surfshark VPN
version: "3"
services:
gluetun:
image: qmcgaw/gluetun
# share this container network with the other containers
network_mode: service:gluetun # other container ->>>>> network_mode: "container:gluetun"
# container_name: gluetun
# line above must be uncommented to allow external containers to connect. See https://github.com/qdm12/gluetun/wiki/Connect-a-container-to-gluetun#external-container-to-gluetun
cap_add:
- NET_ADMIN
@mis101247
mis101247 / MVV.md
Last active April 21, 2022 07:35
#Medium
日期 項目 所需資料                                        地點 備註
06/30(三) 預約繳交文件 1. MVV文件
2. 兩吋大頭照*2
3. 護照正、影本
4. 存款證明
荷蘭在台辦事處
07/01(四) 收到Asiaconsular Email 說明 期限內需繳交申請費用、資訊填寫回覆
@mis101247
mis101247 / Drive.md
Last active March 6, 2022 14:49
#Medium
服務 IPhone自動備份照片 方案*請依官方公告為主

Flickr
純網路相簿 無法
原先可以
但預設照片上傳是公開的
被客訴後目前找不到該功能
無限空間
每月 $7.99(約NT$224)
每三個月 $21.99(約NT$616)
每年 $71.88(約NT$2,012)
------
個人認為最佳方案:
每年平均每月$5.99(約NT168)
官方連結

|

@mis101247
mis101247 / latest-blog-post.yml
Created August 1, 2020 14:06
GitHub profile self-updating yml #Medium
name: Latest blog post
on:
schedule:
# Runs at 9pm UTC
- cron: '0 21 * * *'
workflow_dispatch:
jobs:
update-readme-with-blog:
name: Update this repo's README with latest blog posts

Netflix點書籤快轉

新增書籤->網址輸入 到nextflix 點擊該書籤即可快轉 後面數字是快轉幾倍

快轉1.5倍

javascript:(function(){var v = document.querySelector('video'); v.playbackRate = 1.5})()
@mis101247
mis101247 / selectCount.sql
Last active June 10, 2020 01:39
SQL 實用筆記
# 當你要算出一張表的總數和表內的特定總數
# 範例: 找出姓柯的總人數和其中使用iphone的人數
# 醬子就只會刷一次表
SELECT COUNT(*) as total, COUNT(IF (phone = 'iphone' , 1 ,null)) as iphoneTotal FROM
(SELECT * FROM `users` where `last_name` = '柯') AS usersTable;
@mis101247
mis101247 / parse_csv_content.md
Last active April 24, 2020 07:11
[Regex] Note

E.g.

lastName, firstName, email, phone, uid, subject, verificationCode
Wang,haha,,+886912345678,10001,PM,a,7624
Ke,yuyou,814007@gmail.com,,10002,RD,b,8140

Regex

@mis101247
mis101247 / copyToClipboard.js
Last active March 18, 2020 03:16
ChromeBookmarkJS
javascript:(function(){const el = document.createElement('textarea');el.value = 'Copy Me!!';document.body.appendChild(el);el.select();document.execCommand('copy');document.body.removeChild(el);})();
// 複製內容至剪貼簿
@mis101247
mis101247 / deIdentification.js
Last active November 14, 2019 14:30
#Medium
// 去識別化
function deIdentification(str) {
const showLen = Math.round(str.length / 2); // 顯示幾個
const markLen = str.length - showLen; // 要隱藏幾個
const showStart = Math.round((str.length - showLen) / 2) ; // 從哪開始隱
return str.replace(str.substr(showStart, markLen), '*'.repeat(markLen));
}