Skip to content

Instantly share code, notes, and snippets.


Mihai Tomescu matomesc

View GitHub Profile
milleniumbug / getmus.ps1
Last active Oct 6, 2020
download video from YouTube, extract music and normalize volume
View getmus.ps1
youtube-dl `
$url `
--quiet `
--extract-audio `
--audio-format mp3 `
--audio-quality 3 `
adammw / client.js
Last active Sep 13, 2022
simple-peer / test
View client.js
var Peer = require('simple-peer');
var io = require('');
var debug = require('debug')('client');
var socket = io.connect();
var peers = {};
var useTrickle = true;
socket.on('connect', function() {
debug('Connected to signalling server, Peer ID: %s',;
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
facultymatt /
Last active Jun 1, 2022
Roles and permissions system for Nodejs
sshtmc / ubuntu-configure-sendmail-with-gmail
Created Oct 25, 2012
Ubuntu sendmail using
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
nickbudi /
Last active Aug 11, 2022
Budi's Counter-Strike: Global Offensive config

Budi's CS:GO Config

This is my constantly updated CS:GO autoexec config. Changelogs can be found under revisions here

Put autoexec.cfg in ...\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg or take what you want from it and add to your autoexec config!

After the Wild West Simulator 2015 update, video.txt needs to be put in ...\Steam\userdata\<Steam3 ID>\730\local\cfg

Launch Options

Peratryn / achievement.json
Last active Oct 24, 2018
WoW Community API Json Examples
View achievement.json
"accountWide": true,
"criteria": [
"description": "To Honor One's Elders",
"id": 7553,
"max": 1,
"orderIndex": 0
george /
Created Sep 10, 2012
Unofficial Ember.js Docs

Unofficial Ember.js Docs

This is an unofficial collection of resources for Ember.js. This is what worked for me. Hopefully you'll have a similar experience.

Get Help

Official Docs