- Install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install rbenv and ruby-build
//Javascript | |
$(function() | |
{ | |
var BASE_URL = window.location.protocol + '//' + window.location.host; | |
$("#buttonselector").click(function() { | |
var data = { | |
'inputelementname' : $('#inputelementselector').val(), | |
}; |
--- | |
vagrantfile-local: | |
vm: | |
box: puphpet/ubuntu1404-x64 | |
box_url: puphpet/ubuntu1404-x64 | |
hostname: '' | |
memory: '512' | |
cpus: '1' | |
chosen_provider: virtualbox | |
network: |
def anonymous_llama(min, max) | |
for i in min..max | |
if (i % 3 == 0) | |
puts "Anonymous" | |
else | |
puts i | |
end | |
if (i % 5 == 0) | |
puts "Llama" |
#pragma strict | |
var dashButton = "Fire1"; | |
var dashPower : float = 300f; | |
var facingRight : boolean = false; | |
function Start () { | |
} | |
function Update () { |
vagrant box add laravel/homestead |
--- | |
ip: "192.168.10.10" | |
memory: 2048 | |
cpus: 1 | |
hosts_file_additions: true | |
authorize: ~/.ssh/id_rsa.pub | |
keys: | |
- ~/.ssh/id_rsa |
get_posts([ | |
'post_type' => ['headline', 'event'], | |
'numberposts' => 5, | |
'tax_query' => [ | |
'relation' => 'OR', | |
['taxonomy' => 'event-category', 'field' => 'slug', 'terms' => 'featured'], | |
['taxonomy' => 'headline-categories', 'field' => 'slug', 'terms' => 'featured'] | |
], | |
'order' => 'DESC' | |
]); |
#Insall Ajenti | |
apt-get update | |
wget http://repo.ajenti.org/debian/key -O- | apt-key add - | |
echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install ajenti | |
service ajenti restart | |
# Uninstall Apache2 | |
sudo apt-get autoremove && sudo apt-get remove apache2* |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
<?php | |
class UrlParser | |
{ | |
/** | |
* The url to be parsed | |
* @param String $url | |
*/ | |
public function __construct($url) | |
{ |