Skip to content

Instantly share code, notes, and snippets.

Bill or Jeremy from BSETMET bsetmet

Block or report user

Report or block bsetmet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bsetmet
bsetmet / RSTUDIO_Version_Launcher.sh
Created May 31, 2019 — forked from seakintruth/RSTUDIO_Version_Launcher.sh
Rstudio Version Launcher (And R Version installer) for Ubuntu / Debian.
View RSTUDIO_Version_Launcher.sh
#!/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)
@bsetmet
bsetmet / standard_robocopy_backup.cmd
Last active Oct 8, 2018
Simple Windows .cmd backup routine using robocopy, set this to run on login, or with scheduler
View standard_robocopy_backup.cmd
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 / info.php
Created Sep 13, 2018
PHP Example to display 'this' server's external IP Address and the corresponiding DNS Record
View info.php
<?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 / auto_reload.js
Created Sep 13, 2018
assets/auto_reload.js
View auto_reload.js
function reload_page() {
window.location.reload();
}
function reload_page_cache_clear() {
window.location.reload(true);
}
@bsetmet
bsetmet / donate.php
Last active Sep 15, 2018
Html, css, and js example of a donation page to the public address for cryptocurrencies
View donate.php
<!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
You can’t perform that action at this time.