Skip to content

Instantly share code, notes, and snippets.

@gjhenrique
gjhenrique / esco.rb
Last active January 16, 2023 09:19
Craft a HCI_Enhanced_Setup_Synchronous_Connection command to decrease the eSCO call connection
ogf = '0x01' # Opcode Group Field
ocf = '0x003d' # Opcode Command Field
# Change this according to the handle
handle = 266
def binary(data)
data[2..-1].split("").each_slice(2).map { |i| "#{i.join}" }.reverse
end
I0714 20:01:05.565479 1713 initconfiguration.go:117] detected and using CRI socket: unix:///var/run/containerd/containerd.sock
I0714 20:01:05.565598 1713 interface.go:432] Looking for default routes with IPv4 addresses
I0714 20:01:05.565608 1713 interface.go:437] Default route transits interface "ens3"
I0714 20:01:05.565673 1713 interface.go:209] Interface ens3 is up
I0714 20:01:05.565700 1713 interface.go:257] Interface "ens3" has 2 addresses :[192.168.122.206/24 fe80::5054:ff:feba:e812/64].
I0714 20:01:05.565716 1713 interface.go:224] Checking addr 192.168.122.206/24.
I0714 20:01:05.565725 1713 interface.go:231] IP found 192.168.122.206
I0714 20:01:05.565733 1713 interface.go:263] Found valid IPv4 address 192.168.122.206 for interface "ens3".
I0714 20:01:05.565742 1713 interface.go:443] Found active IP 192.168.122.206
I0714 20:01:05.565760 1713 kubelet.go:218] the value of KubeletConfiguration.cgroupDriver is empty; setting it to "systemd"
@gjhenrique
gjhenrique / ephemeral-ec2.tf
Created April 3, 2023 11:16
Create an ec2 into a private subnet and connect to them via SSM
variable "vpc_id" {
type = string
}
variable "subnet_id" {
type = string
}
data "aws_region" "current" {}