Skip to content

Instantly share code, notes, and snippets.

@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active May 4, 2024 06:02
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@dsetareh
dsetareh / multisrsran.md
Last active May 4, 2024 05:59
How to run multiple srsRAN + zmq environments on one machine

How to run multiple srsRAN + zmq environments on one machine

NOTE: ue/enb/epc.conf should already be setup for normal single environment srsRAN+zmq also this still has issues

generate namespaces

ip netns add ue1
ip netns add ue2
@KtanPatel
KtanPatel / production-nodejs-mongodb-server-setup-ubuntu-20.04.sh
Last active May 4, 2024 05:53
Setup Node.js + MongoDB + PM2 Production Server on Ubuntu 20.04
#!/usr/bin/env bash
echo "
----------------------
NODE & NPM
----------------------
"
# add nodejs LTS ppa (personal package archive) from nodesource
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
@ihsangan
ihsangan / index.js
Last active May 4, 2024 05:46
Send email from Workers with MailChannel API
async function readRequestBody(request) {
const { headers } = request;
const contentType = headers.get('content-type') || '';
if (contentType.includes('application/json')) {
return JSON.stringify(await request.json());
} else if (contentType.includes('form')) {
const formData = await request.formData();
const body = {};
for (const entry of formData.entries()) {
body[entry[0]] = entry[1];
@Klerith
Klerith / client-gateway.ingress.yml
Created March 20, 2024 15:03
Ingress Ymls - Client Gateway y WebHook
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: tienda-ingress
spec:
rules:
- http:
paths:
- path: /*
pathType: ImplementationSpecific
@Klerith
Klerith / K8s.README.md
Last active May 4, 2024 05:40
Comandos que utilizaremos para configurar Kubernetes.

Helm commands

  • Crear configuración helm create <nombre>
  • Aplicar configuración inicial: helm install <nombre> .
  • Aplicar actualizaciones: helm upgrade <nombre> .

K8s commands

  • Obtener pods, deployments y services: kubectl get <pods | deployments | services>
  • Revisar todos pods: kubectl describe pods
@Klerith
Klerith / cloudbuild.yml
Last active May 4, 2024 05:38
cloudbuild.yml con secretos
steps:
- name: 'gcr.io/cloud-builders/docker'
entrypoint: 'bash'
args:
- -c
- |
docker build -t XXXXXX-docker.pkg.dev/project/image-registry/image-name -f dockerfile.prod --platform=linux/amd64 --build-arg ORDERS_DATABASE_URL=$$DATABASE_URL .
secretEnv: ['DATABASE_URL']
- name: 'gcr.io/cloud-builders/docker'
@Klerith
Klerith / cloudbuild.yml
Last active May 4, 2024 05:36
Google Cloud - Build steps
steps:
- name: "gcr.io/cloud-builders/docker"
args:
[
"build",
"-t",
"XXXXX-docker.pkg.dev/project-name/registry/image-name",
"-f",
"dockerfile.prod",
"--platform=linux/amd64",
@Klerith
Klerith / README.md
Created March 6, 2024 16:41
Pasos para configurar y crear sub-módulos en Git y Github

Pasos para crear los Git Submodules

  1. Crear un nuevo repositorio en GitHub
  2. Clonar el repositorio en la máquina local
  3. Añadir el submodule, donde repository_url es la url del repositorio y directory_name es el nombre de la carpeta donde quieres que se guarde el sub-módulo (no debe de existir en el proyecto)
git submodule add <repository_url> <directory_name>
  1. Añadir los cambios al repositorio (git add, git commit, git push)
@Fatimas1997
Fatimas1997 / intercept-HTTP-requests-from-Flutter-apps.md
Created October 9, 2023 21:31
How to intercept HTTP traffic from a Flutter application with Burp (Android and iOS)

Intercepting traffic on Android and iOS Flutter applications

I recently stumbled upon an application developed with Flutter, and since it was my first time seeing it, I surprisingly couldn't intercept its requests. After some digging on google, I created this tutorial with the steps that personally worked for me and I wanted to share them in hope to help someone else. Note that the applications that I tested didn't have certificate pinning implemented. I'll update this file once I get to test an application that has it (if I'll be able to bypass it 😃 ).
To simplify the explanation I refer to the machine that hosts Burp as Kali, but you can use whatever linux machine you want.

Android:

There are 2 ways to intercept HTTP connections from a Flutter application installed on an Android device (I'm sure there are more but these are the ones I know). Intercepting requests by changing the proxy settings of the device, through the classic settings of Android, doesn't work in this case, since Flutter applic