Skip to content

Instantly share code, notes, and snippets.

View mcd1992's full-sized avatar
🦀
How2Rust?

Aaron mcd1992

🦀
How2Rust?
View GitHub Profile
@mcd1992
mcd1992 / cookie_converter.py
Created January 15, 2022 15:18 — forked from eestrada/cookie_converter.py
simple script to convert google chrome sqlite cookie entries to old netscape cookies.txt format. Original code from here: https://productforums.google.com/d/msg/chrome/LWvfAFolOW4/hrC8ssNr27YJ
@mcd1992
mcd1992 / Dockerfile
Last active October 24, 2019 01:40
Docker CTF
# Reversing container for CTFs by mcd1992
# docker run -ti --rm -v `pwd`:/workdir/ --security-opt seccomp:unconfined -P mcd1992/archctf:latest
FROM archlinux/base:latest
MAINTAINER mcd1992
# Make port 31337 available for listening (must use -p for publishing)
EXPOSE 31337
# Enable pacman colors and multilib repo; add vim to editor /etc/profile; set LOCALE to en_US.UTF-8

Keybase proof

I hereby claim:

  • I am mcd1992 on github.
  • I am mcd1992 (https://keybase.io/mcd1992) on keybase.
  • I have a public key whose fingerprint is CC94 BC99 E85F A7EB 92AF 1ECD FAE9 6912 AB26 5484

To claim this, I am signing this object:

@mcd1992
mcd1992 / start.sh
Last active October 8, 2015 16:43
Command line startup script for garrysmod on linux.
#!/bin/bash
# figure out the absolute path to the script being run a bit
# non-obvious, the ${0%/*} pulls the path out of $0, cd's into the
# specified directory, then uses $PWD to figure out where that
# directory lives - and all this in a subshell, so we don't affect
# $PWD
GAMEROOT=$(cd "${0%/*}" && echo $PWD)
function unrequire( modName )
if( not modName ) then return end
local _R = debug.getregistry()
local moduleMetatable = _R["_LOADLIB"]
package.loaded[ modName ] = nil
_G[ modName ] = nil
for k, ud in pairs( _R ) do
if( (type(k) == "string") and string.find( k, "^LOADLIB: .+gm.._" .. modName .. "_.+%.dll$" ) and (type(ud) == "_LOADLIB") and (getmetatable(ud) == moduleMetatable) ) then
print( "Unloading: " .. k )