Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Stefan Imhoff kogakure

🏠
Working from home
View GitHub Profile
@kogakure
kogakure / .gitignore
Created Jul 17, 2009
Git: .gitignore file for LaTeX projects
View .gitignore
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
View keybase.md

Keybase proof

I hereby claim:

  • I am kogakure on github.
  • I am kogakure (https://keybase.io/kogakure) on keybase.
  • I have a public key ASD10xwjUmtKK5ponrhVnoCSbQQNKwT_wvpszotYnHOmigo

To claim this, I am signing this object:

@kogakure
kogakure / gist:27b6e02034bae4ed7c70
Last active Dec 18, 2019
Pure CSS multiline text with ellipsis
View gist:27b6e02034bae4ed7c70
/* http://martinwolf.org/2013/01/29/pure-css-multiline-text-with-ellipsis/ */
$font-size: 26px;
$line-height: 1.4;
$lines-to-show: 3;
h2 {
display: block; /* Fallback for non-webkit */
display: -webkit-box;
max-width: 400px;
@kogakure
kogakure / fabfile.py
Created Oct 17, 2009 — forked from jefftriplett/fabfile.py for django
Python: Deployment for Django with Fabric
View fabfile.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
fabfile for Django
------------------
see http://morethanseven.net/2009/07/27/fabric-django-git-apache-mod_wsgi-virtualenv-and-p/
modified for fabric 0.9/1.0 by Hraban (fiëé visuëlle)
several additions, corrections and customizations, too
@kogakure
kogakure / gist:4769904
Created Feb 12, 2013
SASS: Circle Mixin
View gist:4769904
@mixin circle($width, $color) {
width: $width;
height: $width;
background: $color;
-webkit-border-radius: $width/2;
-moz-border-radius: $width/2;
border-radius: $width/2;
}
.circle {
@kogakure
kogakure / fabfile.py
Created Oct 17, 2009
Python: Fabric 0.9/1.x - Synchronize files with rsync
View fabfile.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Fabric 0.9/1.x – Synchronize files in a project folder with webserver
from fabric.api import env
from fabric.contrib.project import rsync_project
env.hosts = ['domain.com']
env.path = '/home/user/project/'
@kogakure
kogakure / gulpfile.js
Created Aug 1, 2016 — forked from zhoujiealex/gulpfile.js
sample of gulpfile.js for hexo generate blog, compress public files
View gulpfile.js
/* Refrences:
1. http://notes.iissnan.com/2016/publishing-github-pages-with-travis-ci
2. https://github.com/chrisjlee/hexo-theme-zurb-foundation/blob/e82f45a82bbaaee063bcb1298cd9793575afb142/gulpfile.js
3. https://github.com/gulpjs/gulp/blob/master/docs/recipes/delete-files-folder.md
4. https://hexo.io/api/
5. https://github.com/iissnan/theme-next-docs/blob/master/.travis.yml
*/
var gulp = require('gulp');
var minifycss = require('gulp-clean-css');
@kogakure
kogakure / gist:3186691
Created Jul 27, 2012
AppleScript: Evernote - Empty Tag Remover
View gist:3186691
(*
http://veritrope.com
Evernote -- Empty Tag Remover
Version 1.0
December 22, 2010
Project Status, Latest Updates, and Comments Collected at:
http://veritrope.com/code/evernote-empty-tag-remover
*)
property unusedTags : {}
@kogakure
kogakure / umlaute.pl
Created Dec 9, 2008
Perl: Remove all Umlauts and special characters from filenames
View umlaute.pl
#!/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 Jul 31, 2018
Customizations for www.styleurl.app via StyleURL.
View Stylefile.yml
---
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