Skip to content

Instantly share code, notes, and snippets.

View rtulke's full-sized avatar

Robert Tulke rtulke

View GitHub Profile
@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:
@rtulke
rtulke / arp.py
Created December 22, 2020 13:15 — forked from johnty/arp.py
simple OSC-controlled MIDI arpeggiator that takes in tempo, direction, and key. uses mido and pyOSC
#!/usr/bin/env python
"""
Send random notes to the output port.
"""
from __future__ import print_function
import sys
import time
import random
import mido
import threading
@rtulke
rtulke / td3_arp_raw.py
Created December 22, 2020 13:13 — forked from PeteMidi/td3_arp_raw.py
TD-3 arpeggiator in Python 3 using numpy and Mido
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on July 7 2020
@author: Pete Midi
"""
import mido
import numpy as np
@rtulke
rtulke / qunexus_neutron.py
Created December 22, 2020 13:13 — forked from PeteMidi/qunexus_neutron.py
MIDI processing (mido) of QuNexus poly pressure for control of Behringer Neutron wave-morphing
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 7 20:13:16 2019
@author: Pete Midi
"""
# basic code for "Neutron goes HydraSynth: poly pressure wave-morphing special" (https://www.youtube.com/channel/PeteMidi)
import mido