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
// Inspired by https://ospfranco.com/post/2021/02/24/how-to-create-a-javascript-jsi-module/ | |
struct MuttableStringBuffer : facebook::jsi::MutableBuffer { | |
MuttableStringBuffer(std::string s) : _s(std::move(s)) {} | |
size_t size() const override { | |
return _s.length(); | |
} | |
uint8_t *data() override { | |
return reinterpret_cast<uint8_t *>(_s.data()); |
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
brew install [email protected] | |
brew uninstall --ignore-dependencies openssl@3 | |
rvm install 2.5.1 | |
brew install --ignore-dependencies openssl@3 |
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
alias git_delete_no_upstream="git branch --format "%(refname:short) %(upstream)" | awk '{if (!$2) print $1;}' | xargs git branch -D" |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
# Matches the version number from the output of xcodebuild -version | |
# Example: 13.4.1 | |
xcodeBin=/usr/bin/xcodebuild | |
xcodeVersionOutput=$($xcodeBin -version) | |
xcodeVersion=$(echo "$xcodeVersionOutput" | perl -pe '($_)=/([0-9]+([.][0-9]+)+)/') |
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
chrome.webRequest.onHeadersReceived.addListener( | |
function (details) { | |
for (var i = 0; i < details.responseHeaders.length; ++i) { | |
if (details.responseHeaders[i].name.toLowerCase() == 'x-frame-options') { | |
details.responseHeaders.splice(i, 1); | |
return { | |
responseHeaders: details.responseHeaders | |
}; | |
} | |
} |