Skip to content

Instantly share code, notes, and snippets.

View bsetmet's full-sized avatar

Bill or Jeremy from BSETMET bsetmet

View GitHub Profile
@bsetmet
bsetmet / donate.php
Last active September 15, 2018 03:44
Html, css, and js example of a donation page to the public address for cryptocurrencies
<!DOCTYPE html>
<html>
<!--
"The MIT License"
Copyrighft 2018 Jeremy D. Gerdes
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
@bsetmet
bsetmet / auto_reload.js
Created September 13, 2018 22:48
assets/auto_reload.js
function reload_page() {
window.location.reload();
}
function reload_page_cache_clear() {
window.location.reload(true);
}
@bsetmet
bsetmet / info.php
Created September 13, 2018 23:02
PHP Example to display 'this' server's external IP Address and the corresponiding DNS Record
<?php /*
"The MIT License"
Copyright 2018 Jeremy D. Gerdes
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
@bsetmet
bsetmet / standard_robocopy_backup.cmd
Last active October 8, 2018 19:07
Simple Windows .cmd backup routine using robocopy, set this to run on login, or with scheduler
echo off
REM ----------------------------------------------------------
REM set the command terminal wondinw size and color
REM ----------------------------------------------------------
mode con: cols=68 lines=15
color b0
for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"
set "YY=%dt:~2,2%" & set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%"
set "HH=%dt:~8,2%" & set "Min=%dt:~10,2%" & set "Sec=%dt:~12,2%"
@bsetmet
bsetmet / RSTUDIO_Version_Launcher.sh
Created May 31, 2019 12:26 — forked from seakintruth/RSTUDIO_Version_Launcher.sh
Rstudio Version Launcher (And R Version installer) for Ubuntu / Debian.
#!/usr/bin/env bash
# failed to perform conditional arithmatic when using #!/bin/sh
# Made available under (CC BY-SA 3.0) https://creativecommons.org/licenses/by-sa/3.0/
# The menu system as modified from https://askubuntu.com/a/257766/957393
# The option_picked function is by Jeremy D. Gerdes seakintruth@gmail.com April 2019
# The install_if_missing is modified from https://stackoverflow.com/a/22592801/1146659
# -------------------------------------------------------------------------------------
# The most recent version of this script can be called by:
# bash <(curl -s https://gist.githubusercontent.com/seakintruth/95d49b6ea316c2b8a6e283e1ee1a3f3a/raw)