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
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
Reference: 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 |