Skip to content

Instantly share code, notes, and snippets.

View pkolyvas's full-sized avatar
🚴

Petros Kolyvas pkolyvas

🚴
View GitHub Profile
@pkolyvas
pkolyvas / Gemfile
Last active April 16, 2020 15:27 — forked from jdennes/Gemfile
Export a list of members from a GitHub organisation
source "https://rubygems.org"
gem "octokit"
@pkolyvas
pkolyvas / config.fish.tug
Created November 6, 2018 18:05
For those who use Tug and Fish
# For users of fish, if you want to use jive/tug
# Add this to to your fish shell config
# or `cat config.fish.tug >> ~/.config/fish/config.fish`
set -x -g TUG_ROOT $HOME/.tug
set -x -g TUG_RELEASE_CHANNEL stable
set -x -g PATH $TUG_ROOT/bin $PATH
2019/12/02 20:10:31 [INFO] Terraform version: 0.12.16
2019/12/02 20:10:31 [INFO] Go runtime version: go1.13.4
2019/12/02 20:10:31 [INFO] CLI args: []string{"/usr/local/bin/terraform", "init"}
2019/12/02 20:10:31 [DEBUG] Attempting to open CLI config file: /Users/pkolyvas/.terraformrc
2019/12/02 20:10:31 Loading CLI configuration from /Users/pkolyvas/.terraformrc
2019/12/02 20:10:31 [INFO] CLI command args: []string{"init"}
2019/12/02 20:10:31 [DEBUG] Module installer: begin keys
2019/12/02 20:10:31 [TRACE] ModuleInstaller: keys is not yet installed
2019/12/02 20:10:31 [TRACE] ModuleInstaller: cleaning directory .terraform/modules/keys prior to install of keys
2019/12/02 20:10:31 [TRACE] ModuleInstaller: keys has local path "./keys/"
terraform init
2019/12/03 18:28:16 [INFO] Terraform version: 0.12.17
2019/12/03 18:28:16 [INFO] Go runtime version: go1.13.4
2019/12/03 18:28:16 [INFO] CLI args: []string{"/usr/local/bin/terraform", "init"}
2019/12/03 18:28:16 [DEBUG] Attempting to open CLI config file: /Users/pkolyvas/.terraformrc
2019/12/03 18:28:16 Loading CLI configuration from /Users/pkolyvas/.terraformrc
2019/12/03 18:28:16 [INFO] CLI command args: []string{"init"}
Initializing modules...
2019/12/03 18:28:16 [TRACE] ModuleInstaller: installing child modules for . into .terraform/modules
2019/12/03 18:28:16 [DEBUG] Module installer: begin keys
@pkolyvas
pkolyvas / intensify.sh
Created January 29, 2020 21:59 — forked from briancain/intensify.sh
intensifies Slack emoji creator
#!/bin/bash
# Generate a `:something-intensifies:` Slack emoji, given a reasonable image
# input. I recommend grabbing an emoji from https://emojipedia.org/
set -euo pipefail
# Number of frames of shaking
count=10
# Max pixels to move while shaking
# folder/sources.pkr.hcl
source "amazon-ebs" "example" {
ami_name = "packer-partyparrot-{{timestamp}}"
region = "us-east-1"
instance_type = "t2.micro"
source_ami_filter {
filters {
virtualization-type = "hvm"
name = "ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*"
root-device-type = "ebs"
source "file" "example" {
content = "Happy 2020"
target = "./test_artifact.txt"
}
build {
sources = [
"source.file.example"
]
post-processor "shell-local" {
inline = ["echo We hope you like your gift!"]
{
"builders": [
{
"type": "null",
"communicator": "none"
}
],
"provisioners": [
{
"type": "shell-local",
type Builder interface {
+ ConfigSpec() hcldec.ObjectSpec
- Prepare(...interface{}) ([]string, error)
+ Prepare(...interface{}) ([]string, []string, error)
...
}
type Provisioner interface {
+ ConfigSpec() hcldec.ObjectSpec
- Provision(context.Context, Ui, Communicator) error
@pkolyvas
pkolyvas / keybase.md
Created March 27, 2020 16:57
keybase.md

Keybase proof

I hereby claim:

  • I am pkolyvas on github.
  • I am dialing_wand (https://keybase.io/dialing_wand) on keybase.
  • I have a public key ASAThzf6_qh4zhcJop8NhxWoC0kFHsYQjCK-3DVvwHDM3Qo

To claim this, I am signing this object: