Skip to content

Instantly share code, notes, and snippets.

View dogrocker's full-sized avatar

Kanin Peanviriyakulkit dogrocker

  • 13:54 (UTC +07:00)
View GitHub Profile

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
dogrocker / Wireless Penetration Testing Cheat
Created July 2, 2016 18:30
Wireless Penetration Testing Cheat Sheet

#Wireless Penetration Testing Cheat Sheet


  • Open the Monitor Mode
root@uceka:~# ifconfig wlan0mon down
root@uceka:~# iwconfig wlan0mon mode monitor
root@uceka:~# ifconfig wlan0mon up
dogrocker / .bashrc
Created July 21, 2016 06:16 — forked from vsouza/.bashrc
Golang 1.5 setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell or bash.
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
dogrocker /
Created July 3, 2016 07:53 — forked from jexchan/
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C ""
dogrocker / IAMCredentials.json
Created February 27, 2023 03:41 — forked from ServerlessBot/IAMCredentials.json
Minimum credential set for Serverless Framework
"Statement": [
"Action": [
dogrocker / ESP8266 Web Server to storing ap config to
Last active October 12, 2022 12:02
ESP8266 Web Server to storing ap config to EEPROM

ESP8266 Web Server to storing ap config to EEPROM.

Original by chriscook8 from I just modified to use ESP8266WebServer library for easy to handle the http request.

This is sample code not yet complete.


  • when Wifi connected need to close the softAP.
dogrocker / nginx.conf
Created June 13, 2017 06:58 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
dogrocker / 666_lines_of_XSS_vectors.html
Created November 27, 2017 20:44 — forked from JohannesHoppe/666_lines_of_XSS_vectors.html
666 lines of XSS vectors, suitable for attacking an API copied from
<img src=1 href=1 onerror="javascript:alert(1)"></img>
dogrocker / set focus.js
Created August 2, 2015 17:48
Set mouse focus and move cursor to end of input using jQuery
// From
dogrocker / messages_and_errors_django_template.html
Created July 7, 2017 04:59 — forked from adamghill/messages_and_errors_django_template.html
Show messages and errors in Django templates. Useful to just throw in a base template.
{% if messages %}
{% for message in messages %}
<div class="alert {% if message.tags %} alert-{{ message.tags }}{% endif %}">{{ message|safe }}</div>
{% endfor %}
{% endif %}
{% if form.errors %}
<div class="alert alert-error">
<h4>Please fix the following errors</h4>