Skip to content

Instantly share code, notes, and snippets.

View c4milo's full-sized avatar
:octocat:

Camilo Aguilar c4milo

:octocat:
View GitHub Profile
package main
import (
"fmt"
"math/rand"
"strconv"
"time"
"github.com/octplane/mnemo"
)
make: [cleanbuilddir] Error 1 (ignored)
rm -f debian/stamp-makefile-build debian/stamp-makefile-install
/usr/bin/make -C /build/buildd/libvirt-1.2.4/debian/build -k distclean
make: *** /build/buildd/libvirt-1.2.4/debian/build: No such file or directory. Stop.
make: [makefile-clean] Error 2 (ignored)
rm -f debian/stamp-makefile-check
rm -f debian/stamp-autotools
rmdir --ignore-fail-on-non-empty /build/buildd/libvirt-1.2.4/debian/build
rmdir: failed to remove '/build/buildd/libvirt-1.2.4/debian/build': No such file or directory
make: [makefile-clean] Error 1 (ignored)
$ dig @127.0.0.1 -p 8600 consul.service.consul SRV
; <<>> DiG 9.8.3-P1 <<>> @127.0.0.1 -p 8600 consul.service.consul ANY
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50483
;; flags: qr aa rd; QUERY: 1, ANSWER: 3, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available
<dict>
<key>name</key>
<string>Json Keys</string>
<key>scope</key>
<string>source.json meta.structure.dictionary.json string.quoted.double.json</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#DEDEDE</string>
</dict>
/*
terraform apply \
-var 'key_path=/home/camilo/.ssh/id_rsa' \
-var 'password=test' \
*/
variable "key_path" {
default = "/Users/camilo/.ssh/id_rsa"
}
variable "key_path" {
default = "/Users/camilo/.ssh/id_rsa"
}
variable "password" {
default: ""
}
provider "vix" {
product = "fusion"
install_oem_package() {
local oem_pkg=$(_get_vm_opt OEM_PACKAGE)
local oem_use=$(_get_vm_opt OEM_USE)
#local oem_tmp="${VM_TMP_DIR}/oem"
if [[ -z "${oem_pkg}" ]]; then
return 0
fi
info "Installing ${oem_pkg} to OEM partition"
@c4milo
c4milo / e.go
Created January 19, 2015 18:04
func main() {
var logWriter io.Writer
if config.LogFilePath != "" {
var err error
logWriter, err = os.OpenFile(config.LogFilePath, os.O_RDWR|os.O_APPEND, 0660)
if err != nil {
log.Printf("[WARN] %v", err)
}
}
FROM ubuntu-debootstrap:14.04
RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty main' >/etc/apt/sources.list
RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty-security main' >>/etc/apt/sources.list
RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty-updates main' >>/etc/apt/sources.list
RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty universe' >>/etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y --force-yes \
@c4milo
c4milo / Go Code of Conduct
Created February 22, 2015 03:56
Golang Code of Conduct
A member of the Go community is:
Open
Members of the community are open to collaboration, patches, problems, or
otherwise. We're receptive to constructive comment and criticism, as the
experiences and skill sets of other members contribute to the whole of our
efforts. We're accepting of all who wish to take part in our activities,
fostering an environment where anyone can participate and everyone can make a
difference.