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
/** | |
* | |
* Below emulates Laravel 4 Regular Expression Route Constraints in Laravel 3. | |
* | |
**/ | |
/** | |
* Application Route Validation Patterns | |
* Router::patterns['(:name)'] = '(regex pattern)'; | |
*/ |
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
# Give write permissions to the other group for log file. | |
slow_query_log = 1 | |
slow_query_log_file = /var/log/mysql/slow.log | |
long_query_time = 10 | |
log_queries_not_using_indexes = 1 |
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
var optionalString:String? = nil | |
optionalString = "Temp" | |
let constantString = "No" | |
if let constantString = optionalString | |
{ | |
print("The string's value is: \(constantString)") | |
} | |
print("constantString is \(constantString)") |
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
#!/usr/bin/env bash | |
# | |
# Author: Robert Brisita <[first-initial][last name] at gmail dot com> | |
# | |
# A non-interactive installation script for a Nginx Laravel application using MySQL. | |
# | |
# Tested on Ubuntu 16.04 LTS | |
##### | |
# Project details |
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 | |
# | |
# Author: Bert Van Vreckem <[email protected]> | |
# | |
# A non-interactive replacement for mysql_secure_installation | |
# | |
# Tested on CentOS 6, CentOS 7, Ubuntu 12.04 LTS (Precise Pangolin), Ubuntu | |
# 14.04 LTS (Trusty Tahr). | |
# | |
# Slighlty modified for MySQL 5.7 - Robert Brisita <[first-initial][last name] at gmail dot com> |
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
[client] | |
user = | |
password = |
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
#!/usr/bin/env bash | |
echo -e "\n*****\n* Generating Diffie-Hellman parameters for better security.\n*****\n" | |
# Add Diffie-Hellman parameters. | |
# Create secure Diffie-Hellman parameters. | |
sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048 | |
NGINX_CONF="/etc/nginx/sites-available/default" |
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
Explains the the significance of a digit's value placement in meters. | |
0,0 is where the equator and the meridian line meet. | |
+/-180° to create a full circle. | |
+/-XYZ.ABCDEFGHIJ | |
+/- North/South, East/West according to the equator and the meridian line. | |
X Non-zero tell us we are using Longitude. | |
Y Position to about 1000km - Continent or Ocean location. |
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
/* */ | |
/* debug Bootstrap 3 grid by Andre Firchow */ | |
/* */ | |
/* */ | |
.debug-output, body:before, [class*="col-"]:after, [class*="col-"]:before { | |
content: ""; | |
position: absolute; | |
top: 1px; | |
right: 1px; | |
font-size: 10px; |
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
#!/usr/bin/env bash | |
# | |
# Author: Robert Brisita <[first-initial][last name] at gmail dot com> | |
# | |
# An Angular installation script for a Laravel project. | |
# This should be run on a new Laravel project install. | |
# | |
# Tested on Mac OS X 10.13.6 | |
# |
OlderNewer