Skip to content

Instantly share code, notes, and snippets.

Ralf Crisostomo ralphcrisostomo

Block or report user

Report or block ralphcrisostomo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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 Bash Commands.md

Bash Commands

Initial Setup

sudo apt-update
sudo apt-upgrade

Source List

@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 / handbrake.sh
Last active Feb 3, 2019
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
View Git.Fixed.Untracked.Files
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
@ralphcrisostomo
ralphcrisostomo / Wordpress Localhost FTP Connection Information.md
Last active Jul 20, 2018
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 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 / 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"
View singapore_postals.json
{
"postals" : [
{
"id" : "01",
"district" : "01",
"sectors" : ["01","02","03","04","05"],
"locations" : ["Raffles Place", "Cecil", "Marina", "People’s Park"]
},
{
"id" : "02",
You can’t perform that action at this time.