๐
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
| on.player.online():each(function(p) | |
| p:signal("Identity"):data({ fid = p:fid() }):send() | |
| scene.run(function(ctx) | |
| local signer = fc.signer(p):request() | |
| if signer.status == "pending_approval" then p:signal("FarcasterSignerApproval"):data({ url = signer.signer_approval_url }):send() end | |
| while fc.signer(p):status() == "pending_approval" do ctx:sleep(5) end | |
| p:signal("FarcasterReady"):data({}):send() | |
| end) | |
| end) |
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 | |
| sudo apt update -q | |
| curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash | |
| export NVM_DIR="$HOME/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
| [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | |
| nvm install --lts |
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 | |
| echo "Enter your OpenAI API key: " | |
| read OPENAI_API_KEY | |
| read -p "Install Docker? (y/n, default: y): " install_docker | |
| if [[ "$install_docker" == "n" ]]; then | |
| export DISABLE_DOCKER_INSTALLATION=1 | |
| else | |
| export DISABLE_DOCKER_INSTALLATION=0 |