Skip to content

Instantly share code, notes, and snippets.

View lucazz's full-sized avatar
🇧🇷
Working from home

Lucas do Amaral Saboya lucazz

🇧🇷
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lucazz on github.
  • I am lucazz (https://keybase.io/lucazz) on keybase.
  • I have a public key whose fingerprint is FAC0 60F2 31DF FE10 06AE 9488 12F3 B3B3 1366 C0C0

To claim this, I am signing this object:

@lucazz
lucazz / get-kubeconfig
Last active March 5, 2019 21:09
Script to mint k8s user certificates and concatenate them into a single config
#!/bin/bash
set -eu -o pipefail
REQUEST_ID=$(uuidgen)
BASE64_DECODE_FLAG="-D"
BASE64_WRAP_FLAG=""
CLUSTER_NAME=$1
mkdir -p build
mkdir -p ~/.kube/configs/
### Keybase proof
I hereby claim:
* I am lucazz on github.
* I am lucazz (https://keybase.io/lucazz) on keybase.
* I have a public key ASA6GSA6_z_1kiU0XgYk2By2Ho0jDQRyKaAroL1sDXOkIwo
To claim this, I am signing this object:
$ vagrant status
Current machine states:
debian.local saved (virtualbox)
- name: provisioning.service
content: |
[Unit]
AssertFileNotEmpty=/home/core/.docker/config.json
After=docker.service
[Service]
EnvironmentFile=/tmp/s3.env
Type=oneshot
ExecStartPre=-/bin/sh -c "mkdir /var/lib/teamcity;"
ExecStartPre=/usr/bin/docker pull anki/s3cmd:0.1
- name: provisioning.service
command: start
content: |
[Unit]
Description=Provisioning whatever is needed prior to starting TeamCity's containers
[Service]
Type=oneshot
ExecStartPre=-/bin/sh -c "mkdir /var/lib/teamcity;"
ExecStart=/bin/sh -c "echo Provisioning complete;"
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "boxcutter/ubuntu1604"
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.ignore_private_ip = false
config.hostmanager.aliases = "ubuntu.dev"
config.vm.synced_folder ".", "/opt/data", type: "nfs"
/tmp/ansible-tmp-1453476844.32-100161351905139$ python git
Enter passphrase for key '/var/www/.ssh/id_rsa':
{"stdout": "", "cmd": "/usr/bin/git ls-remote '' -h refs/heads/release-0.1", "failed": true, "stderr": "Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts.\r\nPermission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n", "rc": 128, "invocation": {"module_args": {"executable": null, "force": false, "refspec": null, "reference": null, "dest": "/var/www/demo_app/releases/20160122152353", "accept_hostkey": true, "clone": true, "verify_commit": false, "update": true, "ssh_opts": null, "repo": "git@github.com:lucazz/demo_app.git", "track_submodules": false, "depth": 1, "version": "release-0.1", "bare": false, "remote": "origin", "key_file": null, "recursive": true}}, "msg": "Warning: Permanently added the RSA host key for IP address '192.30.252.131' to th
@lucazz
lucazz / gist:b15e9b26890a5899683b
Created January 11, 2016 15:04
Fish - Print the current working directory, NOT shortened to fit the prompt
# Set these options in your config.fish (if you want to :])
#
# set -g theme_display_user yes
# set -g theme_hide_hostname yes
# set -g default_user your_normal_user
#
# Segments functions
#

Keybase proof

I hereby claim:

  • I am lucazz on github.
  • I am lucazz (https://keybase.io/lucazz) on keybase.
  • I have a public key is ASCXY45sFMLzq2Km96DrelWgyP-t7WXwo0ZbbptyhpO-BQo

To claim this, I am signing this object: