Skip to content

Instantly share code, notes, and snippets.

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

Snr.Miguel mf81bln

:octocat:
'cause I'm happy
  • AG / Switzerland
  • 11:52 (UTC +01:00)
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 = [email protected]
signingkey = ABCDEFG0123456789
[push]
default = simple
[color]
ui = always
[commit]
gpgsign = true
@mf81bln
mf81bln / index.html
Last active October 27, 2024 17:05
tribbles - a little jQuery extension for displaying long content of text fields as tooltip (using jQuery UI) --> demo: https://jsfiddle.net/5v1snbkm/
<!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;