Skip to content

Instantly share code, notes, and snippets.

View acidjazz's full-sized avatar
🎯
Focusing

kevin olson acidjazz

🎯
Focusing
View GitHub Profile
@acidjazz
acidjazz / deploy-fume.yml
Created May 31, 2021 18:37
deploy-fume.yml
name: Deploy with fume
on:
push:
branches: [ staging, production ]
jobs:
fume:
name: Deploy with Fume
runs-on: ubuntu-latest
<--- Last few GCs --->
[1276:0x130008000] 128387 ms: Mark-sweep (reduce) 3989.8 (4143.4) -> 3989.1 (4143.9) MB, 3585.1 / 0.9 ms (average mu = 0.167, current mu = 0.011) allocation failure scavenge might not succeed
[1276:0x130008000] 132171 ms: Mark-sweep (reduce) 3990.4 (4143.9) -> 3989.6 (4144.4) MB, 3736.5 / 1.0 ms (average mu = 0.094, current mu = 0.013) allocation failure scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 0x102b3863c node::Abort() [/opt/homebrew/Cellar/node/16.2.0/bin/node]
@acidjazz
acidjazz / deploy.yml
Created April 8, 2021 20:26
deploy using ssm
name: Deploy
on:
push:
branches:
- staging
- production
jobs:
deploy:
runs-on: ubuntu-latest
@acidjazz
acidjazz / deploy-fume.yml
Created March 15, 2021 09:36
deploy to fume sample markdown
name: Deploy to branches tied to environments
on:
push:
branches: [ staging, production ]
jobs:
fume:
name: Deploy with Fume
runs-on: ubuntu-latest
@acidjazz
acidjazz / HeaderSearch.vue
Last active March 1, 2021 07:38
fume search functionality
<template>
<div class="flex-1 flex justify-center lg:justify-end lg:mx-12">
<div class="w-full px-2 lg:px-6">
<label for="search" class="sr-only">Search fume (Press / to focus)</label>
<div class="relative text-indigo-300 focus-within:text-gray-400">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<svg class="h-5 w-5" fill="currentColor" viewBox="0 0 20 20">
<path
fill-rule="evenodd"
d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z"
[11261.505158]: Failed to write key 1950826800 to SMC with error code 86Failed to write key 1950826829 to SMC with error code 86Failed to write key 1950826801 to SMC with error code 86Failed to write key 1950829892 to SMC with error code 86Quota update for stream kGPU_Reads. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0x400000
[11261.706992]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0x800000
[11261.768441]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x400000
[11261.768469]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x0 newSize: 0x100000 totalAssignedCache: 0x500000
[11261.768476]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x100000 newSize: 0x0 totalAssignedCache: 0x400000
[11261.768480]: Deprioritize on stream kGPU_ParameterBufferWrite on request from client
[11261.768484]: Deprioritize on dsid 21. Offset(0x14050) <-- Value(0x2)
[11261.768489]: Quota updat
@acidjazz
acidjazz / tw-skeleton.css
Last active October 28, 2022 10:05
tailwind skeleton css
.skeleton {
--text-opacity: 0;
background-image: linear-gradient(100deg, #edf2f7 0%, #f4f7fa 20%, #edf2f7 40%);
background-position: 50%;
background-size: 200%;
animation: skeleton 1.25s infinite linear;
}
.skeleton-teal {
background-image: linear-gradient(100deg, #b4c5f8 0%, #cad8f9 20%, #b4c5f8 40%);
@acidjazz
acidjazz / vid-to-gif.sh
Created September 25, 2020 13:20
video to gif script
#!/bin/bash
# Usage function, displays valid arguments
usage() { echo "Usage: $0 [-f <fps, defaults to 15>] [-w <width, defaults to 480] inputfile" 1>&2; exit 1; }
# Default variables
fps=15
width=480
# getopts to process the command line arguments
@acidjazz
acidjazz / lookup.vue
Created September 1, 2020 21:57
icon transition
<template>
<transition
mode="out-in"
enter-active-class="ease-out duration-300"
enter-class="-translate-y-2 opacity-0"
enter-to-class="translate-y-0 opacity-100"
leave-active-class="ease-in duration-300"
leave-class="opacity-100 translate-y-0"
leave-to-class="opacity-0 translate-y-2"
>
name: Deploy
on:
push:
branches: [ staging ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
-