Skip to content

Instantly share code, notes, and snippets.


Erreur32 Erreur32

View GitHub Profile
eyecatchup /
Last active Dec 2, 2021
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.

View gist:02e6e87835a17f4e1b9e
#import <UIKit/UIKit.h>
#import <objc/runtime.h>
// Hook with ObjC runtime functions
// New methods created below
@interface UIGestureRecognizer ()
+ (void)hs_beginForcingAllNewGestureRecognizersToAllowPencilInput;
+ (void)hs_endForcingAllNewGestureRecognizersToAllowPencilInput;
View CSS-The-Avengers-.markdown
mariussturm / gist:061b9f4861ef1292aa60
Last active Feb 1, 2017
How to pair Firefox 29 with Owncloud's mozilla_sync / Weave
View gist:061b9f4861ef1292aa60
_Go to your Owncloud installation <https://myowncloud/remote.php/mozilla_sync> and accept the SSL Certificate
_Open about:config
_Create: services.sync.username <string> the value should be a hash not the username itself. (You only need the hash if the
sync was setup with a pre FF29, if you start from scratch the string doesn't matter)
You can look this up in an older browser or in the logs of your Owncloud server!!
_Go to: Preferences -> Sync -> Setup Firefox sync (you should see the old UI now)
'I Have an Account'
'I don't have the device with me'
'Account' - again use the hash NOT the actual username!
jc00ke /
Last active Mar 13, 2018
bash prompt
txtwht="\[\e[00m\]" # White
txtred="\[\e[0;31m\]" # Red
txtgrn="\[\e[0;32m\]" # Green
txtpur="\[\e[0;35m\]" # Purple
txtblu="\[\e[0;34m\]" # Blue
bldgrn="\[\e[1;32m\]" # Green
bldcyn="\[\e[1;36m\]" # Cyan
function parse_git_this_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
XVilka /
Last active Dec 2, 2021
True Colour (16 million colours) support in various terminal applications and terminals

Most updated version is always available at termstandard/colors repository.

Terminal Colors

There exists common confusion about terminal colors. This is what we have right now:

  • Plain ASCII
  • ANSI escape codes: 16 color codes with bold/italic and background
  • 256 color palette: 216 colors + 16 ANSI + 24 gray (colors are 24-bit)
  • 24-bit truecolor: "888" colors (aka 16 million)
andsens /
Last active Oct 5, 2021
This is a generic init-script, easily modifiable to suit your needs. It uses quite a lot of lsb init-functions and adheres to the lsb standards.
# Provides: generic-prog
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Generic Program
# Description: Generic Program is a generic program to do generic things with
View index.html
<div class="container">
<div class="wrap">
<div class="circle horizontal c1">
<div class="wrap-electron">
<div class="circle electron"></div>
<div class="circle vertical c1">
<div class="wrap-electron">
<div class="circle electron"></div>
View index.html
<!DOCTYPE html>
<title>UI Transparent</title>
<div class="container">
<h1>UI Transparent</h1>
Erreur32 / index.html
Created Oct 19, 2012
As part of ongoing fun challenges with my graphics guy, Chris, I bet him, and challenged myself, that anything he creates in photoshop/illustrator can be replicated in code. I created our upcoming new logo in CSS and then went crazy with animations! I di
View index.html
<div style="background: url('');">
<div class="logo">
<div class="inside"></div>
<div class="inside"></div>