Skip to content

Instantly share code, notes, and snippets.

Avatar

Ralf Crisostomo ralphcrisostomo

  • Goodstuff
  • Australia
View GitHub Profile
@ralphcrisostomo
ralphcrisostomo / handbrake.sh
Last active Oct 20, 2021
Batch convert videos with HandBrake CLI
View handbrake.sh
#!/bin/bash
# Batch convert videos with HandBrake CLI
# By Ralph Crisostomo - 2016.04.17
#
# Usage :
# 'sudo ./handbrake.sh /source /destination'
#
# Reference :
# https://forum.handbrake.fr/viewtopic.php?f=6&t=19426
# https://gist.github.com/czj/1263872
@ralphcrisostomo
ralphcrisostomo / array_dupplicate_counter.js
Created Jul 19, 2012
Javascript: Count duplicates in an array
View array_dupplicate_counter.js
/**
Problem:
You have a javascript array that likely has some duplicate values and you would like a count of those values.
Solution:
Try this schnippet out.
*/
View xampp_proxy_server_config
1. Open /Applications/XAMPP/etc/httpd.conf
2. Enable the following Modules by removing the # at the front of the line.
- LoadModule rewrite_module modules/mod_rewrite.so
- LoadModule proxy_module modules/mod_proxy.so
- LoadModule proxy_http_module modules/mod_proxy_http.so
3. Copy and Paste below to the bottom of httpd.conf
# Implements a proxy/gateway for Apache.
@ralphcrisostomo
ralphcrisostomo / timezone.json
Created Jun 30, 2014
timezone list json key value
View timezone.json
[
{
"zone": "Pacific/Midway",
"gmt": "(GMT-11:00)",
"name": "Midway Island"
},
{
"zone": "US/Samoa",
"gmt": "(GMT-11:00)",
"name": "Samoa"
@ralphcrisostomo
ralphcrisostomo / Wordpress Localhost FTP Connection Information.md
Last active Oct 26, 2020
Bypass Wordpress Localhost FTP Connection Information
View Wordpress Localhost FTP Connection Information.md

Bypass Wordpress Localhost FTP Connection Information

Do chown / chmod wordpress folder:

    $ sudo chown -R :_www wordpress
    $ sudo chmod -R g+w wordpress

Add the following line into wp-config.php:

View .vimrc
set nocompatible
call pathogen#infect()
call pathogen#helptags()
let mapleader = ","
syntax enable
" Mappings {{{
" Insert mode mappings {{{
View Bash Commands.md

Bash Commands

Initial Setup

sudo apt-update
sudo apt-upgrade

Source List

View Git.Fixed.Untracked.Files
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
@ralphcrisostomo
ralphcrisostomo / ae-rotation-controll
Created Nov 15, 2016
AE Expression for controlling a rotation
View ae-rotation-controll
//
// Rotate Controller - By Ralph Crisostomo (16NOV2016)
// AE Expression
//
Radius = effect("Radius")("Slider");
Speed = effect("Speed")("Slider");
Multiplier = effect("Multiplier")("Slider");
X = effect("X")("Slider");
Y = effect("Y")("Slider");
@ralphcrisostomo
ralphcrisostomo / timezone.json
Created Jun 30, 2014
timezone gmt list json
View timezone.json
[
[
"International Date Line West",
"GMT-11:00",
"(GMT-11:00) International Date Line West"
],
[
"Midway Island",
"GMT-11:00",
"(GMT-11:00) Midway Island"