Skip to content

Instantly share code, notes, and snippets.

@thePanz
thePanz / install-caddy.sh
Last active Sep 25, 2021
Caddy arm6 install script
View install-caddy.sh
#! /bin/bash
# Install script extracted from: https://github.com/caddyserver/caddy/tree/master/dist/init/linux-systemd
set -x
URL="https://caddyserver.com/download/linux/arm6?license=personal&telemetry=off"
TEMP="/tmp/caddy"
DEST="/tmp/caddy-latest_linux_arm6_personal.tar.gz"
curl "${URL}" -o ${DEST}
@thePanz
thePanz / userChrome.css
Last active Mar 21, 2019
Firefox multi-line tabs
View userChrome.css
/* See imports from: https://github.com/MrOtherGuy/firefox-csshacks */
@import url(chrome/multi-row_tabs.css);
:root{
--multirow-n-rows: 2;
--multirow-tab-min-width: 170px;
}
/**
* Style the Tab's closing icon
@thePanz
thePanz / GIFEncoder.class.php
Created Jul 26, 2016 — forked from SeanJA/GIFEncoder.class.php
dynamic animated gif clock
View GIFEncoder.class.php
<?php
/*
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Formerly known as:::
:: GIFEncoder Version 2.0 by László Zsidi, http://gifs.hu
::
:: This class is a rewritten 'GifMerge.class.php' version.
::
:: Modification:
View db_dump.sh
#! /bin/bash
# Simple script to dump the contents of a database into separate files in the directory "/backups/"
# Symlink into /etc/cron.daily/ or add to crontab
# Originally from: https://gist.github.com/brianredbeard
# /usr/local/scripts/db_dump
DESTDIR=/vagrant/backups/
DATEFORMAT="+%Y%m%d-%H%M"
@thePanz
thePanz / eg-attachments-publicinc.php
Last active Dec 30, 2015
Wrong EG-Attachments sorting
View eg-attachments-publicinc.php
<?php
if (! class_exists('EG_Attachments_Public')) {
/**
* Class EG_Attachments_Public
*
* Implement a shortcode to display the list of attachments in a post.
*
* @package EG-Attachments