Skip to content

Instantly share code, notes, and snippets.

View navarrothiago's full-sized avatar
🎯
Focusing

Thiago Navarro navarrothiago

🎯
Focusing
View GitHub Profile
@grahamwhaley
grahamwhaley / sdrsharp.png
Last active June 10, 2025 22:33
Running SDR# under Linux/wine
sdrsharp.png
@williamcaban
williamcaban / iperf-pods.md
Created August 2, 2020 22:22
Using client/server iperf pods

Using iperf Pods

  • Create namespace or project for running iperf tests:
oc new-project iperf-test
  • Create server Pod
rm -f pod-iperf-server.yaml 
@nyrahul
nyrahul / cdump.sh
Created April 16, 2021 18:55
tcpdump for pod controlled by cilium
#!/bin/bash
# Usage: $0 <pod> [tcpdump-filter]
[[ "$1" == "" ]] && echo "Usage: $0 <pod> [tcpdump-filter]" && exit 1
ep_id=`kubectl get cep -A -o jsonpath="{.items[?(@.metadata.name==\"$1\")].status.id}"`
iface=`cilium endpoint get $ep_id -o jsonpath="{[*].status.networking.interface-name}"`
shift

Topology

+--------+     VLAN 280      +------+
|       0+-------------------+      |
| trex   |     VLAN 290      |      |
|       1+-------------------+      |
+--------+                   |      |
                             |      |
+--------+     VLAN 280      |      |
@shiponcs
shiponcs / remove_dups.cpp
Created February 25, 2023 17:57
Remove All Adjacent Duplicates In String- solve using stack
string removeDuplicates(string toCleanUp) {
std:stack< char > str_stack;
for(char x : toCleanUp) {
if( !str_stack.empty() && x == str_stack.top() ) str_stack.pop();
else str_stack.push( x );
}
string res;
res.reserve(str_stack.size()); // reserve the space so that the concatenation speeds up.
@ayoubzulfiqar
ayoubzulfiqar / folder_structure.md
Created September 5, 2023 06:12
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files