I hereby claim:
- I am jrschumacher on github.
- I am beardedhen (https://keybase.io/beardedhen) on keybase.
- I have a public key ASC6OdQnn5OuoVqiF7xdoRF4GqkBKFQC7t655cKNzUluewo
To claim this, I am signing this object:
| nativefier \ | |
| --name "Pivotal Tracker" \ | |
| --platform "darwin" \ | |
| --overwrite \ | |
| --icon ~/.nativefier/pivotal_tracker/icon.png \ | |
| "https://pivotaltracker.com" \ | |
| ~/.nativefier/pivotal_tracker |
| const fs = require('fs') | |
| const {sync: globSync} = require('glob') | |
| const filesize = require('filesize') | |
| const Terser = require('terser') | |
| const options = require(process.env.TERSER_CONFIG || './terserrc.json') | |
| const getSize = (file) => { | |
| const {size} = fs.statSync(file) | |
| return filesize(size) | |
| } |
I hereby claim:
To claim this, I am signing this object:
| import React from 'react'; | |
| import { ClientSocket as SocketIOProvider } from 'use-socketio'; | |
| import { VirtruProvider } from '../hooks/useVirtru'; | |
| import AuthenticationModal from '../components/authenticationModal'; | |
| import Room from '../components/room'; | |
| function App() { | |
| return ( | |
| <VirtruProvider> | |
| <SocketIOProvider> |
| try { | |
| const user = socket.nickname; | |
| if (!user) throw new Error('Your session is not registered. Please make sure to login.'); | |
| const response = await pouchDB.addMessage(channel, message, user); | |
| const payload = { ...response, message, user }; | |
| // Send ok response | |
| socket.emit('add-message-ok', response); | |
| // Broadcast message to room | |
| socket.broadcast.to(channel).emit('new-message', payload); | |
| // Send new message to user |
| title | tags | date |
|---|---|---|
Using template tags for simple logging |
tags, javascript, logging |
08-01-2020 |
Often times I've wanted to utilize Tagged Template Literals to make writing logs super easy. This has often alluded me due to the structure of tags.
| ANT000000 | Antiques & Collectibles / General | |
|---|---|---|
| ANT001000 | Antiques & Collectibles / Americana | |
| ANT002000 | Antiques & Collectibles / Art | |
| ANT003000 | Antiques & Collectibles / Autographs | |
| ANT005000 | Antiques & Collectibles / Books | |
| ANT006000 | Antiques & Collectibles / Bottles | |
| ANT007000 | Antiques & Collectibles / Buttons & Pins | |
| ANT008000 | Antiques & Collectibles / Care & Restoration | |
| ANT009000 | Antiques & Collectibles / Transportation | |
| ANT010000 | Antiques & Collectibles / Clocks & Watches |
| ## Spotify CDNs for podcast videos | |
| # | |
| # With the addition of Podcast and Podcast Video support in Spotify a pervasive issue as arisen where | |
| # people are creating podcasts that mirror Youtube, Tiktok, and other social platforms. Some might find | |
| # this useful, but as a parent I find it frustrating because I cannot give my kids access to music without | |
| # the temptation of watching Minecraft videos. | |
| # | |
| # I've reached out to Spotify, but their only solution is to switch kids to their Kids account. This is | |
| # not workable for my older children. So here's a liviing block list for the Video CDNs. | |
| # |
| #!/bin/bash | |
| # This script detects the host CPU architecture and specific Apple Silicon model | |
| # to apply necessary Java options for Keycloak to avoid SIGILL errors. | |
| HOST_ARCH=$(uname -m) | |
| OSTYPE=$(uname) | |
| EXTRA_JAVA_OPTS="" | |
| echo "Detecting host architecture: $HOST_ARCH on $OSTYPE" |