Skip to content

Instantly share code, notes, and snippets.

View rackerbenoit's full-sized avatar
🎯
Focusing

Paul Benoit rackerbenoit

🎯
Focusing
View GitHub Profile
OLD (static) server:
PS D:\> choco list --localonly
Chocolatey v1.1.0
7zip.portable 19.0
AdoptOpenJDK 14.0.2.13
Carbon 2.9.2
chocolatey 1.1.0
chocolatey-core.extension 1.3.5.1
chocolatey-dotnetfx.extension 1.0.1
chocolatey-visualstudio.extension 1.8.1
@rackerbenoit
rackerbenoit / aws.md
Last active January 27, 2021 20:04 — forked from colinvh/aws.md
AWS Region Names

Alternative naming schemes for AWS regions

Purpose

The intent is to define terse, standards-supported names for AWS regions.

Schemes

# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@rackerbenoit
rackerbenoit / run_test_suite.rb output
Last active August 29, 2015 14:20
run_test_suite running correctly
AUSTRML-P56MFFT:Scripts ubenopa$ ruby run_test_suite.rb -e paul_sandbox
No identity flag passed and I'll assume that's cool.
================== RUNNING SERVERSPEC TESTS IN paul_sandbox ======================
Running => bundle exec knife ssh 'chef_environment:paul_sandbox' 'role_dir=$(dirname /var/chef/cache/cookbooks/role_*/recipes) && role_cb=$(basename $role_dir); if [ -f $role_dir/recipes/run_serverspecs.rb ]; then sudo chef-client -o "recipe[$role_cb::run_serverspecs]" --splay 60; else echo "No SERVERSPEC recipe found in $role_cb"; fi' -a ipaddress -x pearson -C 10 --no-host-key-verify (timeout:1800)
10.168.18.239 No SERVERSPEC recipe found in role_frontendapp_customer
10.168.16.43 No SERVERSPEC recipe found in role_frontendapp_customer
10.168.16.98 No SERVERSPEC recipe found in role_grafana
10.168.19.71 No SERVERSPEC recipe found in role_frontendapp_customer
10.168.18.67 dirname: extra operand `/var/chef/cache/cookbooks/role_testing/recipes'
10.168.18.67 Try `dirname --help' for more information.
@rackerbenoit
rackerbenoit / Demo
Last active August 29, 2015 14:16
Consul Events
Consul must first be installed and configured using the Getting Started guide on consul.io
There are also other checks that I had to do on my own including health checks and registering services before
this was up and running properly. I initially started to use Atlas, a nice UI interface, to test and show stats
but the team decided against that method for now.
All these represent AWS EC2 node instances
Run on the server node:
[root@ip-10-168-16-98 pearson]# consul agent -server -bootstrap-expect 1 -data-dir /tmp/consul -node=server-boss -bind=10.168.16.98
You should see this message from the server node:
I added this:
export ATLAS_TOKEN=FF
#
# An x86-32 assembly program that echos one character
#
# declare external functions
.extern getchar # get one character from the console
.extern putchar # write one character to the console
# declare main as global
.global main