Skip to content

Instantly share code, notes, and snippets.

@MrJadaml
MrJadaml / notes.md
Created April 29, 2017 06:47
MQTT Cluster - shower thoughs

multiple layers. No layer is a unique solution, just an algamation of existing solutions.

Problem:

Scaleability + Remote

  • lots of individual sensors/hardware connecting to singular services
    • hard to scale/manage at any moderate size
    • creates lots of different interfaces to have to deal with
    • may connect up to some central brand service: AWS, Nest, Apple, Google etc.
  • but not universal across all your sensors:
@MrJadaml
MrJadaml / carousel-index.js
Last active May 14, 2017 18:50
A JavaScript method that will keep looping around an array, forward -- positive, or backward -- negative, when provided a valid or "out of bounds" index value.
@MrJadaml
MrJadaml / pi-booter.md
Last active May 14, 2017 20:34
Boot a headless Raspberry Pi w/out router access and find it on the network.

Headless - No Router Access - Pi Booter

If you are trying to boot a headless setup of Raspbian and don't have access to the router the following may be what you are looking for.

  • Download the latest Raspbian Lite
  • Use an OS image flasher like Etcher to flash your Raspbian dmg file onto a microSD card.
  • Once the microSD card has been flashed you will want to do some configuration
    • From the terminal $ cd /Volumns/boot
    • Create an ssh file $ touch ssh
  • Create a file for preloading your network settings $ touch wpa_supplicant.conf
import React, { PropTypes } from 'react';
import styled from 'styled-components';
import back from '../../public/assets/img/back-icon.svg';
import next from '../../public/assets/img/next-icon.svg';
const CarouselNav = ({ headerText, subtitle }) => {
return (
<Center>
<Arrow src={back} align={'left'} />
<Titles>
state : Not replacing, url state already up to date
batch.js?adg3Enabled=true&locale=en-US:446 ui : BacklogView.draw
VM3488:1 POST https://iunuinc.atlassian.net/rest/analytics/1.0/publish/bulk net::ERR_BLOCKED_BY_CLIENT
(anonymous) @ VM3488:1
XMLHttpRequest.send @ batch.js?adg3Enabled=true&agile_global_admin_condition=true&devsummary=true&globalSidebarEnabled=true&jag=true&jaguser=true&jira-nps-enabled=true&locale=en-US&nps-not-opted-out=true:11687
send @ batch.js?adg3Enabled=true&locale=en-US:213
ajax @ batch.js?adg3Enabled=true&locale=en-US:207
h @ batch.js?adg3Enabled=true&agile_global_admin_condition=true&devsummary=true&globalSidebarEnabled=true&jag=true&jaguser=true&jira-nps-enabled=true&locale=en-US&nps-not-opted-out=true:11690
batch.js?adg3Enabled=true&locale=en-US:446 RPC: request rejected (bad origin): https://iunuinc.atlassian.net
3batch.js?adg3Enabled=true&locale=en-US:446 RPC: request rejected (bad origin): https://iunuinc.atlassian.net
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'airblade/vim-gitgutter'
@MrJadaml
MrJadaml / ksp.log
Created November 12, 2018 20:20
Lots of FMRS errors.
[LOG 12:09:57.420] ******* Log Initiated for Kerbal Space Program - 1.5.1.2335 (OSXPlayer) en-us *******
Kerbal Space Program - 1.5.1.2335 (OSXPlayer) en-us
OS: Mac OS X 10.12.6
CPU: Intel(R) Core(TM) i5-6287U CPU @ 3.10GHz (4)
RAM: 16384
GPU: Intel(R) Iris(TM) Graphics 550 (1536MB)
SM: 46 (OpenGL 4.1 INTEL-10.25.19)
RT Formats: ARGB32, Depth, ARGBHalf, Shadowmap, RGB565, ARGB4444, ARGB1555, Default, ARGB2101010, DefaultHDR, ARGB64, ARGBFloat, RGFloat, RGHalf, RFloat, RHalf, R8, ARGBInt, RGInt, RInt, RGB111110Float, RG32, RGBAUShort, RG16
@MrJadaml
MrJadaml / krash-KSP.log
Created November 14, 2018 22:51
Full kSP log.
[LOG 20:16:38.935] ******* Log Initiated for Kerbal Space Program - 1.5.1.2335 (OSXPlayer) en-us *******
Kerbal Space Program - 1.5.1.2335 (OSXPlayer) en-us
OS: Mac OS X 10.12.6
CPU: Intel(R) Core(TM) i5-6287U CPU @ 3.10GHz (4)
RAM: 16384
GPU: Intel(R) Iris(TM) Graphics 550 (1536MB)
SM: 46 (OpenGL 4.1 INTEL-10.25.19)
RT Formats: ARGB32, Depth, ARGBHalf, Shadowmap, RGB565, ARGB4444, ARGB1555, Default, ARGB2101010, DefaultHDR, ARGB64, ARGBFloat, RGFloat, RGHalf, RFloat, RHalf, R8, ARGBInt, RGInt, RInt, RGB111110Float, RG32, RGBAUShort, RG16

Summary

Adoption of AirBnb Style Guide + Lint Config.

Motivation

Currently we have a linter config, but don't keep it in sync with the rules defined in our style guide. This requires devs to regularly reference the style guide. More realistically speaking, PRs are submitted with code that does not comply with our style guide for rules that are not also defined in our config -- both new and seasoned devs do this. This causes us to kick back PRs due to code style violations which adds additional PR review cycles consuming multiple developer's time.

💥 ecom-web-app [NCE-1046/webpack-migration] ⚡ yarn build:dev
yarn run v1.12.3
$ cross-env NODE_ENV=development webpack -p --progress
OOOOOOOOOOOoooooOOOOOOOOooooOOOOooOoooOOoooOOooOOOooOOOoo
{ entry: [ 'babel-polyfill', './client.js' ],
output:
{ path: '/Users/alichty/lulu/ecom-web-app/build',
publicPath: '/',
filename: 'bundle.js' },
stats: { children: false },