- Create your droplet. Name it, select your size and location, then hit the Applications tab and select (as of this writing) "LAMP on 14.04". Add your SSH key if you want, and submit.
- SSH into your new droplet, and maybe check to make sure the following PHP modules have been installed: (In my recent experience, these have all been installed automatically, but that could change, and it takes 10 seconds to check.)
apt-get install php5-gd
apt-get install php5-mysql
apt-get install php5-curl
- Make sure mod_rewrite is enabled, with
a2enmod rewrite
. - If you like, increase PHP's
upload_max_filesize
value by editing the php.ini file, with this:nano /etc/php5/apache2/php.ini
- Give Apache a restart:
service apache2 restart
- Change the MySQL root password:
mysqladmin -u root -p'[FOO]' password newpassword
(The initial password is displayed in the terminal when you first SSH into the new server. Look for "Your MySQL root user's password is [FOO]".) - Log i
### Keybase proof | |
I hereby claim: | |
* I am adamlaz on github. | |
* I am adamlaz (https://keybase.io/adamlaz) on keybase. | |
* I have a public key ASAE2wQmPW_afK0f2Lp0l1JqvRnSGtGyYqhak07nD5RNyAo | |
To claim this, I am signing this object: |
This script for Google Spreadsheets allows you to generate slugs for your data such as might be used for creating unique urls.
Use it like this!
# | A | B | C |
---|---|---|---|
1 | a | b | slug |
2 | foo | baz bing | =slugify(A2:B4) |
3 | bar | BAZ | |
4 | FOO | baz-bing |
####Rets Rabbit http://www.retsrabbit.com
Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.
#!/usr/bin/env python | |
""" | |
To use: | |
1. install/set-up the google cloud api and dependencies listed on https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/texttospeech/cloud-client | |
2. install pandoc and pypandoc | |
3. create and download a service_account.json ("Service account key") from https://console.cloud.google.com/apis/credentials | |
4. run GOOGLE_APPLICATION_CREDENTIALS=service_account.json python make_audiobook.py book_name.epub | |
""" | |
import sys | |
import os.path |
// This selects the right swipe button class name, and keeps clicking once a second. | |
func = setInterval(function() { | |
var swype = document.getElementsByClassName("recsGamepad__button--like") | |
swype[0].click() | |
}, 100) |
Git Commit Guidelines We have very precise rules over how our git commit messages can be formatted. This leads to more readable messages that are easy to follow when looking through the project history. But also, we use the git commit messages to generate the AngularJS change log.
Commit Message Format Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:
():
<!doctype html> | |
<html> | |
<head> | |
<style> | |
html, body { | |
font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Roboto, 'Segoe UI', sans-serif; | |
} | |
.color-grid { | |
display: grid; |