Skip to content

Instantly share code, notes, and snippets.

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 23:04
Basic bash diary
#!/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 21:28 — forked from jetpks/config
.irssi/config
servers = (
{
address = "irc.mikezauner.com";
chatnet = "zl4u";
port = "6697";
autoconnect = "yes";
use_ssl = "yes";
},
{
address = "irc.freenode.net";
@dannymcc
dannymcc / raspberry-pi-vpn-router.md
Created December 13, 2019 20:25 — forked from superjamie/raspberry-pi-vpn-router.md
Raspberry Pi VPN Router

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:

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:

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 December 7, 2017 14:21 — forked from afair/tmux.cheat
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
========================================== ==========================================
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 March 14, 2017 16:06 — forked from blacktm/install_ruby_rpi.sh
A Bash script to install Ruby 2.4 on the Raspberry Pi (Raspbian)
#!/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 March 21, 2015 19:41
dan@dannyweb.net GPG Public Key
-----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
echo "
clear
echo "$(tput setaf 1)
_____ _ _ _ _ _____ _ _ _____ _ _ _
| | |_| | |___ ___ ___ ___| |_ | _ |___|_|_____ ___| | | | |___ ___ ___|_| |_ ___| |
| | | | | _| _| -_|_ -| _| | | | | | .'| | | | . |_ -| . | | _| .'| |
|__|__|_|_|_|___|_| |___|___|_| |__|__|_|_|_|_|_|_|__,|_| |__|__|___|___| _|_|_| |__,|_|
|_| "
let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)"