Skip to content

Instantly share code, notes, and snippets.

View meqif's full-sized avatar

Ricardo Martins meqif

View GitHub Profile
html { background: #f0f0ee; }
h1 { font-size: 200%; text-align: center; }
h2 { font-size: 150%; }
h3 { font-size: 110%; }
h1, h2, h3 { margin: 0.65em 0 0.5em 0; font-weight: bold; }
p { margin: 0.75em 0 0.75em 0; }
ul, ol { margin: 1em 0; padding-left: 2.5em; }
li { list-style: disc outside; }
body {
background: #f0f0ee;
#!/usr/bin/env ruby
#
# Generates a SFV file from the filename, since anime fansubs usually add the
# CRC32 checksum to the end of the filename. This allows one to check the
# checksums with a common SFV checker.
#
# (C)opyright 2009 Ricardo Martins <ricardo at scarybox dot net>
# Licensed under the MIT/X11 License. See LICENSE file for license details.
require 'date'
#!/usr/bin/env ruby
#
# Generates a SFV file from the filename, since anime fansubs usually add the
# CRC32 checksum to the end of the filename. This allows one to check the
# checksums with a common SFV checker.
#
# (C)opyright 2009 Ricardo Martins <ricardo at scarybox dot net>
# Licensed under the MIT/X11 License. See LICENSE file for license details.
require 'date'
@meqif
meqif / cuecat.c
Created June 15, 2009 18:32
CueCat decoder
/*
* CueCat Decoder
*
* Thanks to:
* - http://oilcan.org/cuecat/base64.html
* - LibraryThing for shipping my CueCat
*
* Copyright (c) 2009 Ricardo Martins <ricardo@scarybox.net>
*
* Permission is hereby granted, free of charge, to any person obtaining a
@meqif
meqif / base64.c
Created June 16, 2009 20:50
Base64 decoder
/*
* Copyright (c) 2009 Ricardo Martins <ricardo@scarybox.net>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
#!/usr/bin/env python
#
# Copyright (c) 2009 Ricardo Martins <ricardo@scarybox.net>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
@meqif
meqif / newpost.rb
Created August 4, 2009 12:22 — forked from al3x/newpost.rb
#!/usr/bin/env ruby
unless ARGV[0]
puts 'Usage: newpost "the post title"'
exit(-1)
end
blog_prefix = ENV['HOME'] + "/blagh/"
date_prefix = Time.now.strftime("%Y-%m-%d_%H-%M")
postname = ARGV[0].strip.downcase.gsub(/ /, '-')
@meqif
meqif / gist:168786
Created August 16, 2009 22:56
A bookmarklet for people who hate having other people poking their screens.
javascript:document.write("<h1%20style='font-size:10em;text-align:center;'>Don't%20touch%20my%20screen!</h1>")
// Browser Bookmarklet for HTML5 youtube viewer : http://neosmart.net/YouTube5/
javascript:window.location=%22http://neosmart.net/YouTube5?url=%22+encodeURIComponent(document.location)
#!/bin/sh
# enable reading stdin
exec < /dev/tty
cd TrabPratico && rake
if [[ $? -ne 0 ]]; then
echo "Errors found while testing. Continue anyway? [y/N]"