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
# Cross-compilation commands for Rust on M1 (arm64) macOS. | |
brew tap messense/macos-cross-toolchains | |
# -> macOS arm64 | |
cargo build --release | |
# -> macOS x86-64 | |
SDKROOT=$(xcrun -sdk macosx12.3 --show-sdk-path) \ | |
MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx12.3 --show-sdk-platform-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
### A Pluto.jl notebook ### | |
# v0.16.1 | |
using Markdown | |
using InteractiveUtils | |
# ╔═╡ 4149ed32-773a-48e8-a871-879d36d441f1 | |
using LinearAlgebra | |
# ╔═╡ 5c627248-2663-11ec-0f78-a773b4888ba6 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
[user] | |
email = [email protected] | |
name = Eric Zhang | |
[push] | |
default = upstream | |
[merge] | |
conflictstyle = diff3 | |
[color] | |
ui = auto | |
[alias] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Set default terminal | |
set -g default-terminal "screen-256color" | |
# Tell Tmux that outside terminal supports true color | |
set -ga terminal-overrides ",xterm-256color*:Tc" | |
# Enable mouse | |
set -g mouse on | |
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right |

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
0 8 * * * $HOME/scripts/restart.sh | |
15 8 * * * $HOME/scripts/fullrender.sh |
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/bash | |
# Check for dependencies | |
if [ -z $(which git) ]; then | |
>&2 echo "Could not find Git." | |
exit 1 | |
fi | |
if [ -z $(which wget) ]; then | |
>&2 echo "Could not find wget." | |
exit 1 |
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
#include <cstdio> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/stat.h> | |
#include <sys/wait.h> | |
using namespace std; | |
int main() { | |
int fd = open("fd.txt", O_CREAT | O_WRONLY | O_TRUNC, 644); |