Skip to content

Instantly share code, notes, and snippets.

View oliverlundquist's full-sized avatar

Oliver Lundquist oliverlundquist

View GitHub Profile
@oliverlundquist
oliverlundquist / validate-html-css.sh
Created August 16, 2018 08:18
W3C html and css validation
#!/bin/bash
HTML_FILES=$(find ${1} -name '*.html' -type f)
CSS_FILES=$(find ${1} -name '*.css' -type f)
OUTPUT_FILE=results.txt
> $OUTPUT_FILE
for file in ${HTML_FILES[*]}
do

Keybase proof

I hereby claim:

  • I am oliverlundquist on github.
  • I am oliverlundquist (https://keybase.io/oliverlundquist) on keybase.
  • I have a public key ASDeAF9gNIIG3uRvwvPRnxigfuDln7KN9va1NPmNNjetmQo

To claim this, I am signing this object:

@oliverlundquist
oliverlundquist / .zshrc
Created October 3, 2017 08:52
Composer in Docker
# Create auth.json file
# mkdir -p ~/.composer && \
# echo '{}' > ~/.composer/auth.json && \
# docker run -it --rm -v ~/.composer/auth.json:/tmp/auth.json composer config -g github-oauth.github.com mysecrettoken && \
# chmod 600 ~/.composer/auth.json
# Run with auth.json
# alias composer='docker pull composer:latest && docker run -it --rm -v $PWD:/app -v ~/.composer/auth.json:/root/.composer/auth.json composer'
@oliverlundquist
oliverlundquist / .zshrc
Created September 16, 2017 17:43
Backup Script
alias backup="rsync -a --progress --delete ~/Pictures/ /Volumes/Backups/olivers-mac"
alias brewup="brew update; brew upgrade; brew prune; brew cleanup; brew doctor"

Status

This extension was developed as part of the jsonapi module for Drupal.

Introduction

The JSON API specification is agnostic about how a server implements filtering strategies. In fact, the spec says:

Note: JSON API is agnostic about the strategies supported by a server. The filter query parameter can be used as the basis for any number of filtering strategies.

phpbrew install 7.0.7 +default +mysql +sqlite +pdo +fpm +mcrypt +gd=shared,/usr -- --with-libedit
phpbrew install 5.3.29 +default +mysql +intl -- --with-libedit
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
html, body {
margin: 0;
height: 100%;
}
.container {
MYSQL_PWD=root mysql --host="0.0.0.0" --user="root" --batch --skip-column-names --execute "SELECT CONCAT('ALTER TABLE ' , TABLE_SCHEMA , '.' , TABLE_NAME , ' ENGINE = InnoDB;') FROM INFORMATION_SCHEMA.TABLES WHERE ENGINE = 'MyISAM' AND TABLE_NAME LIKE '%_mystore_no_%'" | MYSQL_PWD=root mysql --force --host="0.0.0.0" --user="root"
<?php
$host = 'chips_';
$db_dump = 'test2.sql';
$sql_dump = 'sqlite3.db';
$ssh_host = '';
$ssh_user = '';
$ssh_pass = '';
$db_host = '';
$db_user = '';
$db_pass = '';