Skip to content

Instantly share code, notes, and snippets.

Dying from oranges (on campus)

Christopher Degawa 1480c1

Dying from oranges (on campus)
View GitHub Profile
bcardiff /
Last active Nov 18, 2021
List binary dependencies to build a minimal docker image from scratch
unless ARGV.size > 0
puts " Missing executable file argument"
puts " Usage (in a Dockerfile)"
puts " RUN crystal run ./path/to/ -- ./bin/executable"
exit 1
executable = File.expand_path(ARGV[0])
unless File.exists?(executable)
peterspackman / mingw-w64-x86_64.cmake
Created Aug 16, 2016
cmake toolchain file for mingw-w64 x86_64 builds on Ubuntu
View mingw-w64-x86_64.cmake
# 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 ..
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
cortesben /
Last active May 24, 2022
Mercurial command cheat sheet

Mercurial Commands

Commands Description
hg pull get latest changes like git pull use flags like -u IDK why yet
hg add only for new files
hg commit add changes to commit with -m for message just like git
hg addremove adds new files and removes file not in your file system
hg incoming see changes commited by others
hg outgoing see local commits