How is listed with vagrant plugin list |
How to use in Vagrant.has_plugin? | link to plugin.rb in repo |
---|---|---|
bindler | Bindler | fgrehm/bindler |
vagrant-hostmanager | HostManager | smdahlen/vagrant-hostmanager |
vagrant-cachier | vagrant-cachier | fgrehm/vagrant-cachier |
vagrant-aws | AWS | mitchellh/vagrant-aws |
vagrant-rackspace | RackSpace Cloud | mitchellh/vagrant-rackspace |
vagra |
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
curl -s -X GET http://localhost:8080/pdb/query/v4/facts --data-urlencode query@test --data-urlencode 'pretty=true' | |
curl -X POST http://localhost:8080/pdb/query/v4/facts \ | |
-H 'Content-Type:application/json' \ | |
-d '{"query":["and",["=","certname","FQDN"],["=","name","ipaddress"]]}' | |
content of file test : | |
["and",["=","certname","FQDN"],["or",["=","name","ipaddress"]]] |
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
[unix_http_server] | |
file=/tmp/supervisor.sock ; path to your socket file | |
[supervisord] | |
logfile=/var/log/supervisord/supervisord.log ; supervisord log file | |
logfile_maxbytes=50MB ; maximum size of logfile before rotation | |
logfile_backups=10 ; number of backed up logfiles | |
loglevel=error ; info, debug, warn, trace | |
pidfile=/var/run/supervisord.pid ; pidfile location | |
nodaemon=false ; run supervisord as a daemon |
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
node "default" { | |
stage { 'first': | |
before => Stage['main'], | |
} | |
class { 'apt_update': | |
stage => first, | |
} | |
class { 'apt': } |
NOTE: This used to be a gist that continually expanded. It's now a github project because it's considerably easier for other people to edit, fix and expand on Docker using Github. Just click README.md, and then on the "writing pen" icon on the right to edit.
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
#simple class | |
class Person | |
end | |
#inheritance | |
class Sarah < Person | |
end | |
#class with constructor arguments | |
class Jet |
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 Statement | |
# Create a class Calculator, which performs addition and subtraction of two numbers at a time. | |
class Calculator | |
def add(a, b) | |
a+b | |
end | |
def subtract(a, b) | |
a-b | |
end |
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
#!/usr/bin/env ruby | |
# giftube – Generates an animated gif from a YouTube url. | |
# | |
# Usage: | |
# | |
# giftube [youtube url] [minute:second] [duration] | |
# | |
# ex. | |
# |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'chatterbot/dsl' | |
require 'speedtest' | |
# debug_mode | |
# remove this to get less output when running your bot | |
verbose |
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
databases => { | |
'default' => | |
{ | |
'ENGINE' => 'postgresql_psycopg2', | |
'NAME' => 'defaultdb', | |
'HOST' => '2.2.2.2.2', | |
'USER' => 'username', | |
'PASSWORD' => 'secretinfo', | |
'OPTIONS' => | |
{ |