{ "Statement": [ { "Effect": "Allow", "Action": "s3:ListAllMyBuckets", "Resource": "arn:aws:s3:::*" }, {
This file contains hidden or 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 'net/http' | |
| require 'uri' | |
| require 'cgi' | |
| require 'time' | |
| require 'base64' | |
| @accesskey = "adfdlkf" | |
| @secretaccesskey = "dfkjldf" | |
| opts = {"Action" => "SendEmail", |
This file contains hidden or 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
| gconftool-2 --set --type list --list-type=string /apps/compiz-1/general/screen0/options/active_plugins '[core,composite,opengl,decor,resize,imgpng,unitymtgrabhandles,snap,compiztoolbox,vpswitch,mousepoll,gnomecompat,place,regex,animation,move,staticswitcher,session,unityshell,workarounds]' | |
| gconftool-2 --set /apps/compiz-1/plugins/switcher/screen0/options/prev_all_key --type string "Disabled" | |
| gconftool-2 --set /apps/compiz-1/plugins/switcher/screen0/options/next_all_key --type string "Disabled" | |
| gconftool-2 --set /apps/compiz-1/plugins/switcher/screen0/options/prev_key --type string "Disabled" | |
| gconftool-2 --set /apps/compiz-1/plugins/switcher/screen0/options/next_key --type string "Disabled" | |
| gconftool-2 --set /apps/compiz-1/plugins/unityshell/screen0/options/alt_tab_prev --type string "Disabled" | |
| gconftool-2 --set /apps/compiz-1/plugins/unityshell/screen0/options/alt_tab_forward --type string "Disabled" |
This file contains hidden or 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
| <?php | |
| require("./amazon-sdk/sdk.class.php"); | |
| // on ubuntu - this script can be run using php5-cli and php5-curl | |
| //Provide the Key and Secret keys from amazon here. | |
| $AWS_KEY = "kkk"; | |
| $AWS_SECRET_KEY = "kkkk+xKcdkB"; | |
| //certificate_authority true means will read CA of amazon sdk and false means will read CA of OS | |
| $CA = true; |
This file contains hidden or 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
| register ./contrib/piggybank/java/piggybank.jar; | |
| register /home/user/Code/hadoop/hbase-0.94.4/lib/zookeeper-3.4.5.jar | |
| register /home/user/Code/hadoop/hbase-0.94.4/hbase-0.94.4.jar | |
| register /home/user/Code/hadoop/hbase-0.94.4/lib/guava-11.0.2.jar | |
| register /home/user/Code/hadoop/hbase-0.94.4/lib/protobuf-java-2.4.0a.jar | |
| register ./udf.rb using jruby as uuid_udf; | |
| /* | |
| DEFINE A `access_log_link` CACHE('hdfs://localhost:54310/user/user/access_log#access_log_link'); |
This file contains hidden or 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
| sudo update-menus --remove | |
| sudo apt-get purge menu menu-xdg | |
| remember to do the first line before the second line. Else you will have to reinstall both the packages again and repeat. |
This file contains hidden or 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
| #pre-requisites | |
| sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev git libpq-dev libmysqlclient-dev libpq-dev nodejs libcurl4-openssl-dev libffi-dev imagemagick libjpeg-progs pngcrush | |
| ############optional | |
| sudo apt-get install sudo vim zsh | |
| ######### optional for jruby | |
| sudo apt-get install openjdk-7-jdk | |
This file contains hidden or 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
| # http://nodebox.metaforix.net/articles/debian-on-lenovo-thinkpad-t420 | |
| #create new file /usr/share/X11/xorg.conf.d/99-my.conf | |
| Section "InputDevice" | |
| Identifier "Synaptics Touchpad" | |
| Driver "synaptics" | |
| Option "SendCoreEvents" "true" | |
| Option "Device" "/dev/psaux" | |
| Option "Protocol" "auto-dev" |
This file contains hidden or 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
| package multi | |
| import java.util.concurrent.Callable | |
| object Threads { | |
| def main(args: Array[String]) : Unit = { | |
| implicit def funcToCallable[A](func : () => A): Callable[A] = new Callable[A] { println("creating callable");def call() :A = func() } | |
| implicit def funcToRunnable( func : () => Unit ) = new Runnable(){ println("creating runnable");def run() = func()} | |
| //bad. cannot be tested properly. plus completely screws up the idea of runnable (viz to have the choice of not using threads with minimum code changes) |
This file contains hidden or 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 it using openvpn –script-security 2 –config azilink.ovpn | |
| dev tun | |
| remote 127.0.0.1 41927 tcp-client | |
| ifconfig 192.168.56.2 192.168.56.1 | |
| route 0.0.0.0 128.0.0.0 | |
| route 128.0.0.0 128.0.0.0 | |
| socket-flags TCP_NODELAY | |
| keepalive 10 30 | |
| dhcp-option DOMAIN lan |