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
#!/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" | |
}, |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<title></title> | |
<link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet"> | |
<script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.min.js"></script> |