Skip to content

Instantly share code, notes, and snippets.

View huj13k4n9's full-sized avatar

Jiekang Hu huj13k4n9

  • University of Chinese Academy of Sciences
  • Beijing, China
View GitHub Profile
@huj13k4n9
huj13k4n9 / terminals.py
Created May 10, 2023 07:21
context.terminal for different terminals in pwntools.
# Zellij
context.terminal = ["zellij", "action", "new-pane", "-d", "right", "-c", "--", "bash", "-c"]
# Alacritty
context.terminal = ["alacritty", "-e", "bash", "-c"]
# GNOME Terminal
context.terminal = ["gnome-terminal", "--", "bash", "-c"]
# GNOME Console
@huj13k4n9
huj13k4n9 / bsplockscreen
Last active January 16, 2023 12:00
bspwm-config
#!/bin/sh
/usr/bin/loginctl lock-session
# sh -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ohmyzsh/ohmyzsh@master/tools/install.sh)"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install Powerlevel10k Theme
git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
sed -i "s/ZSH_THEME=\"robbyrussell\"/ZSH_THEME=\"powerlevel10k\/powerlevel10k\"/g" ~/.zshrc
# Install zsh plugins
# git clone https://github.91chi.fun/https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# git clone https://github.91chi.fun/https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting