This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Couchbase authentication fix | |
// @description Fixes couchbase's inability to save password. | |
// @include http://couch.local.*.com/ui/index.html* | |
// @include http://couch*.*.aws.*.com:*/ui/index.html* | |
// @version 1.0 | |
// ==/UserScript== | |
function fixAutoComplete () { | |
setTimeout(function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html | |
envsubst < /etc/nginx/conf.d/mysite.template > /etc/nginx/conf.d/default.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# find what process is using a port | |
lsof -i :8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$options = array_filter($this->updateData, array($this, 'isValidEvent')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once dirname(__DIR__) . '/QueueProcessAbstract.php'; | |
abstract class Solr_QueueIndexAbstract extends QueueProcessAbstract | |
{ | |
/** @var string */ | |
private $core = 'default'; | |
public function __construct() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Submit the art advisory brief form with a random email variant | |
* Use this to bookmarkletize it https://ted.mielczarek.org/code/mozilla/bookmarklet.html | |
*/ | |
// first part of your email | |
var myname = 'mike.funk'; | |
// skip most things | |
$('#a01-0').click(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Submit the art advisory brief form with the same email | |
* Use this to bookmarkletize it https://ted.mielczarek.org/code/mozilla/bookmarklet.html | |
*/ | |
// first part of your email | |
var myname = 'mike.funk'; | |
// skip most things | |
$('#a01-0').click(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" vim: set sw=2 ts=2 sts=2 et tw=78 foldmethod=marker filetype=vim: | |
" color scheme {{{ | |
if (has('nvim')) | |
colo gotham | |
else | |
colo gotham256 | |
endif | |
" }}} | |
" php-cs-fixer {{{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ruleset name="Saatchi Coding Standard"> | |
<description>The coding standard for Saatchi Art</description> | |
<exclude-pattern>*/vendor/*</exclude-pattern> | |
<rule ref="PSR2"> | |
<!-- allow if ( ! $myvar) like Sergey prefers --> | |
<exclude name="PSR2.ControlStructures.ControlStructureSpacing"/> | |
</rule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- repo: git@github.com:pre-commit/pre-commit-hooks | |
sha: v0.4.2 | |
hooks: | |
- id: trailing-whitespace | |
- id: end-of-file-fixer | |
- id: check-json | |
- id: check-yaml | |
- id: check-merge-conflict | |
- repo: git@github.com:Lucas-C/pre-commit-hooks.git |