Skip to content

Instantly share code, notes, and snippets.

View Keybase.md

Keybase proof

I hereby claim:

  • I am dannymcc on github.
  • I am dmcc (https://keybase.io/dmcc) on keybase.
  • I have a public key ASCaikJT8WxLbn8dslsCM8oQeuKNx52qdB7JxGyqMHCWkQo

To claim this, I am signing this object:

@dannymcc
dannymcc / diary.sh
Created May 1, 2020
Basic bash diary
View diary.sh
#!/bin/bash
if [ "$1" == "new" ]; then
FILENAME=$(date +"%d.%m.%Y")
vim $FILENAME &&
mcrypt -u $FILENAME
else
if [ $# -eq 1 ]; then
PTEXT=$(cat $1 | mcrypt -d) &&
echo $PTEXT | vim -R -
else
@dannymcc
dannymcc / config
Created May 1, 2020 — forked from jetpks/config
.irssi/config
View config
servers = (
{
address = "irc.mikezauner.com";
chatnet = "zl4u";
port = "6697";
autoconnect = "yes";
use_ssl = "yes";
},
{
address = "irc.freenode.net";
View raspberry-pi-vpn-router.md

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

View keybase.md

Keybase proof

I hereby claim:

  • I am dannymcc on github.
  • I am dmcc365 (https://keybase.io/dmcc365) on keybase.
  • I have a public key ASBFhEsSciBVUf4WX1WOQwRGJOr016jI-iPaFRJAFk6rQwo

To claim this, I am signing this object:

View gist:6341a953f9fe099030d0de64f4a90c58

These are notes for myself on the crouton setup for my chromebook

1. Enter Developer Mode

Hold Power+ESC+Refresh, then let go of the power, when the OS verification warning screen appears enter Ctrl-D

2. Setup Crouton

Follow the instructions here to download the latest version of https://goo.gl/fd3zc.

@dannymcc
dannymcc / tmux.cheat
Last active Dec 7, 2017 — forked from afair/tmux.cheat
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
View tmux.cheat
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^a w
New -s <session> Create ^a c
Attach att -t <session> Rename ^a , <name>
Rename rename-session -t <old> <new> Last ^a l (lower-L)
Kill kill-session -t <session> Close ^a &
@dannymcc
dannymcc / install_ruby_rpi.sh
Created Mar 14, 2017 — forked from blacktm/install_ruby_rpi.sh
A Bash script to install Ruby 2.4 on the Raspberry Pi (Raspbian)
View install_ruby_rpi.sh
#!/bin/bash
# --------------------------------------------------------------------------------------------
# Installs Ruby 2.4 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
#
# Run from the web:
# bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh)
# --------------------------------------------------------------------------------------------
# Welcome message
@dannymcc
dannymcc / gist:60b41d888ad8520eb289
Created Mar 21, 2015
dan@dannyweb.net GPG Public Key
View gist:60b41d888ad8520eb289
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: GPGTools - https://gpgtools.org
mQENBFOI3nkBCACc+5potLpy55GgSggBMYCTHFYww/wQnbRUilIe5wv7SXZ+RBrv
eXv+JIuUpa5w/rr5CZP2rF1fLE57djfkveEguwemMrEKbLRB+I4w6CpkzyntrBIK
YNXUYlY9H1B7XwnhL0JUxS/K7ocUPQ+16STRxGxWzl/uKwrWs8+DRcKNOmGMd82Z
1gK89pKghCTXtFijZvWeC+BP/UIlPtioQO0qH7fy0LnByW01z2HKHV5DF/ujeWTA
uYUDRnR/Ma/uNaNGozNF8NZxPNz9B4vhevNUuMbNSwc1bBxgrGs4xXDxzXOQeXuH
34z6uhZkKlsUaRaVQehdWvZIot9nPrjkJmsXABEBAAG0I0Rhbm55IE1jQ2xlbGxh
bmQgPGRhbkBkYW5ueXdlYi5uZXQ+iQE9BBMBCgAnBQJTiN55AhsDBQkHhh+ABQsJ
View gist:68ef9e694cc6a2d48bec
echo "
clear
echo "$(tput setaf 1)
_____ _ _ _ _ _____ _ _ _____ _ _ _
| | |_| | |___ ___ ___ ___| |_ | _ |___|_|_____ ___| | | | |___ ___ ___|_| |_ ___| |
| | | | | _| _| -_|_ -| _| | | | | | .'| | | | . |_ -| . | | _| .'| |
|__|__|_|_|_|___|_| |___|___|_| |__|__|_|_|_|_|_|_|__,|_| |__|__|___|___| _|_|_| |__,|_|
|_| "
let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)"