Source: Install and configure MySQL / MariaDB (Ubuntu)
To delete MySQL, first run the following command to make sure it’s not running:
> sudo systemctl stop mysql
Source: Install and configure MySQL / MariaDB (Ubuntu)
To delete MySQL, first run the following command to make sure it’s not running:
> sudo systemctl stop mysql
# Mailhog | |
MAIL_MAILER=smtp | |
MAIL_HOST=0.0.0.0 | |
MAIL_PORT=1025 | |
MAIL_USERNAME=null | |
MAIL_PASSWORD=null | |
MAIL_ENCRYPTION=null |
# The following script will deploy a Laravel 5 applicaion on AWS Elastic Beanstalk. | |
# Add to .ebextensions at the root of your application and name your commands file (e.g., commands.config) | |
# -------------------------------- Commands ------------------------------------ | |
# Use "commands" key to execute commands on the EC2 instance. The commands are | |
# processed in alphabetical order by name, and they run before the application | |
# and web server are set up and the application version file is extracted. | |
# ------------------------------------------------------------------------------ | |
commands: | |
01updateComposer: |
Other people's projects:
My projects (tutorials are on my blog at http://maxoffsky.com):
function mamp() { | |
# | |
# Default location of the apache conf file for MAMP | |
CONF_FILE="/Applications/MAMP/conf/apache/httpd.conf" | |
# | |
# Fish existing doc root out of conf file | |
LINE=$(cat $CONF_FILE | grep ^DocumentRoot) | |
QUOTED_STRING=${LINE/DocumentRoot /} | |
OLD_DOC_ROOT=${QUOTED_STRING//\"/} | |
# |
<!-- ADD THIS SOMEWHERE IN YOUR MASTER TEMPLATE (OR WHEREEVER YOU WANT IT TO APPEAR) --> | |
<? if (!$user->twitter->connected): ?> | |
You are <strong>not</strong> connected to Twitter. <a href='/twitter/redirect'>Would you like to connect?</a> | |
<? else: ?> | |
You are connected to Twitter. <a href='/twitter/clearsessions'>Disconnect</a> | |
<? endif; ?> |
import os | |
import time | |
document = open("My Clippings.txt","r") | |
data = "".join(document.readlines()) | |
notes = [] | |
try: | |
clippings = data.split('==========') | |
for clip in clippings: |