Skip to content

Instantly share code, notes, and snippets.

@AndrewFarley
AndrewFarley / generate-random-1gb-csv.py
Last active March 28, 2024 14:27
This simple Python file generates a random massive CSV file efficiently taking almost no RAM while doing so streaming data into your CSV file. I've pre-done the calculation of the rows/columns to the file-size, so you can easily add or remove zeroes from "rows" variable to increase or decrease the size of the file generated
import csv
import random
# 1000000 and 52 == roughly 1GB (WARNING TAKES a while, 30s+)
rows = 1000000
columns = 52
print_after_rows = 100000
def generate_random_row(col):
a = []
@injcristianrojas
injcristianrojas / cybersecurity_feeds.md
Last active March 28, 2024 14:26
RSS/Atom feeds for your Cybersecurity needs
@ShadowJonathan
ShadowJonathan / haproxy.cfg
Last active March 28, 2024 14:26
A reverse proxy daisy chain config that buffers fediverse traffic
# Place this after your default configuration
frontend fedi_fe
mode http
# this is the address that haproxy will listen on,
# when doing this local loopback, its recommended to set to localhost (127.0.0.1)
bind 127.0.0.1:28080
default_backend fedi_fe
@jonlabelle
jonlabelle / windows_to_unix_command_cheat_sheet.md
Last active March 28, 2024 14:26
Windows to UNIX Command Cheat Sheet

Windows to UNIX Command Cheat Sheet

Windows PowerShell has several transition aliases that allow UNIX and CMD users to use familiar command names in Windows PowerShell. The most common aliases are shown in the table below, along with the Windows PowerShell command behind the alias and the standard Windows PowerShell alias if one exists.

CMD Command UNIX Command PowerShell Command PowerShell Alias
dir ls Get-ChildItem gci
@momota
momota / generate_L_size_csv.py
Last active March 28, 2024 14:27
Generate a large size of CSV file was filled random values. This script generates around 250MB size of the file. You can adjust two parameters `row` and `col` to generate the file which has desirable size.
import csv
import random
# 1000000 and 52 == roughly 1GB (WARNING TAKES a while, 30s+)
rows = 1000000
columns = 52
def generate_random_row(col):
a = []
l = [i]
@Aberosh
Aberosh / PoBs.txt
Created March 28, 2024 14:26 — forked from Haloplasm/PoBs.txt
Haloplasm and Seik's PoBs
----------------------------------------------
3.24 PoBs [Always re-pull PoBs right before league start to have the most updated version]
----------------------------------------------
Aurabot:
https://pobb.in/uZq4nPss9Gam
Inquitor Spark carry:
https://pobb.in/Gogljo1VpVAC
Inquisitor Storm Brand carry:

PREREQUISITES

  • A linux machine with govc installed and verified via "govc ls", terraform, aws cli with credentials
  • The usual., admin rights in vSphere
  • vSphere environment should have a resource pool
  • A folder named "Templates" in vSphere
  • A folder to host all the virtual machines for the PowerFlex4.5 cluster
  • 20 IP addresses reserved as static in vSphere network for the PowerFlex4.5 cluster in vSphere
  • A content library populated with the downloaded OVAs for PMFP platform from Dell Support site (pfmp-k8s-153L-20230809 for K8s nodes and PFMP2-4.5.0-1189 for the Installer VM)

DEPLOY POWERFLEX 4.5 IN A VSPHERE DEMO ENVIRONMENT

@tomdaley92
tomdaley92 / README.md
Last active March 28, 2024 14:24
Proxmox - Email Alerts Setup (gmail)

Proxmox - Email Alerts Setup (gmail)

  1. SSH into proxmox node and become root user. Run the following commands to download extra software dependencies we'll need.

    apt update
    apt install -y libsasl2-modules mailutils
  2. Enable 2FA for the gmail account that will be used by going to security settings

@OrionReed
OrionReed / DOM3D.js
Last active March 28, 2024 14:24
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@cassidoo
cassidoo / base-css.md
Created May 4, 2022 06:37
Base CSS for a plain HTML document

If you don't want to deal with styling a mostly text-based HTML document, plop these lines in and it'll look good:

html {
  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  font-size: 1.3em;
  max-width: 40rem;
  padding: 2rem;
  margin: auto;
 line-height: 1.5rem;