Skip to content

Instantly share code, notes, and snippets.

Avatar
🍊
Dying from oranges (on campus)

Christopher Degawa 1480c1

🍊
Dying from oranges (on campus)
View GitHub Profile
@bcardiff
bcardiff / list-deps.cr
Last active Nov 18, 2021
List binary dependencies to build a minimal docker image from scratch
View list-deps.cr
unless ARGV.size > 0
puts " Missing executable file argument"
puts " Usage (in a Dockerfile)"
puts " RUN crystal run ./path/to/list-deps.cr -- ./bin/executable"
exit 1
end
executable = File.expand_path(ARGV[0])
unless File.exists?(executable)
@peterspackman
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(CMAKE_SYSTEM_NAME Windows)
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
@cortesben
cortesben / hg-commands.md
Last active May 24, 2022
Mercurial command cheat sheet
View hg-commands.md

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