Skip to content

Instantly share code, notes, and snippets.

View mindthink's full-sized avatar
🎯
Focusing

mindthink mindthink

🎯
Focusing
View GitHub Profile
@hstm
hstm / setup-zeromq.sh
Created March 8, 2018 16:50
Setup zeromq in Ubuntu 16.04/Windows Subsystem for Linux (WSL)
#!/bin/bash
# Ref http://zeromq.org/intro:get-the-software
wget https://github.com/zeromq/libzmq/releases/download/v4.2.3/zeromq-4.2.3.tar.gz
# Unpack
tar xvzf zeromq-4.2.3.tar.gz
# Install dependencies
sudo apt-get update && \
@peterspackman
peterspackman / mingw-w64-x86_64.cmake
Last active April 15, 2024 15:04
cmake toolchain file for mingw-w64 x86_64 builds on Ubuntu
# Sample toolchain file for building for Windows from an Ubuntu Linux system.
#
# Typical usage:
# *) install cross compiler: `sudo apt-get install mingw-w64`
# *) cd build
# *) cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-x86_64.cmake ..
# This is free and unencumbered software released into the public domain.
set(CMAKE_SYSTEM_NAME Windows)
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)