Skip to content

Instantly share code, notes, and snippets.

@nowox
nowox / mintty.log
Created March 9, 2017 15:26
Mintty issue with italic and double quotes
]10;#d0d0d0]11;#151515]12;#FD9D4F]4;262;#FD9D4F]4;0;#252525]4;8;#4a5a5a]4;1;#AC4142]4;9;#b26364]4;2;#90A959]4;10;#A6BB7B]4;3;#F4BF75]4;11;#F8D5A5]4;4;#6A9FB5]4;12;#8CB5C6]4;5;#AA759F]4;13;#BE95B5]4;6;#75B5AA]4;14;#97C7BE]4;7;#D0D0D0]4;15;#F5F5F5[5 q(0) ~ $ vi .minttyrc -u NONE
[?1049h[?1h=[?12;25h[?12l[?25h[?25l~ ~ ~ ~ ~ ~
#!/usr/bin/env python
"""Update of new names in source code after massive file rename onto a Git repository.
This script considers:
- The script is located at the root of the Git repository
- The head of the branch where the files were renamed is checkout
- This branch as a common ancestor with the master
- This common ancestor is used for the diff
#!/usr/bin/python
import cProfile, pstats, StringIO
from random import choice, random
import copy
import collections
class DataGenerator(object):
depth = 0
### Keybase proof
I hereby claim:
* I am nowox on github.
* I am nowox (https://keybase.io/nowox) on keybase.
* I have a public key ASCn7HlZniQK49Xt9ayx717TlY68s7kLY2v-npo8f0QKCgo
To claim this, I am signing this object:
@nowox
nowox / plenty.py
Created April 28, 2016 18:31
Python script that creates plenty of files and can alter them
#!/usr/bin/python
import os
import loremipsum
import random
import bisect
import numpy
import textwrap
class RandomWeight:
def __init__(self, weight):
@nowox
nowox / git-diffbeyond
Created March 24, 2015 13:20
Improve workflow with Git and BeyondCompare
#!/usr/bin/bash
#File: git-diffbeyond
#Author: Yves Chevallier <nowox@x0x.ch>
#Date: 2015-03-24 Tue 02:16 PM
head="HEAD~1"
# Create temporary folder
OUT="$(mktemp -d)"
# Copy current files into this folder