The Rust Programming Language v2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## base setup with brew | |
https://docs.qmk.fm/getting_started_build_tools.html#macos | |
## custom keymap | |
Copy a predefined keymap and customise it. Replace all the <name> parts in the command lines. | |
$ cp -r keyboards/iris/keymaps/hexwire/ keyboards/iris/keymaps/<name> | |
Now edit cp keyboards/iris/keymaps/hexwire/keymap.c. | |
$ make iris/rev2:<name> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"keyboard":"bananasplit","activeLayout":4,"keymap":[[[{"value":"ESC","type":null,"mod":null},{"value":"1","type":null,"mod":null},{"value":"2","type":null,"mod":null},{"value":"3","type":null,"mod":null},{"value":"4","type":null,"mod":null},{"value":"5","type":null,"mod":null},{"value":"6","type":null,"mod":null},{"value":"7","type":null,"mod":null},{"value":"8","type":null,"mod":null},{"value":"9","type":null,"mod":null},{"value":"0","type":null,"mod":null},{"value":"-","type":null,"mod":null},{"value":"=","type":null,"mod":null},{"value":"BSPACE","type":null,"mod":null}],[{"value":"TAB","type":null,"mod":null},{"value":"Q","type":null,"mod":null},{"value":"W","type":null,"mod":null},{"value":"E","type":null,"mod":null},{"value":"R","type":null,"mod":null},{"value":"T","type":null,"mod":null},{"value":"Y","type":null,"mod":null},{"value":"U","type":null,"mod":null},{"value":"I","type":null,"mod":null},{"value":"O","type":null,"mod":null},{"value":"P","type":null,"mod":null},{"value":"[","type":null,"mod":nu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# adaptation of https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
# ~/.macos — https://mths.be/macos | |
# Close any open System Preferences panes, to prevent them from overriding | |
# settings we’re about to change | |
osascript -e 'tell application "System Preferences" to quit' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
BASE_VERSION="bash-4.3" | |
MAX_PATCH=42 | |
BASE_URL="http://ftp.gnu.org/gnu/bash" | |
PATCHES_URL="${BASE_URL}/${BASE_VERSION}-patches" | |
ARC="${BASE_VERSION}.tar.gz" | |
rm -rf ${BASE_VERSION} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# copied from https://github.com/mathiasbynens/dotfiles/blob/master/.osx?os-x-10.8 | |
# Disable the sound effects on boot | |
sudo nvram SystemAudioVolume=" " | |
# Menu bar: disable transparency | |
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get TBB from https://www.threadingbuildingblocks.org/download | |
unzip source archives | |
mkdir release | |
cd release/ | |
cmake -DCMAKE_BUILD_TYPE=RELEASE -DWITH_TBB=on -DTBB_INCLUDE_DIRS=/opt/tbb/include -DTBB_LIB_DIR=/opt/tbb/lib .. |
The torch project: https://github.com/torch/torch7
Everything gets installed under /opt/lua
$ mkdir -p /opt/lua && sudo chown $USER /opt/lua