sudo find /path/to/your/code -type f -exec chmod 644 {} ;
sudo find code -type d -exec chmod 755 {} ;
sudo chmod -R ug+rwx storage bootstrap/cache
// Recalculating BigQuery costs with adjusted ratios for Silver and Gold layers | |
// Using industry high-end ratios instead of the conservative ratios | |
// BigQuery pricing constants | |
const STORAGE_PRICE_PER_TB = 20; // $20 per TB per month for active storage | |
const STORAGE_PRICE_PER_GB = STORAGE_PRICE_PER_TB / 1024; // ~$0.0195 per GB | |
const COMPUTE_PRICE_PER_TB = 5; // $5 per TB for on-demand queries | |
const COMPUTE_PRICE_PER_GB = COMPUTE_PRICE_PER_TB / 1024; // ~$0.0049 per GB | |
// Original layer sizes from input |
"use strict"; | |
const {OpenAI} = require("openai"); | |
const openai = new OpenAI({ | |
apiKey: process.env.OPENAI, | |
}); | |
//openai assistant ID to make sure we only use 1 assistant - limits costs | |
const assistantId = process.env.OPENAI_ASSISTANT_ID; | |
//assistant instructions | |
const assistantInstructions = process.env.OPENAI_ASSISTANT_INSTRUCTIONS |
#!/bin/sh | |
echo Install all AppStore Apps at first! | |
# no solution to automate AppStore installs | |
read -p "Press any key to continue... " -n1 -s | |
echo '\n' | |
xcode-select --install | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name _; | |
return 301 https://$host$request_uri; | |
} |
$ cd ~ | |
$ sudo curl -sS https://getcomposer.org/installer | sudo php | |
$ sudo mv composer.phar /usr/local/bin/composer | |
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer | |
then you can run | |
$ sudo composer install |
{ | |
"danceability" : 0.907, | |
"energy" : 0.688, | |
"key" : 1, | |
"loudness" : -3.852, | |
"mode" : 0, | |
"speechiness" : 0.348, | |
"acousticness" : 0.282, | |
"instrumentalness" : 0, | |
"liveness" : 0.0653, |
{ | |
"external_urls" : { | |
"spotify" : "https://open.spotify.com/artist/3q7HBObVc0L8jNeTe5Gofh" | |
}, | |
"followers" : { | |
"href" : null, | |
"total" : 1312574 | |
}, | |
"genres" : [ "crunk", "dance pop", "dirty south rap", "east coast hip hop", "gangster rap", "hip hop", "hip pop", "pop rap", "rap", "trap music" ], | |
"href" : "https://api.spotify.com/v1/artists/3q7HBObVc0L8jNeTe5Gofh", |