Skip to content

Instantly share code, notes, and snippets.

@IssacTran
IssacTran / cloudSettings
Last active June 6, 2017 00:05
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-06-06T00:05:27.153Z","extensionVersion":"v2.8.1"}
@IssacTran
IssacTran / 0_readme.md
Created July 4, 2016 20:56 — forked from andineck/0_readme.md
database messaging distributed kafka

database, messaging, distributed system, kafka

@IssacTran
IssacTran / docker-compose.yml
Created June 30, 2016 02:35 — forked from autodidacticon/docker-compose.yml
docker - zookeeper, kafka, kafka-manager
zookeeper:
image: wurstmeister/zookeeper
ports:
- "32772:2181"
kafka:
image: wurstmeister/kafka:latest
ports:
- "9092"
links:
- zookeeper:zk
@IssacTran
IssacTran / aclpolicy-template.yaml
Created June 28, 2016 03:18 — forked from gschueler/aclpolicy-template.yaml
template aclpolicy file
description: Project scope for group
context:
project: '.*'
for:
job:
- equals:
group: 'example'
name: 'Restart'
allow: [run,read]
- equals:
description: Developer Project Policy
context:
project: 'gto' # GTO project
for:
resource:
- equals:
kind: job
allow: [read,run]
- equals:
kind: node
@IssacTran
IssacTran / pedantically_commented_playbook.yml
Created June 25, 2016 16:36 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@IssacTran
IssacTran / main.yml
Created June 21, 2016 07:44 — forked from rothgar/main.yml
Generate /etc/hosts with Ansible
# Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source.
# Will include all hosts the playbook is run on.
# Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html
- name: "Build hosts file"
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present
when: hostvars[item].ansible_default_ipv4.address is defined
with_items: groups['all']
@IssacTran
IssacTran / arch-linux-install
Last active June 17, 2016 13:46 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@IssacTran
IssacTran / perfectelementary.bash
Created June 16, 2016 18:13
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@IssacTran
IssacTran / deployer_defaults_main.yml
Created June 15, 2016 07:23 — forked from jverdeyen/deployer_defaults_main.yml
Ansible role to push deploy key onto Gitlab instance
---
deployer_user: deploy
deployer_group: deploy
deployer_groups: ['admin']
deployer_user_ssh_key_file: .ssh/id_rsa
deployer_gitlab_api: https://[gitlab-domain]/api/v3/
deployer_gitlab_token: [gitlab-token-for-specific-user]
deployer_gitlab_key_title: "{{ ansible_hostname }}_deployer"