sudo apt-update
sudo apt-upgrade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
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. | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create an alias directory in XAMPP | |
# Ref: http://www.mauriciomunera.com/?p=127 | |
# Ref: https://gist.github.com/ralphcrisostomo/4974674/ | |
# Open the file /Applications/xampp/etc/httpd.conf in a text editor. | |
# Add these lines to the end of the files. (change the name of the alias for the web application that suits better for you) | |
<IfModule alias_module> | |
# | |
# Redirect: Allows you to tell clients about documents that used to | |
# exist in your server's namespace, but do not anymore. The client | |
# will make a new request for the document at its new location. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"zone": "Pacific/Midway", | |
"gmt": "(GMT-11:00)", | |
"name": "Midway Island" | |
}, | |
{ | |
"zone": "US/Samoa", | |
"gmt": "(GMT-11:00)", | |
"name": "Samoa" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
call pathogen#infect() | |
call pathogen#helptags() | |
let mapleader = "," | |
syntax enable | |
" Mappings {{{ | |
" Insert mode mappings {{{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm -r --cached . | |
git add . | |
git commit -m "fixed untracked files" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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"); |
NewerOlder