Skip to content

Instantly share code, notes, and snippets.

View MissKittin's full-sized avatar

MissKittin

  • Kampala
View GitHub Profile
@plugnburn
plugnburn / README.md
Last active May 26, 2024 11:20
Statix - the simplest static website generator in bash

Statix - the simplest static website generator in Bash

Statix is a stand-alone Bash script aimed at generating full-featured, routable static websites from reusable HTML snippets. It features the most basic templating engine ever possible but allows to organize your content in a SEO-friendly way. All Statix-based websites contain these parts:

  • Templates: a directory where all HTML templates are stored
  • Route configuration: a file that maps each publicly accessible template to a SEO-friendly URL
  • Assets: a directory with optional files copied to the output website directory with no processing.

This script is also lightweight. Aside from some standard file management commands such as cp, mkdir and rm, the only serious dependency for Statix is GNU Grep compiled with PCRE support (i.e. the version that supports -P flag, included in most Linux distributions).

@lancejpollard
lancejpollard / meta-tags.md
Created March 5, 2012 13:54
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@alobato
alobato / start-stop-example.sh
Created March 3, 2012 23:09
start-stop-example
#!/bin/sh
# Quick start-stop-daemon example, derived from Debian /etc/init.d/ssh
set -e
# Must be a valid filename
NAME=foo
PIDFILE=/var/run/$NAME.pid
#This is the command to be run, give the full pathname
DAEMON=/usr/local/bin/bar
@naokij
naokij / rsyslogforwarder
Created February 16, 2012 17:03
init script for rsyslog to forward remote syslog to another server
#!/bin/bash
#
# rsyslogforwarder Starts rsyslogd/rklogd forwarder.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files. It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
@robcowie
robcowie / freebsd_bootstrap.sh
Created June 24, 2011 17:00
Bootstrap a minimal install of FreeBSD
#!/usr/bin/env sh
##########
# /lang/python27 installs python 2.6.5 unless py27 is already installed
# /devel/py-lxml won't build with python2.7 installed
## Edit /JAILS/basejail/usr/ports/Mk/bsd.python.mk to add the following
## until python27 is correctly added to ports
@jmhobbs
jmhobbs / php-source-merge.py
Created August 3, 2010 21:51
Combine PHP Source Files Into THE MONOLITH
# -*- coding: utf-8 -*-
# This script is used to combine PHP source files together into one big glob.
# I wrote this so I could distribute a single file web application, but develop
# it in a sane fashion.
# Copyright (c) 2010, John M. Hobbs
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,