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-staging.yml
Created March 12, 2024 19:31
fume example action
name: Deploy with Fume
on:
push:
branches:
- staging
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: staging
@acidjazz
acidjazz / migrate.go
Created April 19, 2023 21:26
from domain to serverless
func CopyIndex(index CatIndex, domain *opensearch.Client, serverless *opensearch.Client) (CopyResult, error) {
results := CopyResult{
Index: index.Index,
Docs: 0,
Duration: time.Duration(0),
}
start := time.Now()
@acidjazz
acidjazz / horizon.sh
Created April 19, 2023 02:03
cloudinit horizon
# setup horizon with systemd
echo "
[Unit]
Description=Laravel Horizon Queue Manager
After=network.target auditd.service
[Service]
ExecStart=/bin/php /home/ec2-user/bob/artisan horizon
Restart=always
@acidjazz
acidjazz / store.ts
Created March 19, 2023 00:36
simple text string storage in ts
import fs from 'node:fs'
interface StoreInterface {
uuid: string
text: string
expires: Date
}
export default class Store {
private store: StoreInterface[]
---- Minecraft Crash Report ----
// On the bright side, I bought you a teddy bear!
Time: 2022-09-07 00:41:41
Description: Mod loading error has occurred
java.lang.Exception: Mod Loading has failed
at net.minecraftforge.logging.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:55) ~[forge-1.19.2-43.1.16-universal.jar%23371!/:?] {re:classloading}
at net.minecraftforge.client.loading.ClientModLoader.completeModLoading(ClientModLoader.java:167) ~[forge-1.19.2-43.1.16-universal.jar%23371!/:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.lambda$new$2(Minecraft.java:585) ~[client-1.19.2-20220805.130853-srg.jar%23366!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:rubidium.mixins.json:core.MixinMinecraftClient,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:ae2.mixins.json:PickColorMixin,pl:mixin:APP:ars_nouveau.mixins.json:light.ClientMixin,pl:mixin:APP:immersiveengineering.mixins.json
---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!
Time: 2022-09-05 23:55:06
Description: Mod loading error has occurred
java.lang.Exception: Mod Loading has failed
at net.minecraftforge.logging.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:55) ~[forge-1.19.2-43.1.3-universal.jar%23359!/:?] {re:classloading}
at net.minecraftforge.client.loading.ClientModLoader.completeModLoading(ClientModLoader.java:167) ~[forge-1.19.2-43.1.3-universal.jar%23359!/:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.lambda$new$2(Minecraft.java:585) ~[client-1.19.2-20220805.130853-srg.jar%23354!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:rubidium.mixins.json:core.MixinMinecraftClient,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:ae2.mixins.json:PickColorMixin,pl:mixin:APP:ars_nouveau.mixins.json:light.ClientMixin,pl:mixin:APP:immersiveengineering.mixins.json:acces
---- Minecraft Crash Report ----
// I feel sad now :(
Time: 2022-09-05 23:50:05
Description: Mod loading error has occurred
java.lang.Exception: Mod Loading has failed
at net.minecraftforge.logging.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:55) ~[forge-1.19.2-43.1.3-universal.jar%23359!/:?] {re:classloading}
at net.minecraftforge.client.loading.ClientModLoader.completeModLoading(ClientModLoader.java:167) ~[forge-1.19.2-43.1.3-universal.jar%23359!/:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.lambda$new$2(Minecraft.java:585) ~[client-1.19.2-20220805.130853-srg.jar%23354!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:rubidium.mixins.json:core.MixinMinecraftClient,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:ae2.mixins.json:PickColorMixin,pl:mixin:APP:ars_nouveau.mixins.json:light.ClientMixin,pl:mixin:APP:immersiveengineering.mixins.json:accessors.client.MinecraftAcce
import { defineNuxtPlugin, useNuxtApp, useRuntimeConfig } from '#app'
import Api from '~/lib/api'
export default defineNuxtPlugin((nuxtApp) => {
const config = useRuntimeConfig()
const { $toast } = useNuxtApp()
return {
provide: {
api:
new Api({
@acidjazz
acidjazz / api.ts
Created February 8, 2022 08:04
api plugin in laranuxt
import { FetchError, FetchOptions, SearchParams } from 'ohmyfetch'
import { reactive, ref } from '@vue/reactivity'
import { IncomingMessage, ServerResponse } from 'http'
import { useCookie } from 'h3'
import { TailvueToast } from 'tailvue'
import { Router } from 'vue-router'
import Cookies from 'universal-cookie'
export interface UserLogin {
token: string
@acidjazz
acidjazz / ExampleController.php
Last active January 6, 2022 22:43
smart table export service
<?php
class UserController extends Controller
{
/**
* Display a listing of the resource.
*
* @param Request $request
* @return Response|JsonResponse
* @throws AuthorizationException