Skip to content

Instantly share code, notes, and snippets.

Avatar

Ralf Crisostomo ralphcrisostomo

  • Goodstuff
  • Australia
View GitHub Profile
@ralphcrisostomo
ralphcrisostomo / install_vlc_on_linux.md
Last active Apr 15, 2016
The correct way of install vlc to your Linux
View install_vlc_on_linux.md
@ralphcrisostomo
ralphcrisostomo / vlc.sh
Created Apr 15, 2016
Transcode DVB TV signals to h.264-encoded MP4 files using VLC
View vlc.sh
#!/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 Apr 7, 2016
for lazy people that wanted to download tutorials from tutsplus.com automatically
View tutsplus.coffee
#
# 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.
#
View KALI_VMWARE_SETUP.md
View passniffer.sh
#!/bin/bash
DATE=`date +%Y-%m-%d`
SESSION=log
killall hostapd
killall dnsmasq
killall sslstrip
mkdir ~/passniffer
mkdir ~/passniffer/$DATE/
View doubleend.zsh-theme
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() {
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ralphcrisostomo
ralphcrisostomo / Node Learning Notes.md
Last active Aug 29, 2015
Express.js Learning Notes
View Node Learning Notes.md

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.