Skip to content

Instantly share code, notes, and snippets.

@rtulke
rtulke / VIM_deutsch.md
Created September 15, 2024 16:57
VIM Shortcuts Deutsch/German

VIM Quick Reference Card

VIM SCHNELL ÜBERSICHT

| --- | --- | | Grundlegende Bewegungen | | | h l k j | Zeichen links, rechts; Zeile hoch, runter | | b w | Wort links, rechts | | ge e | Wortende links, rechts | | { } | Anfang vorhergehender, n ächster Absatz |

Overview

This is an investigation into our susceptibility to Slow HTTP Attacks. These attacks take advantage of how typical web servers process requests and employ several strategies to achieve the same result. By keeping connections open longer than normal, they thereby prevent new connections from being opened and the server will either hang or return 503.

The question is less about whether we are vulnerable, but rather to what extent. Any server can be DoS’d, it’s just a matter of how easy it is to execute.

Articles

@rtulke
rtulke / README.md
Created July 20, 2024 15:06 — forked from aidos-dev/README.md
How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

Step 1.

Open your terminal.

In the root directory run the command:

sudo nano /etc/bluetooth/main.conf
@rtulke
rtulke / colors.py
Created June 29, 2024 11:27 — forked from rene-d/colors.py
ANSI color codes in Python
# SGR color constants
# rene-d 2018
class Colors:
""" ANSI color codes """
BLACK = "\033[0;30m"
RED = "\033[0;31m"
GREEN = "\033[0;32m"
BROWN = "\033[0;33m"
BLUE = "\033[0;34m"
@rtulke
rtulke / Disable-WindowsHello.ps1
Created June 17, 2024 16:37 — forked from d4rkeagle65/Disable-WindowsHello.ps1
Small script to disable Windows Hello Pin and Biometrics. This will disable the prompt the user to set one up, and will remove any existing pin/biometrics already set. Reboot required after running.
Set-ItemProperty HKLM:\SOFTWARE\Policies\Microsoft\Windows\System -Name 'AllowDomainPINLogon' -Value 0
Set-ItemProperty HKLM:\SOFTWARE\Microsoft\PolicyManager\default\Settings\AllowSignInOptions -Name 'value' -Value 0
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\' -Name 'Biometrics' -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Biometrics' -Name 'Enabled' -Value 0 -PropertyType Dword -Force
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\' -Name 'PassportforWork' -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\PassportforWork' -Name 'Enabled' -Value 0 -PropertyType Dword -Force
Start-Process cmd -ArgumentList '/s,/c,takeown /f C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\NGC /r /d y & icacls C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\NGC /grant administrators:F /t & RD /S /Q C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc & MD C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc & icacls C:\Wi
@rtulke
rtulke / port-knock.py
Created March 16, 2024 12:20 — forked from rootsploit/port-knock.py
Python Script to perform Port Knocking
#!/usr/bin/python3
import socket
import itertools
import sys
import time
import argparse
class Knockit(object):
def __init__(self, args: list):
@rtulke
rtulke / ansible-macos-homebrew-packages.yml
Created December 15, 2023 10:47 — forked from mrlesmithjr/ansible-macos-homebrew-packages.yml
Install MacOS Homebrew Packages With Ansible
---
- name: Install MacOS Packages
hosts: localhost
become: false
vars:
brew_cask_packages:
- atom
- docker
- dropbox
- firefox
@rtulke
rtulke / create-service.sh
Created September 18, 2023 23:12 — forked from ahmedsadman/create-service.sh
Bash script to create systemd service
#!/usr/bin/bash
##
## Creates Service file based on JSON data
##
# Sample JSON file:
# {
# "service_name": "test_service",
# "description": "Netcore dev server",
import numpy
from music21 import instrument, note, stream, chord
import sys
import numpy as np
def convert_to_float(frac_str):
try:
return float(frac_str)
except ValueError:
num, denom = frac_str.split('/')
import glob
from music21 import converter, instrument, note, chord, interval, pitch
import sys
from tqdm import tqdm
def valid_note(note_number):
return -12*5 <= note_number <= 12*5
def first_note(notes_to_parse):
for element in notes_to_parse: