Skip to content

Instantly share code, notes, and snippets.

View bryanasdev000's full-sized avatar

Bryan A. S. bryanasdev000

View GitHub Profile
@SwitHak
SwitHak / 20211210-TLP-WHITE_LOG4J.md
Last active April 18, 2024 11:20
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-20 2238 UTC

Security Advisories / Bulletins / vendors Responses linked to Log4Shell (CVE-2021-44228)

Errors, typos, something to say ?

  • If you want to add a link, comment or send it to me
  • Feel free to report any mistake directly below in the comment or in DM on Twitter @SwitHak

Other great resources

  • Royce Williams list sorted by vendors responses Royce List
  • Very detailed list NCSC-NL
  • The list maintained by U.S. Cybersecurity and Infrastructure Security Agency: CISA List
@Bondrake
Bondrake / trim-generations.sh
Last active February 29, 2024 01:10
NixOS script to keep 10 generations or 7 days, whichever is more (configurable, profile is selectable)
#!/usr/bin/env bash
set -euo pipefail
## Defaults
keepGensDef=10; keepDaysDef=7
keepGens=$keepGensDef; keepDays=$keepDaysDef
## Usage
usage () {
printf "Usage:\n\t trim-generations.sh (defaults are: Keep-Gens=$keepGensDef Keep-Days=$keepDaysDef Profile=user)\n\n"
@lightdiscord
lightdiscord / README.md
Last active September 30, 2021 02:06
Troobleshooting of controller hot plugging for steam-run

Every command is done under a nix-shell opened with the following command.

$ nix-shell -p gcc SDL2 steam-run

First thing compile the executable to debug controller hot plugging.

$ gcc ./main.c -o ./main -lSDL2
@alexrios
alexrios / syllabus.md
Last active June 27, 2021 09:40
Go Concorrente

Go Concorrente

Intro

  • Concorrência
  • Scheduler
    • internals (semantics)
  • Deadlocks, Livelocks e starvation
  • O que é CSP?

Nivel 1

@mowings
mowings / README.md
Created April 15, 2021 13:43
Kubernetes PID exhaustion (fork rejected by pids controller in /kubepods...)

Kernel errors like:

kubernetes cgroup: fork rejected by pids controller in /kubepods/burstable/... accompainied by errors creating threads or starting processes on base OS can be caused by the kubepods cgroup pids.max being to low

cat /sys/fs/cgroup/pids/kubepods/pids.max

If this is low, it can be reset by setting kernel.pid_max to a large number (kernel.pid_max=4194304) then restart kubelet. After a bit, kubepods/pids.max should be bumped up to the same number (can take a few minutes)

@krisek
krisek / alert.rules.yml
Last active April 17, 2024 09:34
Prometheus alert rules for node exporter
groups:
- name: node_exporter_alerts
rules:
- alert: Node down
expr: up{job="monitoring-pi"} == 0
for: 2m
labels:
severity: warning
annotations:
title: Node {{ $labels.instance }} is down
@heyarne
heyarne / README.md
Last active January 3, 2024 23:15
Interacting with your Firefox bookmarks and history from the command line

Firefox History and Bookmark Command Line Interface

These scripts use fzf and sqlite to efficiently query your firefox history and bookmarks. This is heavily inspired by a post from the creator of fzf: https://junegunn.kr/2015/04/browsing-chrome-history-with-fzf/. fzf allows you to select multiple items and the results returned will be the URLs.

What Does It Look Like?

asciicast

@FreddieOliveira
FreddieOliveira / docker.md
Last active April 19, 2024 16:36
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@tur1ngb0x
tur1ngb0x / qt-theme-fix.md
Last active August 14, 2023 07:40
Fixing theming issues on QT apps on any desktop environment

Fixing theming issues on QT apps on any desktop environment

Install Breeze package (qt theme, gtk theme, styles, icons)

Arch

sudo pacman -S breeze breeze-gtk

Debian