Skip to content

Instantly share code, notes, and snippets.

View marceloneppel's full-sized avatar

Marcelo Henrique Neppel marceloneppel

View GitHub Profile
@marceloneppel
marceloneppel / KIND_Networking.md
Created August 16, 2024 15:05 — forked from developer-guy/KIND_Networking.md
Use KIND to emulate complex network scenarios

Networking scenarios [Linux Only]

KIND runs Kubernetes cluster in Docker, and leverages Docker networking for all the network features: port mapping, IPv6, containers connectivity, etc.

Docker Networking

KIND uses a docker user defined network.

It creates a bridge named kind

@marceloneppel
marceloneppel / compile_mysql.md
Created April 7, 2024 12:42 — forked from jaircuevajunior/compile_mysql.md
Compile MySQL 5.7 from source
  1. Download build-tools
apt-get install build-essential cmake -y
  1. Configure the compiler
cmake \
-DWITH_BOOST=/usr/local/src/mysql-5.7.19/boost/boost_1_59_0 \
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql57 \
@marceloneppel
marceloneppel / readme.md
Created April 7, 2024 12:42 — forked from anjesh/readme.md
mysql source compiling
  • Download mysql source

  • Ran the following cmake command based on the documentation

cmake \
  -DCMAKE_INSTALL_PREFIX=/usr/local/mac-dev-env/mysql-5.7.18 \
  -DCMAKE_CXX_FLAGS="-stdlib=libstdc++" \
  -DDEFAULT_CHARSET=utf8 \
  -DDEFAULT_COLLATION=utf8_general_ci \
@marceloneppel
marceloneppel / numba_polyfit.py
Created March 27, 2024 14:43 — forked from kadereub/numba_polyfit.py
A numba implementation of numpy polfit
# Load relevant libraries
import numpy as np
import numba as nb
import matplotlib.pyplot as plt
# Goal is to implement a numba compatible polyfit (note does not include error handling)
# Define Functions Using Numba
# Idea here is to solve ax = b, using least squares, where a represents our coefficients e.g. x**2, x, constants
@nb.njit
@marceloneppel
marceloneppel / record.go
Created September 23, 2023 11:01 — forked from suapapa/record.go
raw audio recording with portaudio and golang
package main
import (
"encoding/binary"
"fmt"
"os"
"os/signal"
"time"
"github.com/gordonklaus/portaudio"
@marceloneppel
marceloneppel / code_probe.py
Created September 20, 2023 13:32 — forked from EastonLee/code_probe.py
utility that can print context source code on any frame of stack and variables you care against Python inspect
collective_code_location_message = '\n'
def print_dict(dict, verbose=True):
#callerframerecord = inspect.stack()[1] # 0 represents this line
# # 1 represents line at caller
#frame = callerframerecord[0]
#info = inspect.getframeinfo(frame)
#if info.function == 'print_sql_result':
# code_probe('',2)
#else:
# code_probe('', 1)
@marceloneppel
marceloneppel / tcpdump_parser.py
Created September 20, 2023 12:00 — forked from deusebio/tcpdump_parser.py
Parse tcpdump output
import pandas as pd
import re
space_splitter = re.compile("\s+")
regex = re.compile("\s*(.*)\s*>\s*(.*?):\s.*")
def parse_line(line):
try:
elements = space_splitter.split(line)
source_dest = regex.match(" ".join(elements[4:])).groups()
@marceloneppel
marceloneppel / how-to-take-psm-I-scrum-org.md
Created September 17, 2023 14:20 — forked from paulera/how-to-take-psm-I-scrum-org.md
A practical guide to prepare and take the PSM I (Professional Scrum Master 1) certification, from Scrum.org, entirely by yourself (no course required).

How to take the PSM I certification from Scrum.org entirely by yourself

Some people ask me about Scrum.org certifications: what to study, how to apply for the exam and advice for taking it. So I decided to write a guide for those interested in preparing and taking PSM I (Professional Scrum Master) without spending a fortune with training. With discipline, in around a month (or two), you should be ready to take the test.

The advice compiled here came from experienced agile coaches. Worked very well for me and I hope they will also help those who are seeking directions.

Table of Contents

@marceloneppel
marceloneppel / saved_current_url.py
Created September 15, 2023 16:22 — forked from SKaplanOfficial/saved_current_url.py
PyXA script to save the current Safari tab's URL to a "Saved URLs" note
#!/usr/bin/env python
# Test with PyXA 0.1.0
import PyXA
safari = PyXA.Application("Safari")
notes = PyXA.Application("Notes")
# Get info for current Safari tab
current_tab = safari.front_window.current_tab