This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hello.html.erb: | |
<h1>Say#hello</h1> | |
<p>Find me in app/views/say/hello.html.erb</p> | |
say_controller.rb | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://gist.github.com/1205828, in turn based on https://gist.github.com/1182136 | |
class BootstrapLinkRenderer < ::WillPaginate::ActionView::LinkRenderer | |
protected | |
def html_container(html) | |
tag :div, tag(:ul, html), container_attributes | |
end | |
def page_number(page) | |
tag :li, link(page, page, :rel => rel_value(page)), :class => ('active' if page == current_page) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/perl | |
use strict; | |
use Irssi; | |
use LWP::UserAgent; | |
use vars qw($VERSION %IRSSI); | |
$VERSION= '1.0'; | |
%IRSSI = ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
from websocket import create_connection | |
import websocket | |
MYSQL_SPECIAL_CHARS= [ | |
("\\","\\\\"), | |
("\0","\\0"), | |
("\n","\\n"), | |
("\r","\\r"), | |
("'","\\'"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ec.h> /* required for global variables */ | |
#include <ec_plugins.h> /* required for plugin ops */ | |
#include <ec_hook.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int plugin_load(void *); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
Command: ettercap -Tq -i eth0 -M arp:remote -P umsg_test /192.168.1.100/ | |
Massif arguments: (none) | |
ms_print arguments: massif.out.5312 | |
-------------------------------------------------------------------------------- | |
MB | |
47.40^ # | |
| @@# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
term_.prefs_.set('enable-bold', true); | |
term_.prefs_.set('enable-blink',false); | |
term_.prefs_.set('background-color', "#002b36"); | |
term_.prefs_.set('foreground-color', "#839496"); | |
term_.prefs_.set('color-palette-overrides', [ | |
'#073642', | |
'#dc322f', | |
'#859900', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/perl | |
use strict; | |
use Irssi; | |
use Irssi::Irc; | |
use vars qw($VERSION %IRSSI); | |
$VERSION= '1.0'; | |
%IRSSI = ( | |
authors => 'munki props to vap0r and acidvegas', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use Irssi; | |
use LWP::UserAgent; | |
our $VERSION = '1.0'; | |
our %IRSSI = ( | |
authors => 'munki', | |
contact => '[email protected]', | |
name=> 'troll-as-a-service', | |
description=> 'spits out a string from my webapp', | |
license=>'MIT', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run in the JavaScript console of the hterm browser window | |
// Clear all existing settings - you probably don't want to do this. | |
// Preferences are now stored in "chrome.storage.sync" instead of | |
// "window.localStorage" so if you clear your preferences the changes | |
// will be propagated to other devices. | |
//term_.prefs_.storage.clear(); | |
var htermProfiles = [ |
OlderNewer