-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault_bash_rc.bashrc
More file actions
118 lines (89 loc) · 3.34 KB
/
default_bash_rc.bashrc
File metadata and controls
118 lines (89 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
export SENTRY_AUTH_TOKEN=c4c85e821c2945a3940bb39debf5707da5f179e98da24ddbbf15059333691056
export SENTRY_ORG=bashful.ai
export SENTRY_PROJECT=example-project
export HUGGINGFACE_AUTH_TOKEN=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
# James Nyu's key
# export OPENAI_API_KEY="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"
export AIRTABLE_API_KEY="patVjdFcTHxEWiioP.8f8e0084ec5730c49fd395486121651d618ce9f12519a61d5e08d18206884f80"
# Ben Garrad's Key
export OPENAI_API_KEY="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"
export SERPAPI_API_KEY="f3da086aada6d31a07c91282c8815a29a9cddc0d0137a22fd7debb5f72259480"
# export CLOUDSDK_PYTHON=~/Documents/custominstallations/brains_functions/bashful_api/Scripts/activate
function bashful_api() {
source ~/Documents/custominstallations/brains_functions/bashful_api/Scripts/activate
}
function agi() {
source ~/Documents/custominstallations/Auto-GPT/auto_gpt/Scripts/activate
}
function embed() {
source ~/Documents/custominstallations/embeddable_logos/embedded/Scripts/activate
}
function getUserGeneratedImagesFromAirtable(){
curl https://api.airtable.com/v0/appa3JTpv4i2KKfEo/UserGeneratedImages -H "Authorization: Bearer patVjdFcTHxEWiioP.8f8e0084ec5730c49fd395486121651d618ce9f12519a61d5e08d18206884f80"
}
function seeOpenAIModels(){
curl -H "Authorization: Bearer $OPENAI_API_KEY" https://api.openai.com/v1/models
}
# function ff-get_model_configs(){
# functions-framework --target get_model_configs --source main.py --debug
# }
function ff-market(){
functions-framework --target $1 --source bashful_marketplace.py --debug --port 8080
}
function ff-photoshop(){
functions-framework --target $1 --source bashful_photoshop.py --debug --port 8080
}
function ff-studio(){
functions-framework --target $1 --source bashful_studio.py --debug --port 8080
}
# function gcloud-deploy-img2img(){
# gcloud functions deploy img2img \
# --region=us-central1 \
# --runtime=python310 \
# --source=. \
# --entry-point=img2img \
# --trigger-http
# }
function gcloud-deploy(){
gcloud functions deploy $1 \
--region=us-central1 \
--runtime=python310 \
--source=. \
--entry-point=$1 \
--trigger-http
}
function editsource(){
code ~/.bashrc
}
function sourceme(){
source ~/.bashrc
}
# function deep(){
# source ~/Documents/custominstallations/deepspeed/deep_speed/Scripts/activate
# }
# function lang(){
# source ~/Documents/custominstallations/langchain_playground/langchain/Scripts/activate
# }
# function bad(){
# source ~/Documents/custominstallations/bad_crowdfunding/bad_funding_server/bad/Scripts/activate
# }
# function brains(){
# source ~/Documents/custominstallations/brains_functions/bashful_api/Scripts/activate
# }
function bashful_plugin_data(){
# Open explorer in to the given directory
# C:\Users\stacho\AppData\Roaming\Adobe\UXP\PluginsStorage\PHSP\24\External\0d4a6a37\PluginData
explorer C:\\Users\\stacho\\AppData\\Roaming\\Adobe\\UXP\\PluginsStorage\\PHSP\\24\\External\\0d4a6a37\\PluginData
}
function set_marketplace() {
gcloud config set project bashful-marketplace-381512
}
function set_bash_photoshop() {
gcloud config set project bashful-photoshop
}
function deploy_gcloud_app() {
gcloud app deploy
}
function create_gcloud_project() {
gcloud projects create $1
}