Skip to content

Instantly share code, notes, and snippets.

View mf81bln's full-sized avatar
:octocat:
'cause I'm happy

Michel mf81bln

:octocat:
'cause I'm happy
View GitHub Profile
@mf81bln
mf81bln / delete_local_branches.sh
Created August 7, 2020 15:20 — forked from TSMMark/delete_local_branches.sh
Delete local branches that don't exist remotely
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -n 1 git branch -D
@mf81bln
mf81bln / CryptoUtility.java
Last active December 27, 2017 14:46
encrypt / decrypt with RSA in JAVA
import java.security.GeneralSecurityException;
import java.security.KeyFactory;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;
import javax.crypto.Cipher;
import javax.xml.bind.DatatypeConverter;
// to generate a KeyPair use
@mf81bln
mf81bln / .gitconfig
Created October 24, 2017 07:19
git aliases
[user]
name = Max Muster
email = max.muster@domain.tld
signingkey = ABCDEFG0123456789
[push]
default = simple
[color]
ui = always
[commit]
gpgsign = true
@mf81bln
mf81bln / index.html
Last active August 29, 2015 14:08
tribbles - a little jQuery extension for displaying long content of text fields as tooltip (using jQuery UI) --> demo: http://jsfiddle.net/mf81bln/rn70rosf/
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>tribbles demo</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="/styles.css">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<script src="/tribbles.js"></script>
@mf81bln
mf81bln / pure-css-menu.css
Created March 9, 2014 21:37
pure CSS menu, without JavaScript - adopted from http://jsfiddle.net/paullferguson/Sv54G/3/
html { overflow-y: scroll; }
.tabs {
position: relative;
min-height: 100px; /* This part sucks */
clear: both;
margin: 25px 0 60px 0;
}
.tab {
float: left;
/* Click open/close Dropdown in pure CSS */
/* Disclaimer: Not the most semantic
thing in the universe. */
/* Forked from original idea
http://jsfiddle.net/paullferguson/Sv54G/3/ */
.tabs {
position: relative;