Version: 1.9.7
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "hashicorp/precise32" | |
config.vm.synced_folder "./", "/var/www", id: "vagrant-root", | |
owner: "vagrant", | |
group: "www-data", |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
''' | |
usage: | |
cat about.txt | python soinput.py | |
''' | |
import sys |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
gh_url = 'https://api.github.com' | |
req = urllib2.Request(gh_url) | |
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() |
{ | |
"directory": "components" | |
} |
# A class-based template for jQuery plugins in Coffeescript | |
# | |
# $('.target').myPlugin({ paramA: 'not-foo' }); | |
# $('.target').myPlugin('myMethod', 'Hello, world'); | |
# | |
# Check out Alan Hogan's original jQuery plugin template: | |
# https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template | |
# | |
(($, window) -> |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# Problem: | |
# | |
# If you use git submodules linking two private github repos, you'll need to create a separate deploy key for each. | |
# Multiple keys are not supported by Ansible, nor does ansible (when running git module) resort to your `.ssh/config` file. | |
# This means your ansible playbook will hang in this case. | |
# | |
# You can however use the ansible git module to checkout your repo in multiple steps, like this: | |
# | |
- hosts: webserver | |
vars: |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ModuleServiceProvider; | |
class FooModuleServiceProvider extends ModuleServiceProvider | |
{ | |
protected $moduleName = 'Foo Module'; | |
protected $moduleNamespaces = ['App\FooModule']; | |