Skip to content

Instantly share code, notes, and snippets.

Avatar
🥺
ぴえん

Kagurazaka Kotori kagurazakakotori

🥺
ぴえん
View GitHub Profile
@kagurazakakotori
kagurazakakotori / client.s
Last active Nov 5, 2020
TCP echo in x86_64 assembly
View client.s
# a simple implementation of tcp echo client
# using x86_64 assembly on linux
# caller-saved register are used for local variables
# callee-saved register are used for global variables
#
# compile it with `gcc -nostdlib -nolibc -nodefaultlibs -o client client.s`
.global _start
.equ PORT, 0x0f27 # port number in network byte order(big endian), here is 9999
@kagurazakakotori
kagurazakakotori / postman-deb.sh
Last active May 23, 2019 — forked from SanderTheDragon/postman-deb.sh
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
View postman-deb.sh
#!/bin/sh
script=`basename "$0"`
if [ $# -gt 0 ] && [ "$1" = "-e" ]; then
e="-e"
fi
echo "Removing old Postman tarballs"
rm -f $(ls Postman*.tar.gz)