Skip to content

Instantly share code, notes, and snippets.

View h8rt3rmin8r's full-sized avatar

h8rt3rmin8r h8rt3rmin8r

View GitHub Profile
@AgainPsychoX
AgainPsychoX / .ps1
Last active October 8, 2024 13:54
Sorting the same way Windows Explorer does
$array = @('1a2a5773', '0fe68296', '01b7f045')
$expected = @('0fe68296', '01b7f045', '1a2a5773')
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Write-Host 'Bad:' # from https://stackoverflow.com/a/5429048/4880243
$array | Sort-Object { [regex]::Replace($_, '\d+', { $args[0].Value.PadLeft(20) }) }
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
@mjdargen
mjdargen / retrieve_nasdaq_securities.py
Last active August 13, 2024 19:44
Retrieves NASDAQ listed securities from NASDAQ ftp server updated nightly.
# http://www.nasdaqtrader.com/trader.aspx?id=symboldirdefs
# NASDAQ-Listed Securities
# File Name: nasdaqlisted.txt
# FTP Directory: ftp://ftp.nasdaqtrader.com/symboldirectory
# Field Name Definition
# Symbol The one to four or five character identifier for each
# NASDAQ-listed security.
# Security Name Company issuing the security.
# Market Category The category assigned to the issue by NASDAQ based on
@limitedeternity
limitedeternity / BruteZIP.py
Created July 28, 2020 22:23
Zip file bruteforce utility
import argparse
import os
import shutil
import tempfile
from zipfile import ZipInfo, ZipFile
parser = argparse.ArgumentParser(description="Unzips a password protected .zip by performing a brute-force attack "
"using either a word list, password list or a dictionary.",
usage="BruteZIP.py -z zip.zip -d dict.txt")
parser.add_argument("-z", "--zip", metavar="", required=True, help="Path to the .zip file.")
@ernestkamara
ernestkamara / AdbCommands
Created June 26, 2018 08:42 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@reg2k
reg2k / Fallout 4 All Console Commands.txt
Created March 4, 2018 16:29
Dump of all Fallout 4 console commands (with description)
-----------------------------------------------------------------------------------------
ID Full Name Short Name Description
-----------------------------------------------------------------------------------------
256: Show TST Show global scripts and variables.
257: ShowVars SV Show variables on object. You can optionally specified a papyrus variable or script to filter with [player->sv]
258: ShowGlobalVars SGLV Show all global variables.
259: ShowQuestVars SQV Show quest variables. You can optionally specified a papyrus variable or script to filter with [svq QuestID]
260: ShowQuests SQ List quests.
261: ShowQuestAliases Show quest aliases. [ShowQuestAliases QuestID]
262:
@qti3e
qti3e / README.md
Last active October 31, 2024 00:27
List of file signatures and mime types based on file extensions
@kevinadi
kevinadi / mongodb-ssl.sh
Last active September 20, 2024 10:10
Script to create self-signed CA certificates, server certificates, and client certificates for testing MongoDB with SSL
#!/bin/sh
# Generate self signed root CA cert
openssl req -nodes -x509 -newkey rsa:2048 -keyout ca.key -out ca.crt -subj "/C=AU/ST=NSW/L=Sydney/O=MongoDB/OU=root/CN=`hostname -f`/[email protected]"
# Generate server cert to be signed
openssl req -nodes -newkey rsa:2048 -keyout server.key -out server.csr -subj "/C=AU/ST=NSW/L=Sydney/O=MongoDB/OU=server/CN=`hostname -f`/[email protected]"
# Sign the server cert
@alirobe
alirobe / reclaimWindows10.ps1
Last active November 15, 2024 12:08
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@meskarune
meskarune / speech2text.sh
Created September 18, 2015 17:09
speech to text bash script using google's voice recognition api
#!/bin/bash
#http://blog.oscarliang.net/raspberry-pi-voice-recognition-works-like-siri/
echo “Recording… Press Ctrl+C to Stop.”
arecord -D “plughw:1,0” -q -f cd -t wav | ffmpeg -loglevel panic -y -i – -ar 16000 -acodec flac file.flac > /dev/null 2>&1
echo “Processing…”
wget -q -U “Mozilla/5.0” –post-file file.flac –header “Content-Type: audio/x-flac; rate=16000” -O – “http://www.google.com/speech-api/v1/recognize?lang=en-us&client=chromium” | cut -d” -f12 >stt.txt
echo -n “You Said: ”
@janikvonrotz
janikvonrotz / Convert-DirectoryToJson.ps1
Last active February 21, 2024 21:28
Convert-DirectoryToJson #PowerShell #JSON
function Get-RandomHexString {
param($count)
$hex = '012345679ABCDEF'.ToCharArray()
$array = foreach($number in 1..$count ){ $hex | Get-Random}
return (($array) -join "").ToString().ToLower()
}
function Get-WikiType{
param($file)