Skip to content

Instantly share code, notes, and snippets.

View kakashy's full-sized avatar

kakashy

  • Nairobi
View GitHub Profile
@kakashy
kakashy / containerize.go
Created October 9, 2024 05:00
This Go script streamlines the process of Dockerizing SvelteKit projects by automating the creation of necessary Docker configuration files. By detecting environment variables and incorporating them as build arguments, it ensures that the Docker build process has access to all required configurations without compromising security.
package main
import (
"bufio"
"encoding/json"
"fmt"
"os"
@kakashy
kakashy / $layout.svelte
Last active May 2, 2022 10:03 — forked from sastan/$layout.svelte
sveltekit + urql (extended version)
<script context="module">
import { get, readable } from 'svelte/store'
import { createClient, operationStore } from '@urql/svelte'
import { browser, dev } from '$app/env'
/**
* @type {import('@sveltejs/kit').Load}
*/