Skip to content

Instantly share code, notes, and snippets.

View alexfaber2011's full-sized avatar

Alex Faber alexfaber2011

View GitHub Profile
<nix-shell> ~/R/e/app-native (detox|✚4) $ detox test --configuration android --loglevel trace
detox[70101] INFO: [test.js] DETOX_CONFIGURATION="android" DETOX_FORCE_ADB_INSTALL=false DETOX_LOGLEVEL="trace" DETOX_READ_ONLY_EMU=false DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1611786051573 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' --maxWorkers 1 e2e
detox[70102] TRACE: [Detox.js/DETOX_CREATE] created a Detox instance with config:
{"artifactsConfig":{"rootDir":"artifacts/android.2021-01-27 22-20-51Z","plugins":{"log":{"enabled":false,"keepOnlyFailedTestsArtifacts":false},"screenshot":{"enabled":true,"shouldTakeAutomaticSnapshots":false,"keepOnlyFailedTestsArtifacts":false},"video":{"enabled":false,"keepOnlyFailedTestsArtifacts":false},"instruments":{"enabled":false,"keepOnlyFailedTestsArtifacts":false},"timeline":{"enabled":false},"uiHierarchy":{"enabled":false,"keepOnlyFailedTestsArtifacts":false}},"pathBuilder":{"_rootDir":"artifacts/android.2021-01-27 2
Attaching to emqb_integration_1
integration_1 | cp: cannot create regular file '/bundle/ruby/2.5.0/bundler/gems/friendly_id-8531cdce5737/test/sequentially_slugged_test.rb': File exists
integration_1 | cp: cannot create directory '/bundle/ruby/2.5.0/bundler/gems/jquery-datatables-rails-ff67ccfd7b06/app/assets/images': File exists
integration_1 | cp: cannot create regular file '/bundle/ruby/2.5.0/bundler/gems/prawn-rails-87462a0561f4/.git/hooks/pre-receive.sample': File exists
integration_1 | cp: cannot create directory '/bundle/ruby/2.5.0/bundler/gems/prawn-rails-87462a0561f4/.git/logs': File exists
integration_1 | cp: cannot create regular file '/bundle/ruby/2.5.0/bundler/gems/prawn-rails-87462a0561f4/test/dummy/config/boot.rb': File exists
integration_1 | cp: cannot create directory '/bundle/ruby/2.5.0/bundler/gems/prawn-rails-87462a0561f4/test/dummy/db': File exists
integration_1 | cp: cannot create regular file '/bundle/rub
@alexfaber2011
alexfaber2011 / .vimrc
Created April 22, 2019 17:11
Alex's semi-ultra-dank .vimrc
" Specify a directory for plugins
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'itchyny/lightline.vim'
Plug 'airblade/vim-gitgutter'
Plug 'leafgarland/typescript-vim'
@alexfaber2011
alexfaber2011 / gist:0d02eb3bdb80d543fed15c62f95d1673
Last active March 2, 2017 14:59
Rows Inserted into api_app_buildentry
id | buildset | filename | app | md5_url | url | build | version | created_at | updated_at | successor_id |
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
dbc0d9c0-70f0-4219-9cd7-18b04332057a | NULL | build.gif | FUSION | http://example.com/md/develop.tar | http://example.com/3.tar | p3900 | 1.7 | 2017-03-02 00:00:00+00 | 2017-03-02 00:00:00+00 | NULL |
2719cf7a-1d1e-42fa-95f4-2a21eb98d3d7 | develop | develop.gif | FUSION | http://example.com/md/develop.tar | http://example.com/3.tar | p3900 | 1.7 | 2017-03-02 00:00:00+00 | 2017-03-02 00:00:00+00 | NULL |
@alexfaber2011
alexfaber2011 / example-cc-api-log
Last active February 9, 2017 20:18
Example Log
// Note: the error type of the payload is reflected in some way (at the moment it's prepended to every line). I'd be happy to see it anywhere.
// The errorStack and recentActions values are bound to be very long, that's ok (in my opininon anyway). If necessary, since they're
// strings they can easily be parsed and, recentActions especially, can be placed into a tool such as http://www.jsoneditoronline.org/
// for easy viewing.
JAN 01 15:00:00: ERROR ===== ERROR PAYLOAD BEGIN =====
JAN 01 15:00:00: ERROR providerName: algonquin
JAN 01 15:00:00: ERROR providerId: a789c-12789-....
JAN 01 15:00:00: ERROR userAgent: Mozilla/5.0 AppleWebKit/537.36 Chrome/56.0.2924.87
JAN 01 15:00:00: ERROR error: TypeError: Cannot read property 'id' of undefined
//@flow
import { TOGGLE_RESULT_ERROR_DISPLAY, } from '../actions/actionTypes'
const _ = require('lodash')
export const toggleResultErrorDisplay = (results: ScenarioActionResults = {}, action: ToggleResultErrorDisplayType): ScenarioActionResults => {
const result = _.get(results, [action.scenarioId, action.actionId])
if(!result){
return results
}
const scenarioResults = _.get(results, action.scenarioId)
const mapStateToProps = (state: State, ownProps: Object) => {
const scenario = _.find(state.scenarios.value, (scenario: Scenario) => scenario.id === ownProps.params.scenarioId)
// state looks something like this
/**
* {
* results: {
* value: {
* 'fooScenarioId': {
* 'fooActionId: {
* foo: 'bar',
FROM node:4.4.2
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Set its environment to development
ENV NODE_ENV development
EXPOSE 3000
@alexfaber2011
alexfaber2011 / with-redefs-and-go.cljs
Created January 13, 2016 20:17
Using `with-redefs` to redef a function that's called inside a go block
; ---------------------------------------------------------------------------------
; handler code
; ---------------------------------------------------------------------------------
; My handler code fetches messages in parrallel and then picks them off of the channel
; vector within the go block. I've succesfully redef'ed `http/get` by bringing it out
; of the `go` block, but redef'ing 're-frame/dispatch` doesn't seem to be working.
(defn fetch-full-messages [db [scenario-name]]
(if-let [scenario (get-in db [:admin-configuration :scenarios scenario-name])]
@alexfaber2011
alexfaber2011 / handler.cljs
Created January 13, 2016 13:46
Testing Re-Frame Handlers that Dispatch Other Handlers
; I have a question about how to test handlers that dispatch other handlers (say when fetching from a server).
; Here's what the wiki says about fetching from servers
(ns my.app.handlers
(:require [ajax.core :refer [GET POST]]
[re-frame.core :refer [register-handler]))
(register-handler
:request-it
(fn