Skip to content

Instantly share code, notes, and snippets.

View travis-g's full-sized avatar
🎲
rolling dice

Travis Grammer travis-g

🎲
rolling dice
View GitHub Profile
@travis-g
travis-g / pi.md
Last active February 20, 2020 03:18
Various notes

Discovery

Discover IP of Pi with ARP lookup, limiting results returned to MAC addresses that match the Raspberry Pi Foundation's assigned range (B8:27:EB:XX:XX:XX):

arp -a | Select-String -Pattern "b8.27.eb"
arp -a | grep -i "b8.27.eb"
@travis-g
travis-g / report.md
Last active September 16, 2018 01:00
Incident Report template

Incident Report/2018-07-04

Incident Metadata

  • Status: Resolved
  • Incident Commander: travis-g
@travis-g
travis-g / colors.css
Last active June 12, 2018 03:28
Epaper colors
:root {
--color: #4c5256;
--background: #c4cdd3;
--alert: #25292b;
--weak: #61686d;
--strong: #393e42;
--border: #949ca1;
}
@travis-g
travis-g / keybase.md
Created October 27, 2017 15:24
keybase.md

Keybase proof

I hereby claim:

  • I am travis-g on github.
  • I am tjg (https://keybase.io/tjg) on keybase.
  • I have a public key ASDzaEoLbhD1tEJvl3Pf9AHS6dLRSYDm2VFrysTc0jEw4Qo

To claim this, I am signing this object:

@travis-g
travis-g / system-font.css
Last active February 13, 2017 18:13
CSS to use the system default font
.system-font {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}
@travis-g
travis-g / font-face.css
Last active January 21, 2021 07:57
Possible Emoji @font-face rule
@font-face {
font-family: 'emoji';
src:
local('Apple Color Emoji');
local('Noto Color Emoji');
local('Android Emoji');
local('Segoe UI');
local(EmojiSymbols);
unicode-range:
U+1f300-1f5ff, /* misc symbols + pictographs */
@travis-g
travis-g / .editorconfig
Created June 3, 2016 14:37
Basic EditorConfig file.
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true
@travis-g
travis-g / players
Last active May 21, 2016 03:00
Online player info of Minecraft servers
#!/bin/sh
help () {
cat <<EOF
usage: $(basename $0) [-hcl]
-h print this help
-c print player count (default)
-l list player names
environment:
PORT the server port, default 25565
#!/bin/sh
#
# Script for http://ifconfig.me
usage () {
cat <<EOF
usage: $(basename $0) [-ahinpu]
-a return all available info
-h show help
-i return external IP address (default)
@travis-g
travis-g / minecraftd
Last active January 5, 2016 17:47
Minecraft flexible server daemon
#!/bin/bash
# /etc/init.d/minecraftd
VERSION=1.0.0
### BEGIN INIT INFO
# Provides: minecraftd
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network