Skip to content

Instantly share code, notes, and snippets.

@samnazarko
samnazarko / default.vcl
Created October 11, 2015 03:17 — forked from lkarsten/default.vcl
varnish vcl for ghost blogging platform
#
# Varnish VCL file for Ghost blogging platform.
# http://ghost.org/
#
# Written for Ghost v0.3.0.
#
# This is a low-hanging-fruit type of VCL. TTL of objects are overridden to 2
# minutes, and everything below /ghost/ is pass()-ed so the user sessions
# work.
#
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Stripe Getting Started Form</title>
<!-- The required Stripe lib -->
<script type="text/javascript" src="https://js.stripe.com/v2/"></script>
<!-- jQuery is used only for this example; it isn't required to use Stripe -->
@samnazarko
samnazarko / imx6_fs_builder.sh
Last active January 20, 2021 06:50
This is a root filesystem builder for i.MX6 devices for R. Feranec of imx6rex.com
#!/bin/bash
# i.MX6 filesystem builder for R. Feranec
# Sam Nazarko - 20141028
echo -e "i.MX6 filesystem generator"
echo -e "For best results run this on the latest Ubuntu build"
hasRefreshed=0
@samnazarko
samnazarko / install_on_debian.sh
Last active August 29, 2015 14:05
Sets up Apache2 to serve webCDN on a Debian or Ubuntu system.
#!/bin/bash
apt-get update
apt-get -y install rsync apache2
echo "rsync -auP --delete rsync://rsync.samnazarko.co.uk/cdn /var/www" > /root/sync.sh
chmod +x /root/sync.sh
echo "0 * * * * /root/sync.sh
" > /var/spool/cron/crontabs/root
echo Performing initial sync
/root/sync.sh