Skip to content

Instantly share code, notes, and snippets.

@ancaemcken
ancaemcken / garden-planner.schema.graphql
Created November 29, 2019 15:52
Garden Planner GraphQL schema v0.1
enum SourceType {
"""Use this for a shop, nursery, etc."""
PROPAGATOR
"""Use this option for websites, books, databases, etc."""
INFO
}
enum PropagatorType {
SEED
BULB
@ancaemcken
ancaemcken / php-doc.el
Created June 24, 2016 12:34 — forked from stesie/php-doc.el
php doc block generator/extractor for emacs
;;; php-doc.el --- doc block generator/extractor for php
;; Copyright (C) 2010, 2013 Stefan Siegl <stesie@brokenpipe.de>
;; Maintainer: Stefan Siegl <stesie@brokenpipe.de>
;; Author: Stefan Siegl <stesie@brokenpipe.de>
;; Keywords: php docblock
;; Created: 2010
;; Modified: 2013-09-14
;; X-URL: https://gist.github.com/stesie
@ancaemcken
ancaemcken / BackupDB
Created May 22, 2015 14:51
Creates a db dump. For use in LOCAL development environments ONLY!
<?php
/*
Plugin Name: BackupDB
Description: Makes a backup of your database in wp-content.
Version: 1.0
Author: Anca I/O
Author URI: http://anca.io
License: DWUWWI (Do whatever you want with it)
*/
//Get going!
sudo chown root:wheel /Library/LaunchDaemons/com.mysql.mysql.plist
sudo chmod 644 /Library/LaunchDaemons/com.mysql.mysql.plist
sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true />
<key>Label</key>
<string>com.mysql.mysqld</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/mysql/bin/mysqld_safe</string>
<Directory "/projects">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Virtualhost *:80>
VirtualDocumentRoot "/Users/YOUR_USERNAME/projects/home/wwwroot"
ServerName home.dev
sudo apachectl restart
<Directory />
AllowOverride none
Require all denied
</Directory>
#LoadModule php5_module libexec/apache2/libphp5.so
#LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
#LoadModule rewrite_module libexec/apache2/mod_rewrite.so
#Include /private/etc/apache2/extra/httpd-vhosts.conf
defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder