Skip to content

Instantly share code, notes, and snippets.

View C-Stevens's full-sized avatar

Colin Stevens C-Stevens

View GitHub Profile
@C-Stevens
C-Stevens / semantic-ui_tab_sample.html
Created January 29, 2016 06:14
Sample HTML template that properly implements Semantic's bizarre (yet cool) tab feature.
<!DOCTYPE html>
<html>
<head>
<title>Colin J. Stevens</title>
<link rel="stylesheet" type="text/css" href="semantic/dist/semantic.min.css">
</head>
<body>
<div class="ui main text container">
<h1 class="ui header">Colin Stevens</h1>
<p>foo bar baz</p>
@C-Stevens
C-Stevens / gist:1122e7a8fef749910a98
Last active August 29, 2015 14:21
R Graph for 4*pi*x^2+(24/x)-(8/3)*pi*x^2
curve(
4*pi*x^2+(24/x)-(8/3)*pi*x^2,
col="blue",
lwd=1.5,
n=109,
axes=FALSE,
xlim=c(0,4),
ylim=c(0,300),
ylab="f(r)",
xlab="r",

Keybase proof

I hereby claim:

  • I am c-stevens on github.
  • I am colinstevens (https://keybase.io/colinstevens) on keybase.
  • I have a public key whose fingerprint is 9952 D345 315A 072E 513C AF2A 43A8 A014 495B 444F

To claim this, I am signing this object:

@C-Stevens
C-Stevens / Check for IP change
Last active December 29, 2015 12:39
Bash script (to be run periodically by cron) to check for external IP address changes. If any, emails the specified email of the change, and what the machine's new external IP is.
#!/bin/bash
##Required/recommended packages:
# mailutils
# msmtp
# msmtp-mta
currentIp=$(cat ~/ip.log)
grabbedIp=$(wget -O - -q -nv --delete-after www.icanhazip.com)
email="mail@yourdomain.com"