Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# startup.sh
#
# Startup the nginx server. The server has to be active for the Let's Encrypt Certbot to
# register and install the certificates.
nginx -g "daemon on;"
# Checks that the SSL certificates are installed. If they are, renews any that are old, and
@mkrupczak3
mkrupczak3 / smartcheck.sh
Created December 9, 2019 00:13 — forked from tommybutler/smartcheck.sh
Script to quickly scan the S.M.A.R.T. health status of all your hard drive devices in Linux (at least all the ones from /dev/sda to /dev/sdzz). You need smartctl installed on your system for this script to work, and your hard drives need to have S.M.A.R.T. capabilities (they probably do).
#!/bin/bash
# install the smartctl package first! (apt-get install smartctl)
if sudo true
then
true
else
echo 'Root privileges required'
@mkrupczak3
mkrupczak3 / gist:9f5412ceb179f9fc08bfae8ccbb4aec2
Created March 7, 2020 22:44
COVID-19 OoC (Outside of China) Growth
// WHO Reports: https://www.who.int/emergencies/diseases/novel-coronavirus-2019/situation-reports
// Inspired by: https://twitter.com/paulg/status/1235247452145451013
// Note: The growth rate does not seem sustainable.
// The projected OoC infections assumes a constant doubling of roughly every 4 days.
Date Projected-OoC-Infections WHO-Reported-OoC-Infections
2020-02-29 5,629 6,009
2020-03-01 6,755 7,169
2020-03-02 8,106 8,774
2020-03-03 9,727 10,565
2020-03-04 11,673 12,669
@mkrupczak3
mkrupczak3 / webex-ubuntu.md
Created April 9, 2020 22:12 — forked from mshkrebtan/webex-ubuntu.md
Run Cisco Webex on 64-bit Ubuntu 16.04

Run Cisco Webex on 64-bit Ubuntu 16.04

With Audio and Screen Sharing Enabled

Enable support for 32-bit executables

Add the i386 architecture to the list of dpkg architectures :

sudo dpkg --add-architecture i386
Were we to examine, in the same manner, all the different parts of his dress and household furniture, the coarse linen shirt which he wears next his skin, the shoes which cover his feet, the bed which he lies on, and all the different parts which compose it, the kitchen-grate at which he prepares his victuals, the coals which he makes use of for that purpose, dug from the bowels of the earth, and brought to him, perhaps, by a long sea and a long land-carriage, all the other utensils of his kitchen, all the furniture of his table, the knives and forks, the earthen or pewter plates upon which he serves up and divides his victuals, the different hands employed in preparing his bread and his beer, the glass window which lets in the heat and the light, and keeps out the wind and the rain, with all the knowledge and art requisite for preparing that beautiful and happy invention, without which these northern parts of the world could scarce have afforded a very comfortable habitation, together with the tools of all t
# Use ffmpeg to encode an audio file with an image as a video file for use with Youtube
# # https://superuser.com/questions/700419/how-to-convert-mp3-to-youtube-allowed-video-format
ffmpeg -loop 1 -r 1 -i pic.jpg -i audio.mp3 -c:a copy -shortest -c:v libx264 output.mp4
ScreenMSAA 4 // MSAA 4 samples
mat_triplebuffered 1 // Tripple buffering vsync anandtech.com/show/2794
mat_forcehardwaresync 1 // Vsync
mat_vsync 1 // Vsync?
bind "F10" "disconnect"
============================================================================================================================================
============================================================================================================================================
d888888b db db .d8b. db db d88888b d8b db .d88b. .88b d88. .d88b. db db d888888b db db
`88' 88 88 d8' `8b 88 88 88' 888o 88 .8P Y8. 88'YbdP`88 .8P Y8. 88 88 `~~88~~' 88 88
88 88ooo88 88ooo88 Y8 8P 88ooooo 88V8o 88 88 88 88 88 88 88 88 88 88 88 88ooo88
88 88~~~88 88~~~88 `8b d8' 88~~~~~ 88 V8o88 88 88 88 88 88 88 88 88 88 88 88~~~88
.88. 88 88 88 88 `8bd8' 88. 88 V888 `8b d8' 88 88 88 `8b d8' 88b d88 88 88 88
Y888888P YP YP YP YP YP Y88888P VP V8P `Y88P' YP YP YP `Y88P' ~Y8888P' YP YP YP
#!/bin/bash
#
# startup.sh
#
# Startup the nginx server. The server has to be active for the Let's Encrypt Certbot to
# register and install the certificates.
nginx -g "daemon on;"
# Checks that the SSL certificates are installed. If they are, renews any that are old, and
@mkrupczak3
mkrupczak3 / newcrontab
Created September 12, 2020 05:51
A crontab correction for newer versions of let's encrypt with Forest Hoffman's Wordpress Https Docker config
root@urmum:~/projects/nginx_proxy# cat newcrontab
# Renew Let's Encrypt SSL Certificates that have < 30 days to go,
# in the morning (UTC time).
0 11 * * * certbot renew --quiet
root@urmum:~/projects/nginx_proxy# diff crontab newcrontab
3c3,4
< 0 11 * * * /usr/bin/certbot renew --quiet
---
> 0 11 * * * certbot renew --quiet