Skip to content

Instantly share code, notes, and snippets.

View jupp0r's full-sized avatar

Jupp Mueller jupp0r

  • Santa Barbara, CA, USA
View GitHub Profile

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

Find the id of one of the <li> tags for a file in the folder, e.g folder-list-item5

Open the console and run this - it clicks the "X" button for every item in that folder.

jQuery("#folder-list-item5").find(".removeFrx").click()
@jupp0r
jupp0r / emacs.rb
Created March 1, 2012 01:11
Homebrew Formular enabling Lion Fullscreen for Emacs 24 git HEAD
require 'formula'
class Emacs < Formula
homepage 'http://www.gnu.org/software/emacs/'
url 'http://ftpmirror.gnu.org/emacs/emacs-23.4.tar.bz2'
mirror 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.4.tar.bz2'
md5 '070c68ad8e3c31fb3cb2414feaf5e6f0'
fails_with_llvm "Duplicate symbol errors while linking.", :build => 2334
@jupp0r
jupp0r / fexpectations.py
Created October 1, 2012 11:26
Fabric expectiations
# author: Jupp Mueller <jupp0r@gmail.com>
from fabric.tasks import Taskfrom fabric.state import env
import fabric.api
from fabric.colors import *
import shortuuid
from StringIO import StringIO
import os
import reclass ExpectTest(Task):
def __init__(self, alias=None, aliases=None, default=False,
*args, **kwargs):

[[TOC]]

Anreise

  • Donnerstag, 23.08.2012, 22:31, EN 300 Berlin - 08:10 Malmö
  • Freitag, 24.08.2012, 09:13, Tåg 530 Malmö C - 13:50 Stockholm C
  • Freitag, 24.08.2012, 17:50, SJ Nattåg 94 Stockholm C - 09:19 Gällivare stn
  • Samstag, 25.08.2012, 09:45, Länstrafiken Buss 93 Gällivare - 12:20 Suorva, ~186 SEK
    • später am Samstag fährt noch ein Bus, da ist man dann aber erst am frühen Abend in Suorva
package hash
import (
"crypto/md5"
"encoding/binary"
"errors"
)
type NodeId int
#include <google/protobuf/util/json_util.h>
#include <iostream>
#include "test.pb.h"
int main(int argc, char** argv) {
auto t = test::Simple{};
t.set_testint(4);
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs
index 8ec9c7f..1f60e9d 100644
--- a/src/bootstrap/compile.rs
+++ b/src/bootstrap/compile.rs
@@ -102,7 +102,7 @@ pub fn std_link(build: &Build,
///
/// Only required for musl targets that statically link to libc
fn copy_third_party_objects(build: &Build, target: &str, into: &Path) {
- for &obj in &["crt1.o", "crti.o", "crtn.o"] {
+ for &obj in &["crtbegin.o", "crtend.o", "crt1.o", "crti.o", "crtn.o"] {

Keybase proof

I hereby claim:

  • I am jupp0r on github.
  • I am jupp0r (https://keybase.io/jupp0r) on keybase.
  • I have a public key whose fingerprint is 059A 2DAE 89C9 6FFF F69C 55ED CA42 D5D2 A815 21E2

To claim this, I am signing this object:

@jupp0r
jupp0r / unique_iterator.rs
Last active September 7, 2016 08:08
Unique Iterator in Rust
use std::collections::HashSet;
use std::option::Option;
use std::hash::{SipHasher, Hash, Hasher};
struct UniqueIterator<I> {
iter: I,
seen_items: HashSet<u64>,
}
fn hash_item<T>(item: &T) -> u64