This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
# Discord Webhookの設定 | |
URL="https://discord.com/api/webhooks/..." # ここにDiscord Webhook URLを記述 | |
EMBED_TITLE="Notificator" # embedのタイトル | |
AVATAR_URL="" # 通知のアイコン | |
# 実行ファイル名の取得 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char*A="8EQKQK<" ")75Q50KQGUGUGU" "?$GU9+D08WEWEW" "EWBYDWDYCZ+I1?" | |
"GJCJA(GJCJGJCJ9!2(" "GRIICII<7ICI7;IIC5" "7IIIQICI5;I;?I77SI" "(#R787+JPJCI=3IIR4" | |
"2/>JLO/5O/@LCII<;IP$" "/LLNNMDIII))NMMNKNF)" "&4;IIIK<689A4N4!8:OO" "GOHIII)AHOWJDNK&A;6I" | |
"&<IIFN8/KII75IBMNJGJDM" "NJG;#!$9#>!+$Z5IDWDY" "CZ(XD4=:=WDYDWBYEU/(=;" "EYEUCYGQGYGA1;AQE<!+",* | |
T="char*" "A=%c%s%" "c,*T=%c" "%s%c;#d" "efine/*" "*/Q(X)c" "har*M=#" "X,m[202" | |
"3],HAP" "PY,NEW" ",YEAR," "c;Xint" "/*QQ*/" "h,i,j," "k,l=1," "sprint" | |
"f(char" "*,cons" "tchar*" ",...)," "f,putch" | |
"ar(int)" ",lab,j" "ob,R5=" "2023,p=" "34,st;Q(%s)"; | |
#define/**/ Q(X)char *M=#X,m[ 2023],HAPPY ,NEW,YEAR,c;X | |
int/*QQ*/h,i ,j,k,l=1 ,sprintf (char*,const char*,...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from google.oauth2 import service_account | |
from googleapiclient import discovery | |
def main(): | |
scopes = ["https://www.googleapis.com/auth/calendar"] | |
credentials = service_account.Credentials.from_service_account_file( | |
"xxxxxxxxxx.json", scopes=scopes | |
) # jsonはgoogle cloud platformの鍵のダウンロードで落としたやつ | |
service = discovery.build( | |
"calendar", "v3", credentials=credentials, cache_discovery=False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import json | |
import os | |
import re | |
import time | |
import requests | |
import yaml | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nfc | |
import struct | |
# 京都大学学生証 学籍番号と名前(半角カナ)を返す | |
def read_kucard(tag): | |
servc = 0x1A8B | |
service_code = [nfc.tag.tt3.ServiceCode(servc >> 6, servc & 0x3F)] | |
tag.dump() # これがないと何故かうまくいかなかった |