I hereby claim:
- I am scotthelme on github.
- I am scotthelme (https://keybase.io/scotthelme) on keybase.
- I have a public key whose fingerprint is 0379 8197 A04C ADE5 52D6 D982 4CAB 47EE 69B5 C17D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do | |
( | |
syspath="${sysdevpath%/dev}" | |
devname="$(udevadm info -q name -p $syspath)" | |
[[ "$devname" == "bus/"* ]] && continue | |
eval "$(udevadm info -q property --export -p $syspath)" | |
[[ -z "$ID_SERIAL" ]] && continue | |
echo "/dev/$devname - $ID_SERIAL" |
#!/usr/bin/env python | |
# coding=utf-8 | |
# | |
# Converts netxml files from Kismet Newcore into KML or KMZ files for Google Earth | |
# | |
# Author: Patrick Salecker | |
# URL: http://www.salecker.org/software/netxml2kml/en | |
# Last modified: 13.06.2011 | |
import os |
/var/www/ghost/core/server/apps/amp/lib/helpers/amp_content.js | |
// make relative URLs abolute | |
html = makeAbsoluteUrl(html, config.url, post.url).html(); | |
html = html.replace("https://scotthelme.co.uk/content/images/", "https://cdn.ampproject.org/i/s/scotthelme.co.uk/content/images/"); | |
/var/www/ghost/core/server/data/meta/amp_url.js | |
if (_.includes(context, 'post') && !_.includes(context, 'amp')) { | |
var cacheUrl = config.urlJoin(config.getBaseUrl(false), getUrl(data, false)) + 'amp/'; |
#!/bin/bash | |
for x in `find /var/www/ghost/content/themes/futura/assets/js/ -type f -iname '*.js'` | |
do | |
sudo /home/scott/nginx/brotli/bin/bro --input ${x} --output ${x}.br | |
sudo chown scott:ghost ${x}.br | |
sudo chmod 664 ${x}.br | |
done | |
for x in `find /var/www/ghost/content/themes/futura/assets/css/ -type f -iname '*.css'` | |
do |
#!/bin/bash | |
sudo find /home/nginx/ghostcache -type f -delete |
#!/bin/bash | |
# Written by Andy Boutte and David Balderston of howtoinstallghost.com, ghostforbeginners.com, allaboutghost.com | |
# updateghost_digitalocean.sh will update your current Digital Ocean Ghost install to the latest version without you losing any content | |
if [[ `whoami` != root ]]; then | |
echo "This script must be run as root." | |
exit 1 | |
fi | |
# Make temporary directory and download latest Ghost. |
<div id="disqus_thread"></div> | |
<script> | |
window.addEventListener('message', receiveMessage, false); | |
function receiveMessage(event) | |
{ | |
if (event.data) { | |
var msg; | |
try { | |
msg = JSON.parse(event.data); | |
} catch (err) { |
alert(123); |