Skip to content

Instantly share code, notes, and snippets.

View wasabina67's full-sized avatar
🏠
Working from home

wasabina67

🏠
Working from home
View GitHub Profile
@wasabina67
wasabina67 / check_month_change.sh
Created October 14, 2024 10:57
Check month change
#!/bin/bash
if [ "$(date +\%m -d tomorrow)" != "$(date +\%m)" ]; then
exit 0
else
exit 1
fi
@wasabina67
wasabina67 / openpyxl-example.py
Created October 6, 2024 03:03
OpenPyXL example
from openpyxl import load_workbook
filename = "target.xlsx"
workbook = load_workbook(filename)
worksheet = workbook["Sheet1"]
worksheet["A1"] = "a"
worksheet["B1"] = "b"
worksheet["C1"] = "c"
@wasabina67
wasabina67 / markdown_table_template.md
Created September 5, 2024 04:11
Markdown table template
| TH | TH |
| ---- | ---- |
| TD | TD |
| TD | TD |
TH TH
TD TD
@wasabina67
wasabina67 / task_status_emoji.md
Created September 4, 2024 09:55
Task status emoji
  • 未着手
  • 進行中
📝
@wasabina67
wasabina67 / mermaid-info.md
Created August 26, 2024 14:32
Checking your version of Mermaid
  info
@wasabina67
wasabina67 / sort-sample.md
Last active August 11, 2024 05:33
Sort samples
$ cat z-sample.csv | sort -t ',' -k1,1
apple,110
banana,90
cherry,100
kiwi,60
lemon,50
orange,120
@wasabina67
wasabina67 / prefecture-number.csv
Last active August 10, 2024 06:26
都道府県番号
都道府県名 都道府県番号
北海道 01
青森県 02
岩手県 03
宮城県 04
秋田県 05
山形県 06
福島県 07
茨城県 08
栃木県 09
@wasabina67
wasabina67 / gmail2discord.js
Last active July 29, 2024 06:55
Gmail to Discord
function myFunction() {
const targetLabel = 'targetLabel';
const query = 'label:' + targetLabel;
const threads = GmailApp.search(query);
if (threads.length === 0) {
Logger.log('No threads found with the label: ' + targetLabel);
return;
}
@wasabina67
wasabina67 / checks_http_code.sh
Last active July 25, 2024 00:23
Checks a given URL every 20 minutes
#!/bin/bash
URL="https://example.com"
while :; do date; curl ${URL} -o /dev/null -w '%{http_code}\n' -s; sleep 1200; done