Skip to content

Instantly share code, notes, and snippets.

View linville's full-sized avatar

Aaron Linville linville

View GitHub Profile
@jniemann66
jniemann66 / qtgodbolt.md
Last active March 11, 2024 08:11
Running Qt on Godbolt compiler explorer
@application2000
application2000 / how-to-install-latest-gcc-on-ubuntu-lts.txt
Last active May 23, 2024 07:53
How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
These commands are based on a askubuntu answer http://askubuntu.com/a/581497
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
@nicktoumpelis
nicktoumpelis / repo-rinse.sh
Created April 23, 2014 13:00
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
#include <iostream>
#include <hdf5.h>
// Constants
const char saveFilePath[] = "test.h5";
const hsize_t ndims = 2;
const hsize_t ncols = 3;
int main()
@algrs
algrs / iphoto_faces_graph.rb
Created January 25, 2011 15:06
Relationship graphs from iPhoto '11 face detections
#!/usr/bin/env ruby
require 'rubygems'
# sudo gem install ruby-graphviz
# sudo port install graphviz
require 'graphviz'
# NB: The following line deals with the case where your iPhoto library is not in the usual place.
# If you have more than one iPhoto libraries, please set this manually.
IPHOTO_LIBRARY = `mdfind "kMDItemKind == 'iPhoto Library' && kMDItemContentTypeTree == com.apple.package"`.strip
LIBRARY = File.join(IPHOTO_LIBRARY, "Database", "Library.apdb")