Skip to content

Instantly share code, notes, and snippets.

View ralphcrisostomo's full-sized avatar

Ralf Crisostomo ralphcrisostomo

  • Goodstuff
  • Australia
View GitHub Profile
@ralphcrisostomo
ralphcrisostomo / move.sh
Last active June 18, 2016 07:00
Script to series on a new created directory
#!/bin/bash
# Script to series on a new created directory
# By Ralph Crisostomo - 2016.04.17
#
# Usage :
# sudo ./move.sh SU supergirl Series01
#
PATTERN=$1
NAME=$2
#!/bin/bash
# Ref: http://www.contextis.com/resources/blog/wireless-phishing-captive-portals/
#
# Steps :
# ./network_ap.sh
# ./create_ap wlan0 eth0 AccessPoint -g 10.0.0.1
killall hostapd
killall dnsmasq
@ralphcrisostomo
ralphcrisostomo / move_picture.sh
Last active May 10, 2016 14:32
Script to organize pictures and videos
#!/bin/bash
# Script to organize pictures and videos
# By Ralph Crisostomo - 2016.05.10
#
# Usage :
# sudo ./move_picture.sh "GM1 - Day 01"
#
_destination="$1"
_date=$(date +"%Y%m%d")
## convert HTML POST data or HTTP GET query string to JSON
## get the raw post data from the AWS built-in variable and give it a nicer name
#if ($context.httpMethod == "POST")
#set($rawAPIData = $input.path('$'))
#elseif ($context.httpMethod == "GET")
#set($rawAPIData = $input.params().querystring)
#set($rawAPIData = $rawAPIData.toString())
#set($rawAPIDataLength = $rawAPIData.length() - 1)
#set($rawAPIData = $rawAPIData.substring(1, $rawAPIDataLength))
@ralphcrisostomo
ralphcrisostomo / install_vlc_on_linux.md
Last active April 15, 2016 14:30
The correct way of install vlc to your Linux
@ralphcrisostomo
ralphcrisostomo / vlc.sh
Created April 15, 2016 12:36
Transcode DVB TV signals to h.264-encoded MP4 files using VLC
#!/bin/bash
#
# Transcode DVB TV signals to h.264-encoded MP4 files using VLC
# Wout.Mertens@gmail.com
#### Defaults, please edit for your settings ####
# VLC location, here is the Mac OS X example
VLC=/Applications/VLC.app/Contents/MacOS/clivlc
# Other possibilities: (Remove the # to activate)
@ralphcrisostomo
ralphcrisostomo / tutsplus.coffee
Last active April 7, 2016 13:59
for lazy people that wanted to download tutorials from tutsplus.com automatically
#
# Created by : Ralph Crisostomo
# 14FEB2016
#
# Instead of clicking and downloading one by one
# Paste the code below to your chrome console
# to generate bash command for you to copy and paste
# to your terminal.
#
@ralphcrisostomo
ralphcrisostomo / raspberry-pi-setup.md
Last active March 28, 2016 07:27
raspberry pi setup

Raspberry Pi Setup

install

/etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
#!/bin/bash
DATE=`date +%Y-%m-%d`
SESSION=log
killall hostapd
killall dnsmasq
killall sslstrip
mkdir ~/passniffer
mkdir ~/passniffer/$DATE/
function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX"
}
function get_pwd() {
print -D $PWD
}
function battery_charge() {