Skip to content

Instantly share code, notes, and snippets.

View carroarmato0's full-sized avatar

Christophe Vanlancker carroarmato0

View GitHub Profile
2022-06-29 12:38:03 [▶] role ARN for the current session is "arn:aws:<*redacted*>"
2022-06-29 12:38:04 [▶] cluster = &types.Cluster{Arn:(*string)(0xc000790c10), CertificateAuthority:(*types.Certificate)(0xc000790d20), ClientRequestToken:(*string)(nil), ConnectorConfig:(*types.ConnectorConfigResponse)(nil), CreatedAt:time.Date(2022, time.June, 28, 14, 30, 53, 468000000, time.UTC), EncryptionConfig:[]types.EncryptionConfig(nil), Endpoint:(*string)(0xc000790cd0), Identity:(*types.Identity)(0xc000790cf0), KubernetesNetworkConfig:(*types.KubernetesNetworkConfigResponse)(0xc0007e9bf0), Logging:(*types.Logging)(0xc000807200), Name:(*string)(0xc000790cc0), PlatformVersion:(*string)(0xc000790c80), ResourcesVpcConfig:(*types.VpcConfigResponse)(0xc000c20150), RoleArn:(*string)(0xc000790ce0), Status:"ACTIVE", Tags:map[string]string{"Name":"eksctl-cvan-elb-test3-cluster/ControlPlane", "alpha.eksctl.io/cluster-name":"cvan-elb-test3", "alpha.eksctl.io/cluster-oidc-enabled":"false", "alpha.eksctl.io/eksctl-version":"0.103.
### Keybase proof
I hereby claim:
* I am Carroarmato0 on github.
* I am carroarmato0 (https://keybase.io/carroarmato0) on keybase.
* I have a public key whose fingerprint is F2C7 6CC1 FC3D FB0F BFFF 6069 9763 39A3 D997 163C
To claim this, I am signing this object:
@carroarmato0
carroarmato0 / hfsc-shape.sh
Created August 14, 2017 10:23 — forked from eqhmcow/hfsc-shape.sh
HFSC - linux traffic shaping's best kept secret
#!/bin/bash
# As the "bufferbloat" folks have recently re-discovered and/or more widely
# publicized, congestion avoidance algorithms (such as those found in TCP) do
# a great job of allowing network endpoints to negotiate transfer rates that
# maximize a link's bandwidth usage without unduly penalizing any particular
# stream. This allows bulk transfer streams to use the maximum available
# bandwidth without affecting the latency of non-bulk (e.g. interactive)
# streams.
root@phoebe ~ # telegraf-lxd-stats
www: {map[network:map[eth0:map[state:up type:broadcast addresses:[map[family:inet address:10.251.120.100 netmask:24 scope:global] map[family:inet6 address:fd39:f6dc:811:6b78:216:3eff:fefa:ccd2 netmask:64 scope:global] map[netmask:64 scope:link family:inet6 address:fe80::216:3eff:fefa:ccd2]] counters:map[bytes_received:%!s(float64=7.1695212e+07) bytes_sent:%!s(float64=1.052622673e+09) packets_received:%!s(float64=52995) packets_sent:%!s(float64=57766)] hwaddr:00:16:3e:fa:cc:d2 host_name:vethG7Q06F mtu:%!s(float64=1500)] lo:map[addresses:[map[family:inet address:127.0.0.1 netmask:8 scope:local] map[family:inet6 address:::1 netmask:128 scope:local]] counters:map[bytes_received:%!s(float64=65213) bytes_sent:%!s(float64=65213) packets_received:%!s(float64=18) packets_sent:%!s(float64=18)] hwaddr: host_name: mtu:%!s(float64=65536) state:up type:loopback]] pid:%!s(float64=22471) processes:%!s(float64=23) status:Running status_code:%!s(float64=103) disk:map[root:map[usage:%!s(float
root@phoebe ~ # curl -s --unix-socket /var/lib/lxd/unix.socket http:/1.0/containers/mysql/state | jq
{
"type": "sync",
"status": "Success",
"status_code": 200,
"metadata": {
"status": "Stopped",
"status_code": 102,
"disk": null,
"memory": {
@carroarmato0
carroarmato0 / gist:08dcead3b199ba005640
Created March 17, 2015 09:40
intel-microcode update
[carroarmato0:~/Work/Vagrant/VMwareShit] 25s $ dmesg | grep microcode
[ 1.333779] microcode: CPU0 sig=0x306a9, pf=0x10, revision=0x12
[ 1.333783] microcode: CPU1 sig=0x306a9, pf=0x10, revision=0x12
[ 1.333791] microcode: CPU2 sig=0x306a9, pf=0x10, revision=0x12
[ 1.333799] microcode: CPU3 sig=0x306a9, pf=0x10, revision=0x12
[ 1.333806] microcode: CPU4 sig=0x306a9, pf=0x10, revision=0x12
[ 1.333813] microcode: CPU5 sig=0x306a9, pf=0x10, revision=0x12
[ 1.333822] microcode: CPU6 sig=0x306a9, pf=0x10, revision=0x12
[ 1.333830] microcode: CPU7 sig=0x306a9, pf=0x10, revision=0x12
[ 1.333882] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
@carroarmato0
carroarmato0 / Result Storage01
Created January 28, 2015 07:11
Hiera should not return
[carroarmato0:~/Work/Vagrant/Gluster] master(+21/-10) 50s 1 ± vagrant provision
==> storage01: Running provisioner: shell...
storage01: Running: inline script
==> storage01: Running provisioner: puppet...
==> storage01: Running Puppet with site.pp...
==> storage01: Debug: Runtime environment: ruby_version=1.8.7, puppet_version=3.7.3, run_mode=user
==> storage01: Info: Loading facts
==> storage01: Debug: Loading facts from /tmp/vagrant-puppet/modules-012267475b91075b2257330d2551685a/stdlib/lib/facter/pe_version.rb
==> storage01: Debug: Loading facts from /tmp/vagrant-puppet/modules-012267475b91075b2257330d2551685a/stdlib/lib/facter/root_home.rb
==> storage01: Debug: Loading facts from /tmp/vagrant-puppet/modules-012267475b91075b2257330d2551685a/stdlib/lib/facter/facter_dot_d.rb
@carroarmato0
carroarmato0 / keybase.md
Created June 25, 2014 11:01
Keybase Identity Proof

Keybase proof

I hereby claim:

  • I am carroarmato0 on github.
  • I am carroarmato0 (https://keybase.io/carroarmato0) on keybase.
  • I have a public key whose fingerprint is 60F2 26C5 0993 D967 5BE8 3EEF 3FBA AB78 6B62 7D79

To claim this, I am signing this object:

Arch: noarch
Buildhost: **************
Checksum: b237feb307e4a3bf53d131048dd543d0f8b356f8b29f56bc076e095a2bc9f354
Checksumtype: sha256
Description: no description given
Epoch: 1
Filename: some-package-1.0-504.noarch.rpm
License: unknown
Name: some-package
Provides: some-package = 1.0-504-1
@carroarmato0
carroarmato0 / IP_regex
Created February 4, 2014 14:27
IP regex matching madness Puppet
$parents = $::ipaddress ? {
/^172.16.2.([^1]{1}|[0-9]{2,3})/ => 'some.example.org',
/^172.16.3.([^1]{1}|[0-9]{2,3})/ => 'random.example.org',
/^172.16.4.([^1]{1}|[0-9]{2,3})/ => 'machines.example.org',
/^172.16.5.([^1]{1}|[0-9]{2,3})/ => 'on.example.org',
/^192.168.100/