Some portions of this config are taken from Donovan Baarda aka dbaarda post on the Home Assistant forums. Check out dbaarda's github here as well.
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 | |
# 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 |
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
Just a demo payload that utilizes 'living off the land'. |
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
""" | |
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.
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
console=serial0,115200 console=tty1 root=PARTUUID=6520cfbc-02 rootfstype=ext4 fsck.repair=yes rootwait splash plymouth.ignore-serial-consoles |
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 | |
# 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 |
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
<# | |
.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). |
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
# 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 |
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
/* | |
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) |
NewerOlder