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
Last active Sep 7, 2022
Git: .gitignore file for LaTeX projects
View .gitignore
# https://www.toptal.com/developers/gitignore can generate .gitignore for many filetypes
*.acn
*.acr
*.alg
*.aux
*.bbl
*.blg
*.dvi
*.glg
@kogakure
kogakure / gist:205825
Created Oct 9, 2009
Bash: Git – Rename an email address in all old commits.
View gist:205825
# Rename an email address in all old commits.
# WARNING: Will change all your commit SHA1s.
# Based off of the script from here:
# http://coffee.geek.nz/how-change-author-git.html
git filter-branch -f --commit-filter '
if [ "$GIT_COMMITTER_EMAIL" = "joern.zaefferer@googlemail.com" ];
then
GIT_AUTHOR_EMAIL="joern.zaefferer@gmail.com";
GIT_COMMITTER_EMAIL="joern.zaefferer@gmail.com";
git commit-tree "$@";
@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 / .bash_profile
Created Dec 9, 2008
Bash: .bash_profile, .bashrc
View .bash_profile
source ~/.bashrc
# Unix Aliase
alias ll="ls -lisa"
alias la="ls -la"
alias ls-l="ls -l"
alias cd..="cd .."
alias ..="cd .."
alias ...="cd ../.."
alias workssh="ssh user@domain"
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 / 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 : {}