Skip to content

Instantly share code, notes, and snippets.

@avaly
avaly / Application.log
Created March 12, 2018 10:25
plexamp-error-logs
Mar 12, 2018 10:57:01.229 INFO - Starting app...
Mar 12, 2018 10:57:24.524 ERROR - Error starting media services: Cannot find module 'dbus'
Mar 12, 2018 10:57:24.526 DEBUG - Window bounds is 662 x 232.
Mar 12, 2018 10:57:24.989 INFO - Adding key mapping: MediaNextTrack -> next
Mar 12, 2018 10:57:25.078 INFO - Adding key mapping: MediaPlayPause -> playpause
Mar 12, 2018 10:57:25.089 INFO - Adding key mapping: MediaPreviousTrack -> previous
Mar 12, 2018 10:57:25.100 INFO - Adding key mapping: Shift+CommandOrControl+Space -> activate
Mar 12, 2018 10:57:25.113 INFO - Adding key mapping: Shift+Command+Control+Option+0 -> unrate
Mar 12, 2018 10:57:25.122 INFO - Adding key mapping: Shift+Command+Control+Option+1 -> rate1
Mar 12, 2018 10:57:25.131 INFO - Adding key mapping: Shift+Command+Control+Option+2 -> rate2
@avaly
avaly / .babelrc
Created January 6, 2018 12:17
std-esm-0.19.1-bug
{
"presets": ["flow"]
}
@avaly
avaly / terraform-validate-trace-log
Created August 25, 2017 08:34
terraform-validate-bug
$ TF_LOG=trace terraform validate
2017/08/25 10:32:24 [INFO] Terraform version: 0.10.2 a1d06eb97378d097d4175c3284ea026937618477
2017/08/25 10:32:24 [INFO] Go runtime version: go1.8.3
2017/08/25 10:32:24 [INFO] CLI args: []string{"/usr/local/bin/terraform", "validate"}
2017/08/25 10:32:24 [DEBUG] Attempting to open CLI config file: /home/avaly/.terraformrc
2017/08/25 10:32:24 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/08/25 10:32:24 [INFO] CLI command args: []string{"validate"}
2017/08/25 10:32:24 [DEBUG] checking for provider in "."
2017/08/25 10:32:24 [DEBUG] checking for provider in "/usr/local/bin"
2017/08/25 10:32:24 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
@avaly
avaly / package.json
Last active March 3, 2017 18:25
ava-react-snapshot
{
"dependencies": {
"ava": "^0.18.2",
"babel": "^6.23.0",
"babel-preset-react": "^6.23.0",
"babel-register": "^6.23.0",
"react": "^15.4.2",
"react-test-renderer": "^15.4.2"
},
"babel": {
@avaly
avaly / .babelrc
Created March 3, 2017 17:21
ava-babel-await
{
"presets": [
"@ava/stage-4",
["es2015", { "modules": "commonjs" }],
"stage-1"
]
}
@avaly
avaly / package.json
Created February 7, 2017 11:32
jest-getting-started-bug
{
"name": "jest-bug",
"version": "1.0.0",
"description": "",
"scripts": {
"test": "jest"
},
"license": "ISC",
"devDependencies": {
"jest": "^18.1.0"
@avaly
avaly / gist:07c0cb7f249cbf46d113bbd4154104ac
Created January 25, 2017 16:27
react-styleguidist-loader-options-plugin-issue
$ styleguidist server --verbose
Styleguidist config:
Object {
"assetsDir": undefined,
"components": "./lib/components/**/[A-Z]*.js",
"configDir": "/home/foo/dev/react-styleguidist-example",
"configureServer": undefined,
"context": Object {},
"contextDependencies": undefined,
@avaly
avaly / fixture.json
Created January 12, 2017 17:08
jest-bug-json-transform
{
"foo": 123
}
$ npm i
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
> [email protected] install /tmp/node_modules/taglib2
> ./install.sh
./install.sh: 1: ./install.sh: [[: not found
info CMD CONFIGURE
info RUN cmake "/tmp/node_modules/taglib2" --no-warn-unused-cli -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/tmp/node_modules/taglib2/build/Release" -DCMAKE_JS_INC="/home/htpc/.cmake-js/node-x64/v6.2.1/include/node;/tmp/node_modules/nan" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="6.2.1" -DNODE_ARCH="x64" -DCMAKE_CXX_FLAGS="-std=c++11"
@avaly
avaly / giff.user.js
Created January 10, 2015 17:24
giff trailer
// ==UserScript==
// @name GIFF
// @namespace http://userscripts.com/none
// @include http://*.filmfestival.org/filmfestival/info/*/festivalprogram/programentry?*
// ==/UserScript==
var h1 = document.getElementsByTagName('h1')[0],
title = h1.innerHTML,
titleRealElem = document.querySelector('.movieDetails p:nth-child(5)'),
titleReal = titleRealElem ? titleRealElem.innerHTML.replace(/<strong>.+<\/strong>/, '').replace('<br>', '') : '',