Skip to content

Instantly share code, notes, and snippets.

@krisives
krisives / install.sh
Created August 23, 2018 05:06
Download the userChrome.css and run the commands in install.sh to get a hidden tab bar when only one tab is open in Firefox
cd ~/.mozilla/firefox/*.default/
mkdir chrome
cp ~/Downloads/userChrome.css .
@simonw
simonw / how-to.md
Last active March 26, 2024 23:21
How to create a tarball of a git repository using "git archive"
@gmazzap
gmazzap / www-post-thumb.php
Last active January 28, 2023 03:57
WordPress plugin that allow to use an external image url as featured image.
<?php namespace GM\WWWPostThumbnail;
/**
* Plugin Name: WWW Post Thumbnail
* Description: Allow to use an external image url as featured image.
* Plugin URI: https://gist.github.com/Giuseppe-Mazzapica/928bc22e5f49a654cf7c
* Author: Giuseppe Mazzapica
* Author URI: https://github.com/Giuseppe-Mazzapica
* License: MIT
* Version: 0.1.0
*
@dashed
dashed / github-pandoc.css
Created September 26, 2013 13:42
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
Where to Live (Du Fu)
West of the Flower Washing Stream,
not far downstream from the bridge,
the master has chosen a quiet spot
here in the woods by the river.
Living apart from the city crowds,
the world loosens its grip;
murmuring of this clear water dissolves

cgit + lighttpd on CentOS 5.x

install the rpm

http://rpm.pbone.net/index.php3/stat/4/idpl/12891638/dir//com/cgit-0.8.2.1-1.el5.kb.i386.rpm.html

static media

cd /srv/www/html/lighttpd

ln -s /usr/share/cgit git-media/