Skip to content

Instantly share code, notes, and snippets.


Mihai Tomescu matomesc

View GitHub Profile
matomesc / getmus.ps1
Created Sep 20, 2019 — forked from milleniumbug/getmus.ps1
download video from YouTube, extract music and normalize volume
View getmus.ps1
youtube-dl `
$url `
--quiet `
--extract-audio `
--audio-format mp3 `
--audio-quality 3 `
matomesc / Caddyfile
Created Aug 8, 2019 — forked from Ocramius/Caddyfile
Example docker + docker-compose + caddy + traefik setup that routes to multiple apps from one exposed HTTP port
View Caddyfile
:80 {
root /serve
matomesc /
Created Nov 18, 2018 — forked from braian87b/
How to setup a Dumb AP, Wired backbone for OpenWRT / LEDE
matomesc / Script_Template.ps1
Created Jun 21, 2017 — forked from 9to5IT/Script_Template.ps1
PowerShell: Script Template
View Script_Template.ps1
#requires -version 2
<Overview of script>
<Brief description of script>
.PARAMETER <Parameter_Name>
<Brief description of parameter input required. Repeat this attribute if required>
View ubuntu-configure-sendmail-with-gmail
function install_postfix() {
echo | sudo debconf-set-selections <<__EOF
postfix postfix/root_address string
postfix postfix/rfc1035_violation boolean false
postfix postfix/mydomain_warning boolean
postfix postfix/mynetworks string [::ffff:]/104 [::1]/128
View Exploiting Lua 5.1 on 32-bit

Exploiting Lua 5.1 on 32-bit Windows

The following Lua program generates a Lua bytecode program called ignore-unsigned-sga.fnt, which in turn loads a DLL from within an extremely locked down Lua 5.1 sandbox in a program called RelicCOH2.exe. The remainder of this document attempts to explain how this program works by a whirlwind tour of relevent bits of the Lua 5.1 virtual machine.

if string.dump(function()end):sub(1, 12) ~= "\27Lua\81\0\1\4\4\4\8\0" then
  error("This generator requires a 32-bit version of Lua 5.1")

local function outer()
  local magic -- In bytecode, the stack slot corresponding to this local is changed
matomesc / redis.markdown
Created Jan 12, 2012 — forked from bdotdub/redis.markdown
Running redis using upstart on Ubuntu
View redis.markdown

Running redis using upstart on Ubuntu

I've been trying to understand how to setup systems from the ground up on Ubuntu. I just installed redis onto the box and here's how I did it and some things to look out for.

To install: