Skip to content

Instantly share code, notes, and snippets.

View valer-cara's full-sized avatar
📡
stay tuned

Valer Cara valer-cara

📡
stay tuned
View GitHub Profile
@valer-cara
valer-cara / stuff.md
Created March 26, 2019 23:09
good stuff about compilers & all
package main
import (
"bytes"
"fmt"
"io"
"math/big"
)
type BadRand struct {
@valer-cara
valer-cara / memory_layout.md
Created September 2, 2018 16:16 — forked from CMCDragonkai/memory_layout.md
Linux: Understanding the Memory Layout of Linux Executables

Understanding the Memory Layout of Linux Executables

Required tools for playing around with memory:

  • hexdump
  • objdump
  • readelf
  • xxd
  • gcore
@valer-cara
valer-cara / multi-broker-tunnel.sh
Created July 31, 2018 13:10
Kafka on kubernetes: portforward & dnat to all brokers for remote access
#!/bin/bash
# This is a bit hardcoded, but it's meant as a proof of concept.
# used in kubectl get pods when targeting kafka broker pods
KARGS="-n kafka -l release=kafka,app=kafka"
# used in kubectl port-forward (setting the namespace, can be omitted)
KPORTFWD_ARGS="-n kafka"
# port on broker pods to forward
DPORT=9092
### Keybase proof
I hereby claim:
* I am valer-cara on github.
* I am valer (https://keybase.io/valer) on keybase.
* I have a public key ASCDzKVVKFFiME-cyDK9a4peRt0LmzPvZ5KwBiisfqH0fQo
To claim this, I am signing this object:
package main
import "fmt"
import "time"
func main() {
valve := make(chan int, 4)
for {
select {
#!/usr/bin/env ruby
require 'net/http'
require 'json'
require 'uri'
# Get token at https://api.slack.com/custom-integrations/legacy-tokens
@token = ''
package main
import (
"bytes"
"flag"
"io/ioutil"
"log"
"net"
"time"
)