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
@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):

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 / load-gpg-agent-environment.el
Created December 18, 2015 10:09
Using gpg-agent with emacs under OS X
;; read gpg-agent environment
(defun read-env-line (line)
"read a env line and post to environment"
(let ((key-value-pair (split-string line "=" t)))
(setenv (car key-value-pair) (car (last key-value-pair))))
)
(defvar gpg-agent-info-file)
(setq gpg-agent-info-file (concat (getenv "HOME") "/.gpg-agent-info"))
(when
(file-exists-p gpg-agent-info-file)

[[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
@jupp0r
jupp0r / LogContext.h
Last active March 28, 2017 03:36
Structured logging adapter for C++
#pragma once
#include <vector>
#include <string>
#include <iostream>
class LogContext
{
public:
template <typename T>
#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"] {