Skip to content

Instantly share code, notes, and snippets.

View nuvious's full-sized avatar

David Cheeseman nuvious

View GitHub Profile
@nuvious
nuvious / bash_ansi_color.sh
Created May 18, 2024 21:59
Bash Ansi Color Helper Script
#!/bin/bash
# A helper script to define ANSI code and provide 'echo' and 'printf' functions to printf/echo ansi strings
# Usage:
# source bash_ansi_color.sh
# printf_ansi "This is BOLD AND RED\n" $ANSI_TEXT_BOLD_RED
# echo_ansi "Echo applies newlines!" $ANSI_TEXT_UNDERLINE_PURPLE $ANSI_BACKGROUND_YELLOW
# Derrived from AHaymond's README on ANSI color codes
# https://gist.github.com/AHaymond/e96f00ed0ba64a9af419296bf852c5bb
@nuvious
nuvious / % Living Off The Land Payload Demo
Last active July 9, 2023 22:18
Living off the land demo payload.
Just a demo payload that utilizes 'living off the land'.
@nuvious
nuvious / mdsha1.py
Created June 14, 2023 23:22
A meme sha
"""
sha1 and md5 are both known to have collision attacks where an malicious
actor can craft a file with the same hash to inject code or modify
configurations unnoticed. The means integrity checking with only sha1 and
md5 are a bad idea, but good luck to any attacker trying to make a collision
for 2 algorithms at the same time! This is the meme implementation of that
as a lambda function for the lol.
"""
from hashlib import md5, sha1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nuvious
nuvious / README.md
Last active December 25, 2022 01:32
QTPY ESP32 C3 + SparkFun Environmental Combo Breakout - CCS811/BME280 (Qwiic) ESPHome Config
@nuvious
nuvious / cmdline.txt
Created August 10, 2022 12:51
CrowPi L Raspbian Boot Configs for RPi 4
console=serial0,115200 console=tty1 root=PARTUUID=6520cfbc-02 rootfstype=ext4 fsck.repair=yes rootwait splash plymouth.ignore-serial-consoles
@nuvious
nuvious / enable-all.sh
Created July 17, 2022 23:29
LinuxGSM systemd configuraiton template for automatic server launching AND backup/update
#!/bin/bash
# NOTE: Before running this script, edit the templates and change the GAME_SERVER_NAME and
# GAME_SERVER_USER to the Linux gsm appropriate names/scripts. Also rename service
# and timer files to GAME_SERVER_USER(-backup/-update).(service/timer)
sudo cp *.service *.timer /lib/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable GAME_SERVER
sudo systemctl enable GAME_SERVER-backup.timer
@nuvious
nuvious / SleepKill.ps1
Last active November 21, 2021 16:14
A powershell script that kills a named process after a specified sleep interval.
<#
.SYNOPSIS
A script which kills a process by name (ex: vlc.exe) after a specified
delay.
.DESCRIPTION
SleepKill allows a user to define a delay before killing off a process.
An example usage is to kill a video program that's playing a playlist for
someone going to sleep where they may not want it on all night and need
their computer to remain on for other reasons (say an alarm clock app).
@nuvious
nuvious / VLCAlarm.ps1
Last active October 18, 2021 04:18
Alarm powershell script that launches a video with VLC.
# Modify as necessary to point to your vlc installation and alarm video file.
$vlc_path = "C:\Program Files\VideoLAN\VLC\vlc.exe"
$video_path = "Alarm_Video_1080p.mp4"
# Get the desired alarm time.
[datetime]$AlarmTime = Read-Host "Please enter at time to launch alarm; ex 6AM, 8:30AM, etc"
# Calculate the wait in seconds and start the wait.
[datetime]$CurrentTime = Get-Date
[int]$WaitSeconds = ( $AlarmTime - $CurrentTime ).TotalSeconds
@nuvious
nuvious / WT32-SC01_Keypad_Demo.ino
Last active May 1, 2021 04:20
A demo of the TFT_eSPI Keypad Demo on the WT32-SC01 using the Adafruit FT6206 library.
/*
The TFT_eSPI library incorporates an Adafruit_GFX compatible
button handling class, this sketch is based on the Arduin-o-phone
example.
This example diplays a keypad where numbers can be entered and
send to the Serial Monitor window.
The sketch has been tested on the ESP8266 (which supports SPIFFS)