Skip to content

Instantly share code, notes, and snippets.

View exec's full-sized avatar
🤙

Dylan Hart exec

🤙
  • Chicago, IL
View GitHub Profile
@exec
exec / config.json
Created May 5, 2024 20:08
example config for 'clerk' - an experiment in GPT-driven IDPS (intrusion detection/prevention software)
{
"file_integrity": {
"enabled": true,
"directories": [
"/etc",
"/bin",
"/sbin",
"/usr/bin",
"/usr/sbin"
],
@exec
exec / discord-token-copy-button.user.js
Last active March 19, 2024 01:59
creates a button to copy your token on discord for browser. use tampermonkey, greasemonkey, etc.
// ==UserScript==
// @name Discord Token Button
// @namespace https://discord.gg/stilwell
// @version 1.3.1
// @description Adds an icon to Discord to retrieve and copy the token.
// @author 295551827779256321
// @match https://discord.com/*
// @grant none
// ==/UserScript==
@exec
exec / python3-env-installer-template.sh
Last active March 12, 2024 06:24
a little python3 environment install script claude 3 made for me i may extend on for projects in the future.
#!/bin/bash
# Function to check if a command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
}
# Function to install Python3 based on the system
install_python3() {
echo "Installing Python3..."
@exec
exec / flak.py
Last active January 15, 2024 04:30
#!/usr/bin/env python
import socket
import threading
import time
import random
import json
import os
import re
from loguru import logger
@exec
exec / .zshrc_rm
Last active June 15, 2016 05:35
zsh rm function, replaces default rm with srm (including daemonizing long delete operations with screen)
function rm () {
if [ -z $1 ] ; then
echo "Error: No file specified\n"
return 1;
else
if [[ -f $1 ]]; then
FILESIZE=$(stat -c%s "$1")
if [[ $FILESIZE -gt 10485760 ]]; then
screen -dmS srm zsh -c "srm -rvzf $1; notify-send \"File-remove operation on file '$1' has completed.\"; beep -f 900 -l 100 -D 50; beep -f 1800 -l 200"
echo "This file-remove operation will take a while, so it's been executed in the background (screen).\n"
@exec
exec / prosody.cfg.lua
Created October 29, 2014 19:05
Some good prosody config ideas
ssl = {
key = "/etc/prosody/certs/domain-private.key";
certificate = "/etc/prosody/certs/domain-cert.crt";
options = { "no_sslv2", "no_sslv3", "no_ticket", "no_compression", "cipher_server_preference" };
ciphers = "kECDH:HIGH:!MEDIUM:!LOW:!NULL:!DSS:!AES128-SHA:!AES128-SHA256:!CAMELLIA128-SHA:!aNULL@STRENGTH";
dhparam = "/etc/prosody/dhparam.pem";
};
c2s_require_encryption = true