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
"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", |
{ | |
"tracks" : { | |
"href" : "https://api.spotify.com/v1/search?query=artist%3A50+cent+track%3Ain+the+club&offset=0&limit=20&type=track&market=GB", | |
"items" : [ { | |
"album" : { | |
"album_type" : "album", | |
"artists" : [ { | |
"external_urls" : { | |
"spotify" : "https://open.spotify.com/artist/0LyfQWJT6nXafLPZqxe9Of" | |
}, |