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
/* | |
node.js vs Python with Greenlets (say gevent) | |
I don't get why node.js is being so hyped. | |
Sure, the idea of writing things in JavaScript both on the client and server-side is really nice. | |
And JavaScript really fit an event-driven environment with its browser heritage. | |
But why on earth is boomerang code so appealing to write? I don't get. Am I missing something obvious? | |
All examples of node.js I see are littered with callbacks yet Ryan Dahl thinks coroutines suck. It doesn't add up for me. |
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 | |
# | |
# Lock GPU and MEM clocks to max MHz | |
# | |
# - benchmarking shows there is no need to override the MEM clock | |
# | |
echo | |
echo Locking GPU clock to max MHz for debugging porpoises... | |
# set to max |
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
... | |
action_with_slack_notification = %(banaction)s[name=%(__name__)s, port="%(port)$ | |
slack[name=%(__name__)s] | |
action = %(action_with_slack_notification)s | |
... |
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
# save history to ~/.bash_history as soon as command is run | |
export PROMPT_COMMAND='history -a' | |
# save unlimited history | |
# osx doesn't seem to respect =-1 or = options | |
export HISTSIZE=9999999999 | |
export HISTFILESIZE=999999999 | |
# osx doesn't actually respect this and it'll fall back to unix timestamp (which we want) | |
export HISTTIMEFORMAT="%d/%m/%y %T " |
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
update-alternatives --install \ | |
/usr/bin/clang clang /usr/bin/clang-13 200 \ | |
--slave /usr/bin/clang++ clang++ /usr/bin/clang++-13 \ | |
--slave /usr/bin/clang-apply-replacements clang-apply-replacements /usr/bin/clang-apply-replacements-13 \ | |
--slave /usr/bin/clang-change-namespace clang-change-namespace /usr/bin/clang-change-namespace-13 \ | |
--slave /usr/bin/clang-check clang-check /usr/bin/clang-check-13 \ | |
--slave /usr/bin/clang-cl clang-cl /usr/bin/clang-cl-13 \ | |
--slave /usr/bin/clang-cpp clang-cpp /usr/bin/clang-cpp-13 \ | |
--slave /usr/bin/clang-doc clang-doc /usr/bin/clang-doc-13 \ | |
--slave /usr/bin/clang-extdef-mapping clang-extdef-mapping /usr/bin/clang-extdef-mapping-13 \ |