Skip to content

Instantly share code, notes, and snippets.

View zhufengning's full-sized avatar
🌴
On Tree

Fengning Zhu zhufengning

🌴
On Tree
View GitHub Profile
@huj13k4n9
huj13k4n9 / terminals.py
Last active April 10, 2025 14:04
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
@MysteryDash
MysteryDash / unraid-tmux.plg
Last active January 21, 2025 04:09
A simple plugin to add tmux to unraid
<?xml version='1.0' standalone='yes'?>
<PLUGIN>
<!--
A simple plugin to add tmux to unraid
-->
<FILE Name="/boot/packages/libevent-2.1.12-x86_64-3.txz" Run="upgradepkg --install-new">
<URL>http://slackware.cs.utah.edu/pub/slackware/slackware64-15.0/slackware64/l/libevent-2.1.12-x86_64-3.txz</URL>
</FILE>

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@Arham4
Arham4 / data.yaml
Last active September 20, 2023 01:26
Easy Jackson YAML Parsing with Kotlin
username: "Test"
password: "123456"
@wagenet
wagenet / glibc.md
Last active March 11, 2025 05:42
glibc Versions

glibc Versions

List of oldest supported version of top 10 Linux Distros and their glibc version according to distrowatch.com.

Summary

Out of all versions with published EOLs, 2.12 is the oldest glibc still active, found in CentOS 6.8.

If CentOS 6 and 7 are eliminated, the oldest glibc is 2.23 in Ubuntu and Slackware.

anonymous
anonymous / API.md
Created August 27, 2016 16:56
@shello
shello / randomEmoji.py
Last active March 12, 2025 19:23
Random Emoji! (for Python 3)
#!/usr/bin/env python3
from itertools import accumulate
from bisect import bisect
from random import randrange
from unicodedata import name as unicode_name
# Set the unicode version.
# Your system may not support Unicode 7.0 charecters just yet! So hipster.
UNICODE_VERSION = 6