https://www.arduino.cc/en/Guide/HomePage https://robotacademy.net.au/masterclass/introduction-to-robotics
View init.lua
This file contains 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
local call = vim.call | |
local cmd = vim.cmd | |
local plug = vim.fn['plug#'] | |
-- https://github.com/junegunn/vim-plug/wiki/tips#automatic-installation | |
cmd [[ | |
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' | |
if empty(glob(data_dir . '/autoload/plug.vim')) | |
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC |
View gist:36d0a62033cf159fb10f0cb3abdc8d38
This file contains 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
$ make spec | |
Using /usr/bin/llvm-config-13 [version= 13.0.0] | |
g++ -c -o src/llvm/ext/llvm_ext.o src/llvm/ext/llvm_ext.cc -I/usr/lib/llvm-13/include -std=c++14 -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS | |
CC="cc -fuse-ld=lld" CRYSTAL_CONFIG_BUILD_COMMIT="a3ee70ca0" CRYSTAL_CONFIG_PATH='$ORIGIN/../share/crystal/src' SOURCE_DATE_EPOCH="1641471908" ./bin/crystal build -D strict_multi_assign -Dwithout_interpreter --exclude-warnings spec/std --exclude-warnings spec/compiler --exclude-warnings spec/primitives -o .build/all_spec spec/all_spec.cr | |
ld.lld: error: cannot open _main.o: No such file or directory | |
ld.lld: error: cannot open S-lice40U-I-nt841.o: No such file or directory | |
ld.lld: error: cannot open P-ointer40U-I-nt841.o: No such file or directory | |
ld.lld: error: cannot open A-rgumentE-rror.o: No such file or directory | |
ld.lld: error: cannot open E-xception5858C-allS-tack.o: No such file or directory | |
ld.lld: error: cannot open A-rray40P-ointer40V-oid4141.o: |
View declare-n.bash
This file contains 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
for e in 'key' 'tar' 'sig' | |
do | |
declare -n ref="$e" | |
wget --output-document "${ref[file]}" "${ref[url]}" | |
done |
View webdev.md
I: The Internet
. https://en.wikipedia.org/wiki/Internet History https://en.wikipedia.org/wiki/History_of_the_Internet
II: The Internet Protocol Suite
.
View antigolf_path_parse.bash
This file contains 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 | |
env 1>&1 | | |
grep '^PATH=' 1> >(cat) | | |
cut -c 6- | | |
awk ' | |
{ | |
old = ":" | |
new = "\n" | |
while ($0 ~ /:/) { |
View setup_deluge.bash
This file contains 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 | |
sudo apt-get update | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:deluge-team/ppa | |
sudo apt-get update | |
sudo apt-get install deluged deluge-console | |
sudo adduser --system --gecos 'Deluge Service' --disabled-password --group --home /var/lib/deluge deluge |
View setup_ufw.bash
This file contains 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 | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install ufw -y | |
sudo ufw allow OpenSSH #application name | |
sudo ufw allow 26656 | |
sudo ufw enable |
View setup_ssh.bash
This file contains 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 | |
read -s -p 'user:' user | |
adduser --gecos '' --ingroup sudo "$user" | |
install -o "$user" -g sudo -m 700 -d "/home/$user/.ssh" | |
install -o "$user" -g sudo -m 644 /dev/null "/home/$user/.ssh/authorized_keys2" | |
cat </root/.ssh/authorized_keys2 >>"/home/$user/.ssh/authorized_keys2" | |
rm /root/.ssh/authorized_keys2 |