Skip to content

Instantly share code, notes, and snippets.

View adamlaz's full-sized avatar

Adam Lazarus adamlaz

View GitHub Profile
@adamlaz
adamlaz / Follow SVG Path - anime.js.markdown
Created June 27, 2016 23:25
Follow SVG Path - anime.js
@adamlaz
adamlaz / eems-droplet.md
Last active July 18, 2016 03:27 — forked from murtaugh/eems-droplet-for-EE2.md
Set up a DigitalOcean droplet for ExpressionEngine
  1. 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.
  2. 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

  3. Make sure mod_rewrite is enabled, with a2enmod rewrite.
  4. If you like, increase PHP's upload_max_filesize value by editing the php.ini file, with this: nano /etc/php5/apache2/php.ini
  5. Give Apache a restart: service apache2 restart
  6. 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]".)
  7. 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:

Abbie's Cauliflower

INGREDIENTS:

  • 2 cloves garlic
  • 1/2 medium shallot
  • tablespoon Tablespoon fresh ginger
  • 1/4 teaspoon dry mustard
  • 1/2 teaspoon sugar
  • 1/2 teaspoon salt
@adamlaz
adamlaz / Slugify in gSheets.md
Created December 11, 2017 21:47 — forked from onyxfish/README.md
Google Spreadsheets script to generate slugs from a range of cells

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
@adamlaz
adamlaz / Big List of Real Estate APIs.md
Created January 30, 2018 02:37 — forked from patpohler/Big List of Real Estate APIs.md
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####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
@adamlaz
adamlaz / tinderSwipe.js
Last active September 1, 2018 23:57
For Tinder... Open up web UI and execute this in console. It automatically likes profile each second.
// 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)
@adamlaz
adamlaz / adamsGitCommitGuidelines.md
Last active March 10, 2023 01:17
My ideal git commit guidelines

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:

():

@adamlaz
adamlaz / theme-colors.html
Created November 11, 2018 23:42 — forked from steve-taylor/theme-colors.html
Theme color chooser
<!doctype html>
<html>
<head>
<style>
html, body {
font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Roboto, 'Segoe UI', sans-serif;
}
.color-grid {
display: grid;