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| 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: 2Reference: https://gist.github.com/insdavm/b1034635ab23b8839bf957aa406b5e39
Check status:
~ » cat /proc/sys/net/ipv4/ip_forward | source ~/.rc.private | |
| # rbenv | |
| rbenv-init() { | |
| if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
| eval "$(rbenv init -)" | |
| } | |
| pyenv-init() { | |
| eval "$(pyenv init --path)" |
| registry=https://some.web.site.com/_packaging/[project-name]/npm/registry/ | |
| //some.web.site.com/_packaging/[project-name]/npm/registry/:always-auth=true | |
| update-notifier=false | |
| package-lock=false |
| use std::env; | |
| use std::fs; | |
| // extern crate base64; | |
| // From the specification | |
| // https://docs.microsoft.com/en-us/onedrive/developer/code-snippets/quickxorhash | |
| // According to the spec, the block is "big-endian" | |
| type Block = [u8; 20]; // Intrinsically with Copy trait |