Skip to content

Instantly share code, notes, and snippets.

View CiprianSpiridon's full-sized avatar

Ciprian Spiridon CiprianSpiridon

View GitHub Profile
#!/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)"
@CiprianSpiridon
CiprianSpiridon / laravel-framework-files-permissions-security.md
Created April 27, 2017 15:09
laravel freamework file permissions - Security

set all files to 644

sudo find /path/to/your/code -type f -exec chmod 644 {} ;

make all folders 755

sudo find code -type d -exec chmod 755 {} ;

make sorage and cache writable

sudo chmod -R ug+rwx storage bootstrap/cache

@CiprianSpiridon
CiprianSpiridon / default.conf
Created April 24, 2017 12:16
Redirect all HTTP requests to HTTPS with Nginx
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
@CiprianSpiridon
CiprianSpiridon / Install NGINX + PHP7.0 + PHP-FPM on Amazon Linux AMI.md
Last active July 15, 2021 19:44
Install NGINX + PHP7.0 + PHP-FPM + composer + NodeJS + NPM on Amazon Linux AMI

update

sudo yum update

#install nginx sudo yum install nginx -y

#install php 7

@CiprianSpiridon
CiprianSpiridon / git-flow.md
Last active March 21, 2017 14:57
git flow

Initialize

gitflow git
git flow init git init
git commit --allow-empty -m "Initial commit"
git checkout -b develop master

Connect to the remote repository

{
"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",
@CiprianSpiridon
CiprianSpiridon / track_response.json
Last active November 3, 2016 11:38
searching for : artist:50 cent track:in the club
{
"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>