This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Makes the HTTP request (Sync). | |
/// </summary> | |
/// <param name="path">URL path.</param> | |
/// <param name="method">HTTP method.</param> | |
/// <param name="queryParams">Query parameters.</param> | |
/// <param name="postBody">HTTP body (POST request).</param> | |
/// <param name="headerParams">Header parameters.</param> | |
/// <param name="formParams">Form parameters.</param> | |
/// <param name="fileParams">File parameters.</param> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download YARA (Modify if a different version is needed) | |
wget https://github.com/VirusTotal/yara/archive/refs/tags/v4.1.2.tar.gz | |
tar -zxf yara-4.1.2.tar.gz | |
cd yara-4.1.2 | |
./bootstrap.sh | |
# Prerequisites | |
sudo apt install automake libtool make gcc pkg-config libssl-dev | |
# Build with make |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
absdir=$(realpath "$1") | |
echo $absdir | |
mkdir NSRL_Corp | |
cd NSRL_Corp | |
rm *.zip | |
rm *.ssd | |
curl https://s3.amazonaws.com/docs.nsrl.nist.gov/morealgs/ssdeep_2.10/NSRL_corp.0[0-1][0-9].0.zip -o "NSRL_corp.0#1#2.0.zip" | |
curl https://s3.amazonaws.com/docs.nsrl.nist.gov/morealgs/ssdeep_2.10/NSRL_corp.0[0-1][0-9].5.zip -o "NSRL_corp.0#1#2.5.zip" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Spotify Top X Artists and Songs | |
This script takes data from StreamingHistory[x].json files exported from Spotify | |
and gives the most listened songs and artists based on that data | |
Args: | |
top (int): The length of the most listened artists and songs | |
(default is 10) | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import cache, lru_cache | |
from pynput import keyboard | |
import time | |
stop = False | |
def on_press(key): | |
global stop | |
print(key) | |
if key == keyboard.Key.esc: |
OlderNewer