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
import React, { PureComponent } from 'react' | |
import DefaultFallbackComponent from 'wherever' | |
export default (FallbackComponent = DefaultFallbackComponent) => { | |
return ComposedComponent => { | |
class ErrorBoundary extends PureComponent { | |
state: { | |
info: undefined, | |
error: undefined |
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
// Go to sumologic, open the chrome dev tools, paste this into the console, and run it (press enter). | |
// This script will cycle through all of your open dashboards in the current tab every 5 mins. | |
(function() { | |
let tabIndex = 0; // Start at index 0 | |
const timeout = ((1000 * 60) * 5); // 5 min | |
setInterval(function () { // Start the timer | |
// Get whatever dashboard tabs are open at execution | |
const tabs = document.querySelectorAll('.tab-navigator__tab.tab-navigator__regular-tab._dashboard'); | |
| |
tabIndex++; // Increment the index |
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
################################################################################ | |
# A simple script for dumping the layers of a docker image. | |
# | |
# Dependencies: | |
# * docker (duh) | |
# * jq (https://stedolan.github.io/jq/) | |
# | |
# Usage | |
# ./docker_dump.sh DOCKER_IMAGE_NAME | |
# |
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
git log \ | |
-E --merges \ | |
--grep='Merged PR [0-9]+: Release [0-9]+.[0-9]+.[0-9]+.*' \ | |
--format='# %ad%n## %s%n```%n%b%n```%n' \ | |
--date=format-local:'%A %B %d, %Y' |
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
(async () => { | |
const atob = window.atob; | |
const btoa = window.btoa; | |
const DB_NAME = 'crypto_keys'; | |
const DB_VERSION = 1; | |
const SIGNING_KEYS_STORE = 'signingKeys'; | |
const ENCRYPTION_KEYS_STORE = 'encryptionKeys'; | |
function base64ToBuffer(base64: string): ArrayBuffer { |
OlderNewer