Skip to content

Instantly share code, notes, and snippets.

View Soontao's full-sized avatar
😊
I may be slow to respond.

Theo Sun Soontao

😊
I may be slow to respond.
View GitHub Profile
@yhatt
yhatt / diagrams.md
Last active May 21, 2024 04:31
Marp diagram plugin example (Powered by kroki.io)
marp theme
true
default

Marp diagram plugin example

Powered by kroki.io

@SwitHak
SwitHak / 20211210-TLP-WHITE_LOG4J.md
Last active June 28, 2024 12:07
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
@Soontao
Soontao / rss-reader.yml
Last active May 7, 2022 04:13
RSS stack for docker stack
version: '3.7'
services:
rsshub:
image: theosun/rsshub:latest
restart: always
command: node --max-old-space-size=250 lib/index.js
environment:
NODE_ENV: "production"
LOGGER_LEVEL: "warn"
@Psmths
Psmths / README.md
Last active November 13, 2021 07:48
Creating a Certificate Authority with OpenSSL

Creating a Certificate Authority with OpenSSL

This tutorial will guide you step-by-step to creating a certificate authority using OpenSSL, with a three-tier structure (root, intermediate, application). All key materials are created with ECC.

Staging

The first step is to create the directory in which the CA will reside. As a simple example, we will work out of /root/ca. We will create a directory, /root/ca/db, to store the CA database flat files. Within this directory, three files must be created as follows:

touch /root/ca/db/index.txt
touch /root/ca/db/index.txt.attr 
echo 100000 > /root/ca/db/serial
@doggy8088
doggy8088 / WSLConfig.md
Created July 28, 2020 07:17
WSL 2 的 .wslconfig 設定檔說明
  • 編輯 %UserProfile%\.wslconfig 檔案

    • Command Prompt

      notepad %UserProfile%\.wslconfig
    • Windows PowerShell

@rbnpi
rbnpi / PachabelCanon-RF.rb
Last active March 28, 2022 03:31
Sonic Pi plays Pachabel's Canon. Four versions for 1 or 4 computers. See video on https://youtube.com/rbn1tube
#PachableCanon-RF.rb
#arranged for 1 computer running Sonic-Pi. Use run-file "/path/to/PachableCanon.rb"
#as the file is too long to fit in a Sonic Pi buffer
use_bpm 45
use_synth :blade
with_fx :reverb,room: 0.8 do
a1=[]
b1=[]
a1[0]=[:r,:r,:Fs5,:E5,:D5,:Cs5,:B4,:A4,:B4,:Cs5,:D5,:Cs5,:B4,:A4,:G4,:Fs4,:G4,:E4,:D4,:Fs4,:A4,:G4,:Fs4,:D4,:Fs4,:E4,:D4,:B3,:D4,:A4,:G4,:B4,:A4,:G4,:Fs4,:D4,:E4,:Cs5,:D5,:Fs5,:A5,:A4,:B4,:G4,:A4,:Fs4,:D4,:D5,:D5,:Cs5,:D5,:Cs5,:D5,:D4,:Cs4,:A4,:E4,:Fs4,:D4,:D5,:Cs5,:B4,:Cs5,:Fs5,:A5,:B5,:G5,:Fs5,:E5,:G5,:Fs5,:E5,:D5,:Cs5,:B4,:A4,:G4,:Fs4,:E4,:G4,:Fs4,:E4,:D4,:E4,:Fs4,:G4,:A4,:E4,:A4,:G4,:Fs4,:B4,:A4,:G4,:A4,:G4,:Fs4,:E4,:D4,:B3,:B4,:Cs5,:D5,:Cs5,:B4,:A4,:G4,:Fs4,:E4,:B4,:A4,:B4,:A4,:G4,:Fs4,:Fs5,:E5,:r,:D5,:Fs5,:B5,:A5,:B5,:Cs6,:D6,:D5,:Cs5,:r,:B4,:D5,:D5,:D5,:D5,:G5,:E5,:A5,:A5,:Fs5,:G5,:A5,:Fs5,:G5,:A5,:A4,:B4,:Cs5,:D5,:E5,:Fs5,:G5,:Fs5,:D5,:E5,:Fs5,:Fs4,:G4,:A4,:B4,:A4,:G4,:A4,:Fs4,:G4,:A4,:G4,:B4,:A4,:G4,:Fs4,:E4,:Fs4,:E4,:D4,:E4,:Fs4,:G4,:A4,:B4,:G4,:B4,:A4,:B4,:Cs5,:D5,:A4,:B4,:Cs
@zoilomora
zoilomora / README.md
Last active June 28, 2024 04:59
How to disable cloud-init in Ubuntu

How to disable cloud-init in Ubuntu

Prevent start

  • Create an empty file to prevent the service from starting

      sudo touch /etc/cloud/cloud-init.disabled
    

Uninstall

@regevbr
regevbr / proxy-chain.js
Last active January 17, 2023 01:59
node-http-proxy proxy chain with connect method implemented (+ bonus auth handling)
"use strict";
const http = require('http');
const request = http.request;
const net = require('net');
const httpProxy = require('http-proxy');
let auth = "secret-string";
auth = new Buffer(auth).toString('base64');
auth = "Basic " + auth;
@cecilemuller
cecilemuller / launch.json
Last active June 22, 2024 13:33
Run ts-node in VSCode Debugger
{
"version": "0.2.0",
"configurations": [
{
"name": "Example",
"type": "node",
"request": "launch",
"runtimeExecutable": "node",
"runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"],
@ngot
ngot / multi-thread.js
Last active October 25, 2023 15:27
V8 Thread Demo
start(() => {
while(true)
{
print("a");
sleep(1000);
}
})
while(true)
{