Skip to content

Instantly share code, notes, and snippets.

View kogakure's full-sized avatar
🏠
Working from home

Stefan Imhoff kogakure

🏠
Working from home
View GitHub Profile
@kogakure
kogakure / umlaute.pl
Created December 9, 2008 17:47
Perl: Remove all Umlauts and special characters from filenames
#!/usr/bin/perl
#===============================================================================
#
# FILE: renametree.pl
#
# USAGE: ./renametree.pl
#
# DESCRIPTION: rename files and directories in the current tree to
# eliminate special characters
@kogakure
kogakure / Stylefile.yml
Created July 31, 2018 09:54
Customizations for www.styleurl.app via StyleURL.
---
version: 1.0
domains:
- www.styleurl.app
url_patterns:
- www.styleurl.app/*
timestamp: '2018-07-31T09:54:39Z'
id: lF87
redirect_url: https://www.styleurl.app/
shared_via: StyleURL - (https://styleurl.app) import and export CSS changes from Chrome
@kogakure
kogakure / fabfile.py
Created April 22, 2010 12:01 — forked from jsmits/fabfile.py
Python: Deployment with Fabric
#!/usr/bin/env python
from __future__ import with_statement # needed for python 2.5
from fabric.api import *
from fabric.contrib.console import confirm
# ================================================================
# NOTE:
# using this fabfile expects that you have the python utility
# fabric installed locally, ssh access to reamea.com, and your
# ssh public key associated with the account 'mboza@reamea.com'
/*
* Date Format 1.2.3
* (c) 2007-2009 Steven Levithan <stevenlevithan.com>
* MIT license
*
* Includes enhancements by Scott Trenda <scott.trenda.net>
* and Kris Kowal <cixar.com/~kris.kowal/>
*
* Accepts a date, a mask, or a date and a mask.
* Returns a formatted version of the given date.
@kogakure
kogakure / .prettierrc.json
Created February 19, 2018 16:11
Overriding prettier rules for specific file types
{
"singleQuote": true,
"trailingComma": "es5",
"overrides": [
{
"files": "**/*.css",
"options": {
"singleQuote": false
}
}
@kogakure
kogakure / settings.py
Created December 9, 2008 17:39
Python: Django Templates: settings.py, local_settings.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os.path
import sys
# Basic Settings
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
PROJECT_NAME = os.path.split(PROJECT_ROOT)[-1]
MEDIA_ROOT = '%s/media/' % PROJECT_ROOT
@kogakure
kogakure / gist:6172657
Created August 7, 2013 09:42
CSS: Mask with -webkit-mask and adding a border with second mask
<div>
<img class="cutout" src="http://jedidiah.eu/code/css/masks/images/periwinkle.jpg" alt="">
</div>
@kogakure
kogakure / gist:6595093
Created September 17, 2013 14:30
HTML/CSS: Intrinsic Ratios image solution for responsive images
<div class="img-container">
<img src="http://cdn3.spiegel.de/images/image-545702-breitwandaufmacher-penw.jpg">
</div>
@kogakure
kogakure / article.md
Last active March 19, 2017 16:35
Hugo: Shortcode for loading Flickr images over JSON into blog post
title date
How get Flickr images into Hugo
2016-09-03 14:15:19 +0200

{{% flickr_gallery "72157656063987631" %}}

@kogakure
kogakure / box-sizing.css
Created February 25, 2017 10:20
CSS: box-sizing
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}