Skip to content

Instantly share code, notes, and snippets.

View msoap's full-sized avatar
🇺🇦

Serhii Mudryk msoap

🇺🇦
  • Kyiv, Ukraine
  • 20:59 (UTC +03:00)
View GitHub Profile
@msoap
msoap / flac2mp3.rb
Created March 25, 2012 12:09 — forked from mxcl/flac2mp3.md
Simplest functional FLAC to MP3 converter script you can make
#!/usr/bin/env ruby
# http://gist.github.com/gists/124242
# Deps: brew install flac lame
filename = ARGV[0]
abort "Usage: flac2mp3 FLACFILE" if filename.nil?
map = {"TITLE" => "--tt", "ARTIST" => "--ta", "ALBUM" => "--tl", "TRACKNUMBER" => "--tn", "GENRE" => "--tg", "DATE" => "--ty"}
args = ""
@msoap
msoap / http-server-test.pl
Created March 17, 2012 16:10
test http server via Net::Server::HTTP for static files
#!/usr/bin/perl
=head1 NAME
http-server-test.pl
=head1 DESCRIPTION
test http server via Net::Server::HTTP for static files
@msoap
msoap / http-honeypot.go
Last active August 29, 2015 14:11
Honeypot for http tracking
/*
Honeypot for http tracking.
sudo sh -c 'echo "127.0.0.1 google-analytics.com" >> /etc/hosts'
sudo sh -c 'echo "127.0.0.1 googleads.g.doubleclick.net" >> /etc/hosts'
sudo sh -c 'echo "127.0.0.1 mc.yandex.ru" >> /etc/hosts'
go build http-honeypot.go
sudo ./http-honeypot