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
require 'bundler/setup' | |
require 'foodcritic' | |
task :default => [:foodcritic] | |
task :foodcritic do | |
cookbooks = File.absolute_path(File.join File.dirname(__FILE__), 'cookbooks') | |
puts 'FoodCritic running... | |
would criticize if finds anything, not cycnical to blabber otherwise.' |
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
# Usage Example: $ ddl-confreaks rubyconf2012 ~/Downloads/ | |
# save it as /etc/profiles/ddl.confreaks.sh | |
## | |
## currently it checks for lowest resolution video mostly {640x360} and downloads it | |
function ddl-confreaks(){ | |
if [ $# -ne 2 ]; | |
then | |
echo 'Failed. Syntax: $> ddl-confreaks EVENT_NAME DOWNLOAD_PATH' | |
return |
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
##### | |
## $ ddl-rss-media https://www.defcon.org/podcast/defcon-20-slides.rss | |
##### | |
ddl-rss-media(){ | |
# ddl-rss-media RSS_LINK {would download all media enclosed at current dir} | |
enclosures=`curl -k -s -L $@ | cat | grep enclosure | sed 's/.*enclosure\s*url="//' | sed 's/".*//'` | |
for url in `echo $enclosures | xargs -L1`; | |
do | |
if [ ! -z $url ]; |
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/bash | |
# Usage Example: $ ddl-wally | |
# would download the latest entry in reddit/r/wallpapers (for now) at current location | |
# save it as /etc/profiles/a.wallpaper.sh | |
## | |
function ddl-wally(){ | |
curl -skL http://www.reddit.com/r/wallpaper/new/\?sort\=new | sed 's/.*<a class="title " href="//im' | sed 's/".*//' | tail -1 | xargs wget -c | |
} |
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
# Multiple VirtualHosts Entry can be made to handle different internal servers serving via single external node | |
# Since it picks up first VirtualHost as default route... all unhandled requests served by first VirtualHost | |
NameVirtualHost *:80 | |
ServerName servernode | |
<VirtualHost *:80> | |
ServerName www.about.server.node | |
ServerAlias about.server.node |
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 | |
""" | |
require 'pycallgraph' library to be installed with graphviz, | |
and the attached "pycallgraph_decorator.py" file to be present as well | |
to provide the decorator used | |
""" | |
from pycallgraph_decorator import callgraph | |
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
:backends: | |
- http | |
- redis | |
- yaml | |
- json | |
:http: | |
:host: testnode.testenv.abk | |
:port: 5984 | |
:output: json |
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
## usage example for RAGUEL : https://github.com/abhishekkr | |
RAGUEL_URL="https://github.com/abhishekkr/raguel/archive/master.tar.gz" | |
RAGUEL_TGZ="raguel.tgz" | |
RAGUEL_SRC="./raguel-master/src/raguel.sh" | |
curl -kL -o $RAGUEL_TGZ $RAGUEL_URL | |
tar -zxf raguel.tgz | |
cat > ./install_htop << EOF |
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/sh | |
# | |
# Configure routing and miscellaneous network tunables; edited by github.com/abhishekkr | |
# | |
# $FreeBSD$ | |
# | |
# PROVIDE: routing | |
# REQUIRE: faith netif ppp stf | |
# KEYWORD: nojailvnet |
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
diff --git a/lib/neutron b/lib/neutron | |
index 465b57c..4a8863f 100644 | |
--- a/lib/neutron | |
+++ b/lib/neutron | |
@@ -427,6 +427,10 @@ function init_neutron() { | |
# install_neutron() - Collect source and prepare | |
function install_neutron() { | |
git_clone $NEUTRON_REPO $NEUTRON_DIR $NEUTRON_BRANCH | |
+ _TMP_PWD=$PWD | |
+ cd $NEUTRON_DIR |