This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat > /etc/nginx/conf.d/ssl_optimizations.conf <<EOT | |
# Session Cache Settings | |
ssl_session_cache shared:SSL:20m; | |
ssl_session_timeout 180m; | |
# SSL Cyphers | |
ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES:!ADH:!AECDH:!MD5; | |
# Enable SSL Stapling | |
ssl_stapling on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$palette = imagecreatefrompng(public_path() . "/assets/palette.png"); | |
$metalsPalette = imagecreatefrompng(public_path() . "/assets/metalsPalette.png"); | |
$colorsPalette = imagecreatefrompng(public_path() . "/assets/colorsPalette.png"); | |
$basesPalette = imagecreatefrompng(public_path() . "/assets/basesPalette.png"); | |
$original1 = imagecreatefrompng(public_path() . '/uploads/test1.png'); | |
$original2 = imagecreatefrompng(public_path() . '/uploads/test2.png'); | |
$resampled1 = imagecreatetruecolor(5, 5); | |
$resampled2 = imagecreatetruecolor(5, 5); | |
$adjusted1 = imagecreatetruecolor(5, 5); | |
$adjusted2 = imagecreatetruecolor(5, 5); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class AddStripeFieldsAndTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Http\Controllers\Api; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Http\JsonResponse; | |
use Illuminate\Http\Request; | |
class MyController extends Controller | |
{ | |
public function store(Request $request) : JsonResponse | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# If you would like to do some extra provisioning you may | |
# add any commands you wish to this file and they will | |
# be run after the Homestead machine is provisioned. | |
sudo rm /etc/cron.daily/database-backup | |
sudo bash -c "cat > /etc/cron.daily/database-backup" <<EOL | |
#!/bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sites: | |
# what was before | |
- map: purpleturtles.dev | |
to: /home/vagrant/Sites/purpleturles.com/public | |
# now becomes | |
- map: purpleturtles.dev.example.com | |
to: /home/vagrant/Sites/purpleturles.com/public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nano /etc/postgresql/10/main/pg_hba.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
host all all 192.168.10.0/24 md5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nano /etc/redis/redis.conf |
OlderNewer