Skip to content

Instantly share code, notes, and snippets.

@jimporter
jimporter / fenix-startup
Last active March 4, 2020 21:31
Get startup "fully drawn" numbers for several Fenix runs
#!/usr/bin/env python3
import argparse
import json
import re
import statistics
import subprocess
import sys
import textwrap
import time
@jimporter
jimporter / pydebianize
Last active July 6, 2019 21:47
Tool to help debianize Python packages for uploading to a PPA
#!/usr/bin/env python
import argparse
import os
import re
import subprocess
import tarfile
from contextlib import contextmanager
description = """
@jimporter
jimporter / build-libc++
Created July 29, 2014 22:34
Build libc++
#!/bin/zsh
SRC_DIR=$HOME/src/libcxx
BUILD_DIR=$HOME/src/build-libcxx
INSTALL_DIR=/usr
svn co --quiet http://llvm.org/svn/llvm-project/libcxx/trunk $SRC_DIR
mkdir $BUILD_DIR
cd $BUILD_DIR
@jimporter
jimporter / build-boost-libc++
Last active August 7, 2022 20:10
Build Boost against libc++
#!/bin/sh
# First, build libc++ See <http://libcxx.llvm.org/>, "Build on Linux using CMake
# and libsupc++." and substitute libsupc++ for libstdc++. NOTE: You'll probably
# need to explicitly link libsupc++ when you compile your own code!
#
# Next, download Boost and extract it somewhere. Set SRC_DIR to that location.
SRC_DIR=$HOME/src/boost_1_55_0
# Set this to be the install prefix. "/usr" is also a good choice.