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 / 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.
#
#!/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() {
@ralphcrisostomo
ralphcrisostomo / tmux-cheatsheet.markdown
Created January 22, 2016 04:24 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ralphcrisostomo
ralphcrisostomo / Node Learning Notes.md
Last active August 29, 2015 14:23
Express.js Learning Notes

Express.js Learning Notes

Tips

  • Always refer to http://expressjs.com/api.html
  • Everything is “middleware”.
  • use means “Run this on ALL requests”
  • get means “Run this on a GET request, for the given URL”
  • in between middleware should return next() or res.end()
  • Ends the response process.