Convert this project.yml (XcodeGen) to Bazel build files:
name: Project
include: [environments.yml, AnotherProject/project.yml]
options:
bundleIdPrefix: com.project
usesTabs: false
indentWidth: 2
tabWidth: 2
DO NOT GIVE ME HIGH LEVEL SHIT, IF I ASK FOR FIX OR EXPLANATION, I WANT ACTUAL CODE OR EXPLANATION!!! I DON'T WANT "Here's how you can blablabla" | |
- Be casual unless otherwise specified | |
- Be terse | |
- Suggest solutions that I didn’t think about—anticipate my needs | |
- Treat me as an expert | |
- Be accurate and thorough | |
- Give the answer immediately. Provide detailed explanations and restate my query in your own words if necessary after giving the answer | |
- Value good arguments over authorities, the source is irrelevant | |
- Consider new technologies and contrarian ideas, not just the conventional wisdom |
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (user, line 0) | |
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (docs_components_stacks_vxrn_loader.js, line 0) | |
[Error] Unhandled Promise Rejection: TypeError: Importing a module script failed. | |
(anonymous function) (_virtual_vxs-entry-EZZ-1xld.js:89:8520) | |
[Error] Unhandled Promise Rejection: SyntaxError: Unexpected identifier 'No'. Expected '}' to end an object literal. | |
(anonymous function) (_virtual_vxs-entry-EZZ-1xld.js:89:8520) | |
[Error] Error loading loader – SyntaxError: Unexpected identifier 'No'. Expected '}' to end an object literal. | |
SyntaxError: Unexpected identifier 'No'. Expected '}' to end an object literal. | |
(anonymous function) (useLoader-DFumXRAL.js:1:623) | |
[Error] RootErrorBoundary.error – SyntaxError: Unexpected identifier 'No'. Expected '}' to end an object literal. |
compose_release() { | |
curl --silent "https://api.github.com/repos/docker/compose/releases/latest" | | |
grep -Po '"tag_name": "\K.*?(?=")' | |
} | |
if ! [ -x "$(command -v docker-compose)" ]; then | |
sudo curl -L https://github.com/docker/compose/releases/download/$(compose_release)/docker-compose-$(uname -s)-$(uname -m) \ | |
-o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose | |
fi |
import axios from 'axios'; | |
const GITHUB_TOKEN = 'xxx'; | |
const GITHUB_USERNAME = 'xxx'; | |
axios.defaults.headers.common['Authorization'] = `token ${GITHUB_TOKEN}`; | |
const unstarRepo = async (repoFullName: string) => { | |
try { | |
await axios.delete(`https://api.github.com/user/starred/${repoFullName}`); |
from langchain.llms.base import LLM | |
from typing import Optional, List | |
from revChatGPT.V1 import Chatbot | |
class revChatGPT(LLM): | |
chatbot: Chatbot = Chatbot(config={ | |
"access_token": "<your token here>" | |
}) |
git clean -xfd | |
git submodule foreach --recursive git clean -xfd | |
git reset --hard | |
git submodule foreach --recursive git reset --hard | |
git submodule update --init --recursive |
for (const d of document.querySelectorAll('.change.num')) { | |
const c = document.createElement('input'); | |
c.type = 'checkbox'; | |
d.insertBefore(c, d.lastElementChild); | |
} | |
// credit: @upsuper |
# https://unix.stackexchange.com/a/112284 | |
reboot_to_windows () | |
{ | |
windows_title=$(grep -i windows /boot/grub/grub.cfg | cut -d "'" -f 2) | |
sudo grub-reboot "$windows_title" && sudo reboot | |
} | |
alias reboot-to-windows='reboot_to_windows' |
#!/usr/bin/osascript | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title Safari Dev or Simulator Debug (web) | |
# @raycast.mode compact | |
# Optional parameters: | |
# @raycast.icon 🤖 |
Convert this project.yml (XcodeGen) to Bazel build files:
name: Project
include: [environments.yml, AnotherProject/project.yml]
options:
bundleIdPrefix: com.project
usesTabs: false
indentWidth: 2
tabWidth: 2