- Grab the following:
- https://github.com/kelnos/rust-xtensa (branch xtensa-update-12-02-2021) OR download https://files.spurint.org/rust/rust-1.50.0-nightly-xtensa.tar.bz2
- https://github.com/kelnos/esp32-hal (branch rust-1.50)
- https://github.com/kelnos/esp32-wifi (branch experiments)
- If you've downloaded the Rust tarball, unpack to /opt/xtensa. If you are building from source, use the script provided in this gist (
rust-xtensa-build
) to build it. - Install form:
cargo install form
- Install svdtools (requires python 3.6 or above):
pip3 install --upgrade --user svdtools
- Install an old-ish version of svd2rust using:
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
// The name of the Gmail labels and categories that are to be auto-purged | |
var GMAIL_LOCATIONS = { | |
"label": [ | |
"<some-label>" | |
], | |
"category": [ | |
"promotions" | |
] | |
}; |
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
[:~] $ cat what.scala | |
object what { | |
object the { | |
case object hell | |
} | |
def main(args: Array[String]): Unit = | |
println(what.the.hell.getClass.getSimpleName) | |
} | |
[:~] $ scalac what.scala |
So I do some docker things:
$ ls project
README.md src
$ ls project/src
main test
$ cat Dockerfile
# ... other stuff...
WORKDIR /work
I hereby claim:
- I am kelnos on github.
- I am kelnos (https://keybase.io/kelnos) on keybase.
- I have a public key whose fingerprint is 0111 BE68 55BF 32D4 CE90 EE18 28F7 0DC9 50FB 17A7
To claim this, I am signing this object:
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
--- gistfile0.xml 2013-03-14 16:59:33.676442261 -0700 | |
+++ gistfile1.xml 2013-03-14 16:59:35.100413108 -0700 | |
@@ -1,59 +1,44 @@ | |
<hudson.plugins.emailext.ExtendedEmailPublisher> | |
- <recipientList>{recipients}</recipientList> | |
+ <recipientList></recipientList> | |
<configuredTriggers> | |
<hudson.plugins.emailext.plugins.trigger.UnstableTrigger> | |
<email> | |
- <recipientList></recipientList> |
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 | |
set -ex | |
stuff=$(xrandr | grep -v -E '^eDP1' | grep ' connected') && have_ext=yes || have_ext=no | |
if [ "$have_ext" = "no" ]; then | |
# just make sure it's off | |
for op in $(xrandr | awk '/disconnected/ { print $1 }'); do | |
xrandr --output $op --off |
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
# from memory; could have errors | |
remote-host $ tar czf - * | ssh local-host "mkdir destdir && cd destdir && tar xzf -" | |
# or if you can't make connections remote-host to local-host: | |
local-host $ mkdir destdir && cd destdir && ssh remote-host "cd srcdir && tar czf - *" | tar xzf - |