Skip to content

Instantly share code, notes, and snippets.

View bandito's full-sized avatar

George Chatzigeorgiou bandito

View GitHub Profile
bandito@fisfis:~$ curl -IL https://ae.bkam.com/sitemaps/sitemap_index.xml.gz
HTTP/1.1 302 Moved Temporarily
Server: cloudflare-nginx
Date: Thu, 05 Feb 2015 22:32:31 GMT
Content-Type: text/html
Connection: keep-alive
Set-Cookie: __cfduid=d853623786a0f18684f5bd748f61729e41423175551; expires=Fri, 05-Feb-16 22:32:31 GMT; path=/; domain=.bkam.com; HttpOnly
Location: https://ae.bkam.com/en/sitemaps/sitemap_index.xml.gz
Strict-Transport-Security: max-age=31536000
CF-RAY: 1b42907aff890c71-AMS
https://ae.bkam.com/en/products/apple-iphone-6-silver-128gb--1767615?search_position=1&utm_expid=74851416-11.cALda9lUTeGtqefEpRG_fg.0&utm_referrer=https%3A%2F%2Fae.bkam.com%2Fen%2Fproducts%2Fsearch%3Fquery%3Diphone%2B6%2Bsilver%26category_id%3D0
@bandito
bandito / playoday.txt
Created October 14, 2012 20:09
Playoday stats
bandito@zefreak:playoday [master]$ bundle exec rake stats
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 250 | 190 | 4 | 19 | 4 | 8 |
| Helpers | 12 | 12 | 0 | 1 | 0 | 10 |
| Models | 468 | 228 | 14 | 29 | 2 | 5 |
| Libraries | 380 | 165 | 4 | 15 | 3 | 9 |
| Integration tests | 0 | 0 | 0 | 0 | 0 | 0 |
| Functional tests | 7 | 3 | 1 | 0 | 0 | 0 |
@bandito
bandito / icmdct.c
Created May 1, 2012 17:44
Mp3 decoder
#include "typedefs.h"
#include "imdct.h"
#define SPECTRUM_POS *(i16 *)0x1080 //
static i16 tmp[18];
static i16 u[2][2][17][16]; /* no v[][], it's redundant */
static int u_start[2]={0,0}; /* first element of u[][] */
static int u_div[2]={0,0}; /* which part of u[][] is currently used */
module Decorators
module Test
def foo
"foo"
end
end
end
user wowbagger;
worker_processes 20;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 2048;
use epoll;
}
sudo aptitude install xvfb xfonts-base xfonts-75dpi xfonts-100dpi imagemagick ttf-mscorefonts-installer python-qt4 python-qt4 python-pip build-essential python-setuptools flashplugin-installer ruby ruby1.8-dev irb rdoc redis-server git-core
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
tar -zxvf rubygems-1.3.7.tgz
cd rubygems-1.3.7
sudo ruby setup.rb
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
sudo gem install sinatra json redis resque
module RQueue
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
#set the queue name some as the model name
require 'active_support/cache/blackhole_store'
config.cache_store = :blackhole_store