Skip to content

Instantly share code, notes, and snippets.

View GZTimeWalker's full-sized avatar
🧨
Working...

GZTime GZTimeWalker

🧨
Working...
  • Sun Yat-Sen University
  • ERROR: Permission denied.
View GitHub Profile
import os
import hashlib
import nacl.secret
import nacl.utils
def get_flag_env():
flag = os.getenv('GZCTF_FLAG')
if flag is None:
flag = 'GZT{this_is_a_test_flag}'
return flag
import qrcode
from qrcode.util import *
def hack_put(self, num, length):
if num == 0:
num = 233 # make a fake length
for i in range(length):
self.put_bit(((num >> (length - i - 1)) & 1) == 1)
qrcode.util.BitBuffer.put = hack_put
@GZTimeWalker
GZTimeWalker / .zshrc
Last active April 24, 2023 22:46
.zshrc for myself
# ~/.zshrc file for zsh interactive shells.
# see /usr/share/doc/zsh/examples/zshrc for examples
setopt autocd # change directory just by typing its name
#setopt correct # auto correct mistakes
setopt interactivecomments # allow comments in interactive mode
setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’
setopt nonomatch # hide error message if there is no match for the pattern
setopt notify # report the status of background jobs immediately
setopt numericglobsort # sort filenames numerically when it makes sense
@GZTimeWalker
GZTimeWalker / .kali.omp.json
Last active November 26, 2021 11:36
Kali Theme for oh-my-posh, with incomplete root mode.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"type": "session",
"style": "plain",
"foreground": "lightBlue",
@GZTimeWalker
GZTimeWalker / launch.json
Created April 9, 2021 17:15
launch.json for manim
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Preview manim", // manim 预览
"type": "python",
"request": "launch",