Skip to content

Instantly share code, notes, and snippets.

View grocid's full-sized avatar

Carl Löndahl grocid

View GitHub Profile
@hellman
hellman / 1_vuln.c
Last active November 21, 2017 13:11
HXP CTF 2017 - 4ES (Crypto 500)
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <sys/fcntl.h>
#include <mbedtls/aes.h>
typedef unsigned char byte;
typedef ssize_t (*ft)(int, byte *, size_t);
static int o(char const *s)
@mivade
mivade / cli.py
Last active January 18, 2024 07:51
Using a decorator to simplify subcommand creation with argparse
"""This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
anonymous
anonymous / IRC client in pure bash 4
Created March 28, 2016 16:57
IRC client written in pure bash using only bash builtin commands and no other binaries.
#!/bin/bash
#no PATH, no way to accidently run any programs
PATH=''
#useful variables
term_height=0
term_width=0
term_scroll_height=0
status_line_row=0
0x59b 16 15 pG\a pG\b pG\t pG
0x7ef 12 11 %1I2O\f9O`xl
0x16fd 16 15 g&H g&H`f&H f&H
0x193f 8 7 P\tJ\nI\b2
0x3c65 10 9 XD\eyv]7`
0x14811 9 8 I\rH\b`pGt
0x14a2b 5 4 _`h@
0x183fd 5 4 _`h@
0x1a9c4 11 10 pOoH``xJyl
0x1b7b6 11 10 hr!F z(r`h
@laptrinhcomvn
laptrinhcomvn / Sublime Text 3 cheating.md
Last active November 17, 2023 06:53
Sublime Text 3 patching

Ref: https://gist.github.com/vertexclique/9839383

Important Note

Please use built-in Terminal.app (of Mac OS X) to type and rune the command, do not use another tool (like iTerm2).

Common step after enter run the patch command:

  • After run the commands, start new Sublime Text app, go to Main Menu > Help > Enter License. On the popup type in any text (example "a") and click Use Licence .