Skip to content

Instantly share code, notes, and snippets.

View susovanpanja's full-sized avatar

Susovan Panja susovanpanja

  • Mohali
View GitHub Profile
The following characters have special meaning to the shell itself in some contexts and may need to be escaped in arguments:
` Backtick (U+0060 Grave Accent)
~ Tilde (U+007E)
! Exclamation mark (U+0021)
# Hash (U+0023 Number Sign)
$ Dollar sign (U+0024)
& Ampersand (U+0026)
* Asterisk (U+002A)
( Left Parenthesis (U+0028)
@susovanpanja
susovanpanja / wget-jdk-oracle-install-example.txt
Created June 11, 2018 08:10 — forked from sr75/wget-jdk-oracle-install-example.txt
wget command to install Oracle JAVA JDK from stupid oracle website for centos and ubuntu
http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6
# rpm
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \
-O jdk-7-linux-x64.rpm
# ubuntu
@susovanpanja
susovanpanja / cft-travis-sample.yml
Created April 10, 2018 12:38 — forked from grdnrio/cft-travis-sample.yml
Example Travis file for verifying CloudFormation templates
language: ruby
git:
submodules: false
env:
global:
- AWS_DEFAULT_REGION=eu-west-1
- secure: somestring
- secure: somestring
@susovanpanja
susovanpanja / sns-publish
Created March 26, 2018 06:47 — forked from jeremypruitt/sns-publish
AWS Lambda function to publish to SNS topic
console.log('Loading function');
var AWS = require('aws-sdk');
AWS.config.region = 'us-west-2';
exports.handler = function(event, context) {
console.log("\n\nLoading handler\n\n");
var sns = new AWS.SNS();
sns.publish({