package main
import (
"fmt"
"net/http"
)
func handler(w http.ResponseWriter, r *http.Request) {
This file contains hidden or 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/python | |
| import subprocess | |
| import sys | |
| import os | |
| import yaml | |
| import paramiko | |
| import argparse | |
| from paramiko import SSHClient |
This file contains hidden or 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
| # | |
| # HEROKU | |
| # | |
| # pour se co | |
| #alias herologin='heroku login' | |
| # check cb de temps il reste | |
| #alias herops='heroku ps' |
- Press Ctrl+F12 to show the Structure popup.
This file contains hidden or 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
| # add repo | |
| sudo apt-add-repository ppa:git-core/ppa | |
| sudo add-apt-repository ppa:neovim-ppa/unstable | |
| sudo apt-get update | |
| sudo apt install terminator docker.io golang vim vagrant git python-pip -y | |
| sudo apt install vim-nox tig puppet ctags -y | |
| sudo npm install -g git2consul |
This file contains hidden or 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
| #alias | |
| alias l='ls -l' | |
| alias la='ls -la' | |
| alias rtl='ls -rtl' | |
| alias vi='vim' | |
| alias ..='cd ..' | |
| #json | |
| alias fjson='python -m json.tool' |
JENKINS_HOST=admin:ritmxadmin@localhost:8081 curl -sSL "http://$JENKINS_HOST/pluginManager/api/xml?depth=1&xpath=///shortName|///version&wrapper=plugins" | perl -pe 's/.?([\w-]+).?([^<]+)()(</\w+>)+/\1 \2\n/g'|sed 's/ /:/'
Packer
-
Packer is used to build image from a base image, perform provisions and store (commit) the final image.
-
We use provisioners and Packer templates to do the actual work to create the final image.
-
We use Ansible for provisioning.
{
"builders":[{
"type": "docker",
"image": "ubuntu",
"export_path": "image.tar"
}],
"provisioners":[
{
"type": "shell",