Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Sea-n's full-sized avatar
🇹🇼
AS212057

Sean Sea-n

🇹🇼
AS212057
View GitHub Profile
@Sea-n
Sea-n / nombre.sh
Created February 20, 2023 15:02
French number practice
#!/usr/bin/env bash
set -Eeuo pipefail
cd "$(dirname "$0")" || exit 1
main() {
while true; do
ans="$((16#$(openssl rand -hex 4) % 101))"
echo -n " > "
say -v Thomas "$ans"
say -v Amélie "$ans"
@Sea-n
Sea-n / DES-Key-Plaintext.txt
Last active March 25, 2021 11:04
DES Encryption - Introduction to Cryptography Homework 2 - 0816146 韋詠祥
12345678 Advanced
Testkey1 Hello CS
00000000 Galois!!
STANDARD Classics
Learning 12345678
Enigma!! security
@Sea-n
Sea-n / conv2mem.py
Created December 14, 2020 11:49
Convert png, gif, ppm to Verilog mem format
from PIL import Image
from sys import argv
if len(argv) == 1:
print("Usage: %s file1.ppm [file2.png file3.gif ...]" % argv[0])
quit()
for arg in argv[1:]:
ext = arg[-4:]
name = arg[:-4]
@Sea-n
Sea-n / nctu-score.user.js
Created July 4, 2020 17:22
NCTU Score Prettifier
// ==UserScript==
// @name NCTU Score Prettifier
// @author Sean
// @version 1
// @grant none
// @include https://regist.nctu.edu.tw/p_student/*
// ==/UserScript==
var grid = document.getElementById("GridView1");
var rows = grid.firstElementChild.children;
@Sea-n
Sea-n / cloud_metadata.txt
Created August 1, 2018 08:37 — forked from BuffaloWill/cloud_metadata.txt
Cloud Metadata Dictionary useful for SSRF Testing
## AWS
# Amazon Web Services (No Header Required)
# from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories
http://169.254.169.254/latest/user-data
http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME]
http://169.254.169.254/latest/meta-data/iam/security-credentials/[ROLE NAME]
http://169.254.169.254/latest/meta-data/ami-id
http://169.254.169.254/latest/meta-data/reservation-id
http://169.254.169.254/latest/meta-data/hostname
http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key
@Sea-n
Sea-n / code.gs
Created July 22, 2018 23:53
Check Duplicates for Google Sheet
var checkSheet = 'Seat';
function onEdit(e) {
if (e.source.getSheetName() == checkSheet)
checkDuplicates();
}
function checkDuplicates() {
var sheet = SpreadsheetApp.getActiveSpreadsheet();
var dataRange = sheet.getDataRange();
@Sea-n
Sea-n / googlelive_extract.py
Created April 21, 2018 09:21 — forked from seadog007/googlelive_extract.py
Google Live Photo extractor - Extracts static photo and video from the live photo taken by Google Camera.
#!/usr/bin/env python3
#
# Google Live Photo extractor
# Extracts static photo and video from the live photo taken by Google Camera
#
# Usage:
# $ googlelive_extract.py <image.jpg>
#
# Creates two new files - image_static.jpg and image_video.mp4
#
@Sea-n
Sea-n / 0. README.md
Last active March 8, 2024 22:23
Translate Guide for Awesome Telegram Bot

Help Translate this application

Make Telegram World Better!

Required

  1. Fork this gist (If you don't have GitHub account, just skip this step)
  2. Translate Play Store listing (Title and Description)
  3. Please come here to translate/improve translations.

Optional

  1. About section in this app (5. about.json)
@Sea-n
Sea-n / README.md
Last active January 21, 2018 15:09
身份證字號驗證器

台灣身份證字號驗證 (Shell Script)

Install

  • 安裝至 local
    1. wget -q -O /usr/local/bin/verify https://git.io/DL
    2. chmod 755 /usr/local/bin/verify
  • 直接使用
    1. wget -q -O verify.sh https://git.io/DL
    2. chmod +x verify.sh