Skip to content

Instantly share code, notes, and snippets.

View tofumatt's full-sized avatar

Matthew Riley MacPherson tofumatt

View GitHub Profile
@tofumatt
tofumatt / docker-compose.yml
Last active January 22, 2020 13:00
Google Site Kit 10updocker compose file
---
# Use this file as your `docker-compose.yml` if you set up a 10updocker local WordPress site to
# run Site Kit's WordPress site (recommended; see: https://10up.github.io/wp-local-docker-docs/)
# `$ABSOLUTE_PATH_TO_SITE_KIT_REPO` should be replaced with something like `/Users/$YOUR_USER/Projects/site-kit-wp`
version: '3'
services:
memcached:
image: 'memcached:latest'
nginx:
image: 'nginx:latest'
/**
* External dependencies
*/
import { get, set } from 'googlesitekit-api';
import { registerStore } from 'googlesitekit-data';
const DEFAULT_STATE = {
connectionInfo: {},
};
@tofumatt
tofumatt / init.coffee
Last active May 31, 2019 19:37
Sync Settings for Atom
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
// Our config values we want to store offline.
var config = {
fullName: document.getElementById('name').getAttribute('value'),
userId: document.getElementById('id').getAttribute('value')
};
// Let's save it for the next time we load the app.
localStorage.setItem('config', JSON.stringify(config));
// The next time we load the app, we can do:
/**
* External dependencies
*/
import classnames from 'classnames';
import { omit, pick } from 'lodash';
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
@tofumatt
tofumatt / gutenberg.sublime-project
Created July 10, 2018 20:43
Gutenberg Sublime Project file
{
"folders":
[
{
"path": "gutenberg",
"file_exclude_patterns": [
"-coverage/**",
"-**.js.map",
"-**/build/index.js"
],
@tofumatt
tofumatt / styles.scss
Created September 14, 2017 19:02
Grid style diff
diff --git a/src/amo/components/Addon/styles.scss b/src/amo/components/Addon/styles.scss
index b24cc5797524..28a74efa304d 100644
--- a/src/amo/components/Addon/styles.scss
+++ b/src/amo/components/Addon/styles.scss
@@ -193,7 +193,7 @@
.Addon-details {
display: grid;
grid-auto-flow: column dense;
- grid-gap: 10px;
+ grid-gap: 0 10px;
render() {
const { result } = this.props;
return (
<li className="SearchResult">
<div>
<img className="SearchResult-icon" src={result.icon_url} alt="Icon" />
</div>
<section className="SearchResult-main">
<h2 className="SearchResult-heading">
<Link to={`/search/addons/${result.slug}`} className="SearchResult-name"
@tofumatt
tofumatt / docker.log
Created May 18, 2016 13:56
Recent docker error
System check identified no issues (0 silenced).
May 18, 2016 - 13:53:23
Django version 1.7.11, using settings 'settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
[18/May/2016 13:53:58] "GET / HTTP/1.0" 302 0
Raven is not configured (logging is disabled). Please see the documentation for more information.
13:54:07 raven.contrib.django.client.DjangoClient:INFO Raven is not configured (logging is disabled). Please see the documentation for more information. :/usr/lib/python2.7/site-packages/raven/base.py:196
Traceback (most recent call last):
File "/usr/lib64/python2.7/wsgiref/handlers.py", line 85, in run
@tofumatt
tofumatt / testoutput.txt
Created April 22, 2016 20:14
failing test
Elapsed: 3.95s; From _tests: Kept 24117 existing; Added/updated 0; Removed 0 files and 0 directories.
######
### Now running mochitest-chrome.
######
Checking for orphan ssltunnel processes...
Checking for orphan xpcshell processes...
SUITE-START | Running 1 tests
dir: toolkit/components/extensions/test/mochitest