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 | |
# Require 1 parameter | |
if [ $# -lt 1 ] || [[ ${#1} -lt 6 ]] || [[ "$1" = *"-h"* ]] ; then | |
echo "MAC lookup tool by njd" | |
echo "Usage: ${0##*/} MAC" | |
echo | |
echo "Dependencies: curl, grep, awk, sed, cut" | |
echo "Automatically downloads http://standards-oui.ieee.org/oui.txt" | |
echo |
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
################################################################################################################# | |
# | |
# Version 1.4 February 2016 | |
# Robert Pearman (WSSMB MVP) | |
# TitleRequired.com | |
# Script to Automated Email Reminders when Users Passwords due to Expire. | |
# | |
# Requires: Windows PowerShell Module for Active Directory | |
# | |
# For assistance and ideas, visit the TechNet Gallery Q&A Page. http://gallery.technet.microsoft.com/Password-Expiry-Email-177c3e27/view/Discussions#content |
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
################################################################################################################# | |
# | |
# Password-Expiration-Notifications v20220823 | |
# Highly Modified fork. https://gist.github.com/meoso/3488ef8e9c77d2beccfd921f991faa64 | |
# | |
# Originally from v1.4 @ https://gallery.technet.microsoft.com/Password-Expiry-Email-177c3e27 | |
# https://windowspoweressentials.com/2017/02/21/powershell-password-reminder-script-updated/ | |
# https://github.com/titlerequired/public | |
# Robert Pearman (WSSMB MVP) | |
# TitleRequired.com |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<bootmark fetch="markdown.md" css="https://obedm503.github.io/bootmark/dist/bootmark.min.css" html="{theme:'flatly',prettifyTheme: 'atelier-estuary-light',favicon:'icon.png'}"></bootmark> | |
</body> |
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
<!DOCTYPE html> <html> <title>Page Title</title> <meta charset="utf-8"> | |
<xmp theme="flatly" style="display:none;" src="somefile.md" toc="true"> | |
Markdown content | |
=== | |
 files and compile it to CSS on your machine. | |
*/ | |
/* ---------------------------------------------------------------------------- | |
* Fonts | |
*/ | |
@import url("//fonts.googleapis.com/css?family=Montserrat:700|Open+Sans:300"); |
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/sh | |
path="/path/to" | |
binary="executable" | |
parameters="--some-params" | |
background=1 | |
logpath="/opt/var/log" | |
case "$1" in | |
start) |
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/sh | |
case "$1" in | |
start) | |
if ( pidof zerotier-one ) | |
then echo "ZeroTier-One is already running." | |
else | |
echo "Starting ZeroTier-One" ; | |
/opt/bin/zerotier-one -d ; | |
echo "$(date) Started ZeroTier-One" >> /opt/var/log/zerotier-one.log ; |
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
#!/opt/bin/bash # Synology (requires bash from entware-ng or optware[-ng]) | |
# #!/bin/bash # Other *nix | |
############# EDIT BLOCK ############## | |
array_ping_list=("25.1.2.3" "25.2.3.4" "25.3.4.5") #only the IP's expected always-on | |
array_network_list=("my.net" "my-other.net") #all your networks independent of IP's | |
log_file=~/check-hamachi.log | |
#### OS dependent config: | |
## Linux: | |
hamachi_service_stop="sudo /etc/init.d/logmein-hamachi stop" |