View backup-home
This file contains 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 | |
# | |
# Author: Lyndell | |
# URL: http://www.Lyndell.US/ | |
# gist: https://gist.github.com/6f864b63759153eee197.git | |
# | |
# | |
# | |
# Quick script to backup the home directory in \*nix environment to other servers. | |
# |
View du-logs.sh
This file contains 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 | |
# | |
# Example output: | |
# | |
# ```bash | |
# root@server [~]# df -h /usr | |
# Filesystem Size Used Avail Use% Mounted on | |
# /dev/sda3 7.8G 7.4G 112K 100% /usr | |
# root@server [~]# | |
# root@server [~]# cd /usr/local/ |
View fping.sh
This file contains 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 -x | |
# | |
# Copyright (c) 2015 Lyndell Rottmann | |
# | |
# Debug mode on/off: (default off) | |
set +x | |
if [ -z "$@" ];then | |
echo "I can haz IPs?" |
View rmkey.sh
This file contains 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 | |
# | |
# Name: rmkey.sh | |
# Desc: Remove an IP's fingerprint from the SSH known_hosts file | |
# URL: https://gist.github.com/lyndell/c2f53d0c3e3c0e37af70 | |
# | |
# Author: Lyndell Rottmann | |
# WWW: http://Lyndell.US | |
# Copyright (c) 2015 Lyndell Rottmann | |
# |
View tarNdate.sh
This file contains 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 -x | |
# | |
# Name: tarNdate | |
# Desc: Wrap up a directory in a tar file with the directy's date. | |
# URL: https://gist.github.com/lyndell/853a2ade7e579f281933 | |
# | |
# Author: Lyndell Rottmann | |
# WWW: http://Lyndell.US | |
# Copyright (c) 2015 Lyndell Rottmann | |
# |
View traceme.sh
This file contains 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 -x | |
trap exit SIGINT | |
while (true) | |
do | |
echo | |
echo | |
curl -D - http://icanhaztrace.com |
View GOTO.php
This file contains 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
<?php | |
header('Content-Type: text/plain'); | |
# GOTO | |
echo "\n\n"; | |
echo "with GOTO:\n"; | |
home: |
View userAgent.php
This file contains 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
<?php | |
header('Content-Type: text/plain'); | |
$browser = $_SERVER['HTTP_USER_AGENT']; | |
echo $browser . "\n\n"; | |
$browserArray = split('/', $browser); | |
print_r($browserArray) . "\n\n"; |
View pathPingLoop.bat
This file contains 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
:: | |
:: | |
:: Name: pathPingLoop.bat | |
:: Desc: Gather network quality information with built-in Windows commands | |
:: URL: https://gist.github.com/lyndell/48a77ccb954046eb8b9a4659bd07f581 | |
:: | |
:: Author: Lyndell Rottmann | |
:: WWW: http://Lyndell.US | |
:: Copyright (c) 2016 Lyndell Rottmann | |
:: |
View pingLoop.bat
This file contains 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
:: | |
:: | |
:: Name: PingLoop.bat | |
:: Desc: Repeatedly run a 100-count ping. | |
:: URL: https://gist.github.com/lyndell/9b7b9827a8c45ca59a5e2579dbeca5bb | |
:: | |
:: Author: Lyndell Rottmann | |
:: WWW: http://Lyndell.US | |
:: Copyright (c) 2016 Lyndell Rottmann | |
:: |
OlderNewer