Skip to content

Instantly share code, notes, and snippets.


Leandro Lisboa Penz lpenz

Block or report user

Report or block lpenz

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
tboby /
Created May 14, 2017
Code4life cg-brutaltester referee
import java.awt.Point;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

Multi user nix installation

Each section should be run as the user or as root, pay attention to which one!

Install nix single user


curl | sh
suewonjp / toggle-qf-win.vim
Created Jun 7, 2016
[vim tip] Toggle Quickfix Window
View toggle-qf-win.vim
function! ToggleQuickfix()
let l:nr = winnr("$")
if l:nr == 1
joepie91 / .md
Last active Jan 1, 2020
Nix in multi-user mode on a non-NixOS (eg. Debian) system
View .md

This post is deprecated!

Its contents have been moved to the NixOS wiki here, where they are being kept up to date. Please follow the instructions there instead!

The original post is below for posterity.




Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

diogob / .spacemacs
Last active Jan 26, 2017
Spacemacs config file
View .spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
;; Base distribution to use. This is a layer contained in the directory
NegativeMjark /
Last active Jul 3, 2017
Identicon Generator Webapp
#! /usr/bin/env python
from flask import Flask, make_response
from io import BytesIO
from pydenticon import Generator
app = Flask(__name__)
foreground = [
nrc /
Last active Jan 2, 2020
Rust tooling

Rust developer tools - status and strategy

Availability and quality of developer tools are an important factor in the success of a programming language. C/C++ has remained dominant in the systems space in part because of the huge number of tools tailored to these lanaguages. Succesful modern languages have had excellent tool support (Java in particular, Scala, Javascript, etc.). Finally, LLVM has been successful in part because it is much easier to extend than GCC. So far, Rust has done pretty well with developer tools, we have a compiler which produces good quality code in reasonable time, good support for debug symbols which lets us leverage C++/lanaguge agnostic tools such as debuggers, profilers, etc., there are also syntax highlighting, cross-reference, code completion, and documentation tools.

In this document I want to layout what Rust tools exist and where to find them, highlight opportunities for tool developement in the short and long term, and start a discussion about where to focus our time an

You can’t perform that action at this time.