Skip to content

Instantly share code, notes, and snippets.

@maijs
maijs / recipe.json
Created October 16, 2017 09:51
Easter Leftover Sandwich
{
"name": "Easter Leftover Sandwich",
"ingredients": {
"eggs": 5,
"mayonnaise_cups": 2,
"bread_slices": 3
}
}
@maijs
maijs / packages.json
Last active October 27, 2016 08:36
workshop packages.json
{
"packages": {
"laurisigaunis/migration_workshop": {
"8.0.0": {
"name": "laurisigaunis/migration_workshop",
"version": "8.0.0",
"source": {
"type": "git",
"url": "https://github.com/maijs/migration_workshop",
"reference": "master"
@maijs
maijs / ProfileFieldtest.php
Last active October 7, 2016 16:20
Drupal\Tests\user\Kernel\Plugin\migrate\source\ProfileFieldtest
<?php
namespace Drupal\Tests\user\Kernel\Plugin\migrate\source;
use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
/**
* Tests the profile_field source plugin.
*
* @covers \Drupal\user\Plugin\migrate\source\ProfileField
@maijs
maijs / export-to-csv.gs
Created July 27, 2016 07:04 — forked from mderazon/export-to-csv.gs
Google apps script to export to individual csv files all sheets in an open spreadsheet
/*
* script to export data in all sheets in the current spreadsheet as individual csv files
* files will be named according to the name of the sheet
* author: Michael Derazon
*/
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var csvMenuEntries = [{name: "export as csv files", functionName: "saveAsCSV"}];
ss.addMenu("csv", csvMenuEntries);
@maijs
maijs / 01.configure
Created October 3, 2015 18:44
Homebrew, install httpd24, nothing to be done for `local-shared-build' error.
2015-10-03 21:35:17 +0300
./configure
--enable-layout=Homebrew
--enable-mods-shared=all
--enable-unique-id
--enable-ssl
--enable-dav
--enable-cache
--enable-logio
@maijs
maijs / brew-amp.sh
Last active August 29, 2015 14:08
Homebrewed Apache + MySQL + PHP
# Add taps
brew tap homebrew/apache
brew tap homebrew/dupes
brew tap homebrew/php
# Install Apache
brew install httpd22
# Install PHP
brew install php55 --homebrew-apxs --with-apache --without-pcntl