Skip to content

Instantly share code, notes, and snippets.

View mmangione's full-sized avatar

Micah Mangione mmangione

View GitHub Profile
@mmangione
mmangione / compliments.json
Last active February 23, 2023 08:47 — forked from E3V3A/compliments.json
MagicMirror jokes file
{
"anytime" : [
"Why did Adele cross the road? To say hello from the other side.",
"What kind of concert only costs 45 cents? A 50 Cent concert featuring Nickelback.",
"What did the grape say when it got crushed? Nothing, it just let out a little wine.",
"I want to be cremated as it is my last hope for a smoking hot body.",
"Time flies like an arrow. Fruit flies like a banana.",
"To the guy who invented zero, thanks for nothing.",
"I had a crazy dream last night! I was swimming in an ocean of orange soda. Turns out it was just a Fanta sea.",
"A crazy wife says to her husband that moose are falling from the sky. The husband says, it's reindeer.",
@mmangione
mmangione / readme.md
Created August 12, 2020 09:01 — forked from qdm12/readme.md
Wireguard setup for Ubuntu server with LAN access

Wireguard setup for LAN access

Assumptions

  • The network 192.168.1.0/24 is your LAN
  • Your Ubuntu server is on your LAN at 192.168.1.10, through the network interface eth0
  • The network 192.168.5.0/24 is non existent
  • Your LAN DNS is at 192.168.1.1
@mmangione
mmangione / haproxy.cfg
Created August 1, 2020 06:08 — forked from lackac/haproxy.cfg
HAProxy configuration with Websocket support
global
maxconn 4096 # Total Max Connections. This is dependent on ulimit
nbproc 2
log 127.0.0.1 local1 notice
defaults
mode http
log global
frontend all 0.0.0.0:80
@mmangione
mmangione / install-gpu.sh
Created July 4, 2020 22:35 — forked from huwan/install-gpu.sh
Install NVIDIA driver and CUDA toolkit (Ubuntu 18.04 + CUDA 10.0)
#! /bin/bash
# from https://www.tensorflow.org/install/gpu
# Add NVIDIA package repositories
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo apt-get update
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
sudo apt install ./nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
@mmangione
mmangione / hashcat_help.txt
Created October 23, 2019 05:34 — forked from BeanBagKing/hashcat_help.txt
Hashcat Help Documentation
hashcat64.exe -a 0 -w 0 -m 1000 -r rules/lmNTLM.rule hashes/ntlm.txt lists/lab.txt
hashcat64.exe -a 0 -w 1 -m 1800 hashes/unixmd5.txt lists/rockyou.txt
hashcat64.exe -a 3 -w 1 -m 1800 --increment ?a?a?a?a?a hashes/unixmd5.txt
C:\hashcat-3.10>hashcat64.exe -h
hashcat, advanced password recovery
Usage: hashcat [options]... hash|hashfile|hccapfile [dictionary|mask|directory]...
@mmangione
mmangione / hashcat_help.txt
Created October 23, 2019 05:34 — forked from BeanBagKing/hashcat_help.txt
Hashcat Help Documentation
hashcat64.exe -a 0 -w 0 -m 1000 -r rules/lmNTLM.rule hashes/ntlm.txt lists/lab.txt
hashcat64.exe -a 0 -w 1 -m 1800 hashes/unixmd5.txt lists/rockyou.txt
hashcat64.exe -a 3 -w 1 -m 1800 --increment ?a?a?a?a?a hashes/unixmd5.txt
C:\hashcat-3.10>hashcat64.exe -h
hashcat, advanced password recovery
Usage: hashcat [options]... hash|hashfile|hccapfile [dictionary|mask|directory]...
cd /var/www
mv redmine redmine-old
hg clone --updaterev 3.4-stable https://bitbucket.org/redmine/redmine-all redmine
cp redmine-old/config/configuration.yml redmine/config/configuration.yml
cp redmine-old/config/database.yml redmine/config/database.yml
cp -r redmine-old/files/ redmine/files/
chown -R root:www-data /var/www/redmine
cd redmine
gem install bundler
gem install test-unit
@mmangione
mmangione / create_user.sh
Created April 25, 2017 22:43 — forked from divyavanmahajan/create_user.sh
Turnkey OpenVPN - Add new users. It creates two OVPN files - with and without proxy and also generates the URLs to download them. Safely use for existing users - it just creates the OVPN files.
#!/bin/bash -e
fatal() { echo "FATAL: $@" 1>&2; exit 1; }
warn() { echo "WARN: $@"; }
info() { echo "INFO: $@"; }
usage() {
cat <<EOF
Usage: sudo $0 client_or_profile_name
This will create two ovpn files in this directory (proxy and noproxy).
`emacs --daemon` to run in the background.
`emacsclient.emacs24 <filename/dirname>` to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
* Undo - `C-/`
* Redo - `C-?`
* Change case: 1. Camel Case : `M-c`
2. Upper Case : `M-u`
3. Lower Case : `M-l`
`emacs --daemon` to run in the background.
`emacsclient.emacs24 <filename/dirname>` to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
* Undo - `C-/`
* Redo - `C-?`
* Change case: 1. Camel Case : `M-c`
2. Upper Case : `M-u`
3. Lower Case : `M-l`