This file contains 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
Frameworks and libs | |
------------------- | |
Spring boot (duh) | |
Resilience4j https://github.com/resilience4j/resilience4j | |
Picocli - https://picocli.info | |
Jackson - https://github.com/FasterXML/jackson | |
Zipkin | |
SaaS offerings | |
-------------- |
This file contains 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
# run this on ES master(s) and data nodes | |
# no need to install on the so call 'client' nodes | |
# assuming ubuntu 16.04 and up | |
# assuming that curl, gnupg2, sudo and systemctl are already installed and configured (default for ubuntu) | |
# config | |
NR_LICENSE_KEY="YOUR LICENSE KEY HERE" | |
ES_ENV="prod" | |
ES_NAME="my-es-cluster" | |
ES_USERNAME="" |
This file contains 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
FROM ubuntu:20.04 | |
# Set TZ to Asia/Jerusalem | |
# For valid combinations, run 'dpkg-reconfigure -f noninteractive tzdata' | |
RUN export DEBIAN_FRONTEND=noninteractive \ | |
&& export DEBCONF_NONINTERACTIVE_SEEN=true \ | |
&& echo 'tzdata tzdata/Areas select Asia' | debconf-set-selections \ | |
&& echo 'tzdata tzdata/Zones/Asia select Jerusalem' | debconf-set-selections \ | |
&& apt-get update -y \ | |
&& apt-get install -y --no-install-recommends tzdata |
This file has been truncated, but you can view the full file.
This file contains 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
2020/04/18 02:15:47 [INFO] Terraform version: 0.12.24 | |
2020/04/18 02:15:47 [INFO] Go runtime version: go1.12.13 | |
2020/04/18 02:15:47 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply", "-auto-approve", "-target=module.security_groups", "-target=module.network_server", "-target=module.installation_server", "-target=module.haproxy_masters", "-target=module.haproxy_workers", "-target=module.master_1", "-target=module.master_2", "-target=module.master_3", "-target=null_resource.nameserver_configuration"} | |
2020/04/18 02:15:47 [DEBUG] Attempting to open CLI config file: /root/.terraformrc | |
2020/04/18 02:15:47 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2020/04/18 02:15:47 [DEBUG] checking for credentials in "/root/.terraform.d/plugins" | |
2020/04/18 02:15:47 [INFO] CLI command args: []string{"apply", "-auto-approve", "-target=module.security_groups", "-target=module.network_server", "-target=module.installation_server", "-target=module.haproxy_masters", "-target=module.haproxy_workers", "-targe |
This file contains 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
require 'ostruct' | |
class SomeClass | |
def run( filename ) | |
File.open filename, 'r' do | f | | |
puts f.read | |
end | |
end | |
end |
This file contains 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
class Subscription | |
def warning_message | |
<<~HEREDOC | |
Subscription expiring soon! | |
Your free trial will expire in #{days_until_expiration} days. | |
Please update your billing information. | |
HEREDOC | |
end | |
end |
This file contains 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/env bash | |
GEM_NAME='pixie' | |
# | |
# Generic stuff | |
# | |
function fail { | |
local MESSAGE=${1} |
This file contains 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
interface=eth1 | |
bind-interfaces | |
domain=pxe.local | |
dhcp-range=eth1,192.168.100.51,192.168.100.55,255.255.255.0,8h | |
dhcp-option=3,192.168.100.2 # gateway | |
dhcp-option=6,192.168.100.2 # dns | |
enable-tftp | |
tftp-root=/srv/tftp | |
dhcp-vendorclass=BIOS,PXEClient:Arch:00000 | |
dhcp-vendorclass=UEFI32,PXEClient:Arch:00006 |
This file contains 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/env bash | |
PROGRAM_HOME=$(realpath ${0} 2>/dev/null || cd "$(dirname "${0}")" ; pwd -P)/.. | |
RUNTIME_TAG=pixie-runtime:1.0 | |
function run_script { | |
CUT_LINE=$(cat ${0} | grep -n '#! dockerise ' | tail -1 | awk -F ':' '{print $1}') | |
tail +${CUT_LINE} ${0} | tail -n +2 | \ | |
docker run --rm -i \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ |
This file contains 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
r = %r{^/user/(?<user_id>.*)/login} | |
r.match '/user/1234/login' # => #<MatchData "/user/1234/login" user_id:"1234"> |
NewerOlder