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
180 2,582 537 | |
Varying Vagrant Vagrants is an evolving Vagrant configuration focused on WordPress development. | |
https://github.com/Varying-Vagrant-Vagrants/VVV | |
52 550 64 | |
:globe_with_meridians: Variable VVV - a VVV Site Creation Wizard | |
https://github.com/bradp/vv | |
12 126 20 | |
Dashboard for Varying Vagrant Vagrants https://github.com/Varying-Vagrant-Vagrants/VVV | |
https://github.com/topdown/VVV-Dashboard |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
# Map NFS uid/gid to current user. This can be used to create a | |
# user inside the VM with matching uid/gid which makes file access | |
# a lot easier. | |
config.nfs.map_uid = Process.uid | |
config.nfs.map_gid = Process.gid |
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
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64"#change it? | |
config.vm.box_check_update = false | |
config.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true | |
config.vm.network "forwarded_port", guest: 443, host: 8443, auto_correct: true | |
# https://github.com/BerlinVagrant/vagrant-dns | |
config.dns.tld = "dev" | |
config.vm.hostname = "hostname"#change it | |
config.dns.patterns = [/^.*hostname.dev$/]#change it |
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 | |
PASSWORD='vagrant' | |
sudo apt-get update -y | |
sudo apt-get install apache2 -y | |
ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//' | |
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password password $PASSWORD" | |
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password_again password $PASSWORD" |
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
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64"#change it? | |
config.vm.box_check_update = false | |
config.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true | |
config.vm.network "forwarded_port", guest: 443, host: 8443, auto_correct: true | |
# https://github.com/BerlinVagrant/vagrant-dns | |
config.dns.tld = "dev" | |
config.vm.hostname = "hostname"#change it | |
config.dns.patterns = [/^.*hostname.dev$/]#change it |
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
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
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
<?php | |
$ip = '127.0.0.1'; | |
$port = '9051'; | |
$auth = 'PASSWORD'; | |
$command = 'signal NEWNYM'; | |
$fp = fsockopen($ip,$port,$error_number,$err_string,10); | |
if(!$fp) { echo "ERROR: $error_number : $err_string"; | |
return false; |
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
<?php | |
/* Enter your code here. Read input from STDIN. Print output to STDOUT */ | |
$handle = fopen ("php://stdin","r"); | |
$t = fgets($handle); | |
$LIMIT=100000; | |
function specialX($number){ | |
global $LIMIT; | |
for($i=$number;$i<$LIMIT;$i++){ | |
if(($fours=strpos($i,'0'))===false){ | |
$forfours=$i; |
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
<?php | |
require 'path-to-Stripe.php'; | |
if ($_POST) { | |
\Stripe\Stripe::setApiKey("YOUR-API-KEY"); | |
$error = ''; | |
$success = ''; | |
try { | |
if (!isset($_POST['stripeToken'])) | |
throw new Exception("The Stripe Token was not generated correctly"); |
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
<pre><code><script> | |
$(document).ready(function () { | |
$("#wizard").bwizard(); | |
}); | |
</script> | |
</code></pre> |
NewerOlder