Skip to content

Instantly share code, notes, and snippets.

View ktpss95112's full-sized avatar
🤩

Chi-Feng Tsai ktpss95112

🤩
View GitHub Profile
@ktpss95112
ktpss95112 / conf-chewing.conf
Created April 10, 2023 07:57
fcitx5 settings
# Selection Key
SelectionKey=1234567890
# Page Size
PageSize=10
# Candidate List Layout
CandidateLayout=Vertical
# Use Keypad as Selection key
UseKeypadAsSelection=False
# Add Phrase Forward
AddPhraseForward=True
@ktpss95112
ktpss95112 / solve.py
Created July 23, 2021 11:09
Google CTF 2021 ABC ARM AND AMD solution
#!/usr/bin/env python3
# the x86-64 part is done by @how2hack
from pwn import *
def check(payload):
assert isinstance(payload, bytes) or isinstance(payload, bytearray)
for c in payload:
if not (0x20 <= c <= 0x7f):
return False
@ktpss95112
ktpss95112 / check.py
Created June 7, 2021 15:57
TAMC 2021 Final Project script
p = 13
y = [
(0, 0, 0),
(0, 0, 0),
(0, 0, 0),
(7, 4, 3),
(12, 4, 10),
(7, 5, 1),
]
v = [
@ktpss95112
ktpss95112 / hw3-check.py
Last active October 21, 2020 12:33
Computer Architecture 2020 HW3 check.py
import random
import os
import sys
from subprocess import Popen, PIPE
try:
from tqdm import tqdm
tqdm_imported = True
except ImportError:
tqdm = lambda x: x
tqdm_imported = False
@ktpss95112
ktpss95112 / 6.c
Created May 20, 2020 06:06
NTU CSIE 2020 Fall Machine Learning Techniques Homework 2 problem 6
#include <stdio.h>
#define MAXL (24+1)
#define MAXD (47+1)
#define MAXN (48+1)
#define INF (4611686018427387904ll)
#define MAXAB(a,b) (((a)>(b))?(a):(b))
typedef long long int lli;
# ---tmux plugin
# Automatically start a tmux session upon logging in. Set to false by default.
# ZSH_TMUX_AUTOSTART="true"
# Only attempt to autostart tmux once. If this is disabled when the previous
# option is enabled, then tmux will be autostarted every time you source your
# zsh config files. Set to true by default.
# ZSH_TMUX_AUTOSTART_ONCE="false"
# When running tmux automatically connect to the currently running tmux session