Skip to content

Instantly share code, notes, and snippets.

View wilandm's full-sized avatar
☁️

Michael Wiland wilandm

☁️
View GitHub Profile
@wilandm
wilandm / certbot-systemd-ubuntu.md
Created December 17, 2020 01:24 — forked from dbirks/certbot-systemd-ubuntu.md
Certbot renew with a systemd timer on Ubuntu

Ubuntu 16.04

/etc/systemd/system/certbot.service

[Unit]
Description=Let's Encrypt renewal

[Service]
Type=oneshot
ExecStart=/usr/bin/certbot renew --quiet --agree-tos
@wilandm
wilandm / sed cheatsheet
Last active January 6, 2020 19:35 — forked from ssstonebraker/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@wilandm
wilandm / iterm2.md
Created December 19, 2019 16:04 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@wilandm
wilandm / iterm2.md
Created December 19, 2019 16:04 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@wilandm
wilandm / ca_validation.md
Created December 12, 2019 19:09 — forked from genaromadrid/ca_validation.md
Validate a Certificate against a Certificate Authority using OpenSSL

Certificate CA Validation

The easy way

To validate a certificate agains a certificate authority you just have to run

openssl verify -trusted ca_root.pem -untrusted intermediate_ca.pem certificate.pem

You'll see a 'OK' message at the end of the output

@wilandm
wilandm / openssl_commands.md
Last active September 10, 2019 15:22 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
screen -S "SESSION_NAME" -d -m sh -c "STUFF_TO_DO"
# -S sockname Name this session <pid>.sockname instead of <pid>.<tty>.<host>.
# -d (-r) Detach the elsewhere running screen (and reattach here).
# -m ignore $STY variable, do create a new screen session.
# -c file Read configuration file instead of '.screenrc'.
#screen --help
Use: screen [-opts] [cmd [args]]
or: screen -r [host.tty]
https://learnxinyminutes.com/
To manually install XNA Game Studio 4.0
Download xnags40_setup.exe and save it to your hard drive
Run xnags40_setup.exe /x to extract the contents to a folder of your choosing
Go to the folder you extracted to in step 2 and run the MSI named redists.msi
Note: This MSI will only display a small progress bar while it is installing and will not tell you when it is done. When the progress bar disappears, continue to the next step.
Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Setup\XLiveRedist.msi
Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Redist\XNA FX Redist\xnafx40_redist.msi
Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Setup\xnaliveproxy.msi
#!/usr/bin/env nodejs
var express = require("express");
var mysql = require("mysql");
var bodyParser = require("body-parser");
var md5 = require('MD5');
var rest = require("./rest.js");
var app = express();