Skip to content

Instantly share code, notes, and snippets.

Lucas Jenß x3ro

Block or report user

Report or block x3ro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am x3ro on github.
  • I am fresskoma ( on keybase.
  • I have a public key ASCWLW8_UfKTpsTWuji76j_UfzJ2PIRkKRKiV-tcNrpa8Ao

To claim this, I am signing this object:

x3ro /
Created Nov 25, 2015
Script which shows other commits that touch a file introduced by the given commit
# Didn't find a good name for this yet :D
function git-foobar {
COMMITS=$(git diff-tree --no-commit-id --name-only -r --diff-filter=A $1 | \
xargs git log --pretty="%H" -- | \
uniq | \
grep --invert-match $(git rev-parse $1))
if (( $(echo -n "$COMMITS" | wc -l) > 0 )); then
echo "$COMMITS" | xargs git show --stat
x3ro /
Created Nov 23, 2015
git submodule rewriting foo
git clone sub &&
wget &&
chmod +x git-rewrite-to-subfolder &&
cd sub &&
View gitlab.nginxconf
upstream gitlab {
server unix:/home/git/gitlab/tmp/sockets/gitlab.socket;
server {
listen 80 default_server;
server_name <change this to your FQDN>;
rewrite ^ https://$server_name$request_uri? permanent;
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
View gist:7924869
Hi Lucas.
I know that you have high-rated account on stackoverflow.
I want you to do a undelete vote for a very good and useful
question. It's really nice. I don't know why somebody deleted
it, but I want to revert it.
If you will do it, I will pay you $30 on your paypal account.
Or you can suggest another way of payment.
View go-script
#!/usr/bin/env python
from __future__ import print_function
from optparse import OptionParser
import os
import sys
parser = OptionParser()
parser.add_option("-i", "--import", dest="imports", action="append", default=[],
x3ro / Makefile
Created Sep 12, 2013
Source files for my latest blog post on working with assembly routines and C on Mac OS X -
View Makefile
all: run
run: clean test
test: asm.o test.o
clang -o test asm.o test.o
nasm -f macho64 asm.s
View gist:6274616
Hello visitor. This is a fork of [@idan]('s []( project, adding a couple new features and fixing some bugs that have not been touched for a while. Idan intends to keep on working on the original, for which, at some point, he wants to charge a bit of money in order to even out the server costs ([source](, but he's currently unclear when that will be. At least until then, I will work on my own improvements, which might some day make it back into upstream :)
# Features added
## Callouts
> You can now use callouts, which are great to draw attention to specific, important sections of your text:
View git-rewrite-to-subfolder
# We need the TAB character for SED (Mac OS X sed does not understand \t)
TAB="$(printf '\t')"
function abort {
echo "$(tput setaf 1)$1$(tput sgr0)"
exit 1
You can’t perform that action at this time.