Skip to content

Instantly share code, notes, and snippets.

@jibsaramnim
jibsaramnim / netlify-deploy.yaml
Created June 29, 2023 06:48
Gitea deploy to Netlify Action
name: 'Deploy to Netlify'
on:
push:
branches:
- main
workflow_dispatched:
jobs:
deploy:
@jibsaramnim
jibsaramnim / backup_gitea.sh
Created June 20, 2023 08:19 — forked from sinbad/backup_gitea.sh
My Gitea Backup & Restore Scripts
#!/bin/bash
# `gitea dump` doesn't currently back up LFS data as well, only git repos
# It primarily backs up the SQL DB, and also the config / logs
# We'll backup like this:
# * "gitea dump" to backup the DB and config etc
# * tar / bzip all the repos since they will be skipped
# * Not rotated because git data is immutable (normally) so has all data
# * rsync LFS data directly from /volume/docker/gitea/git/lfs
# * No need for rotation since all files are immutable
# Flip primary and secondary buttons of a Kensington SlimBlade Trackball.
evdev:name:Kensington Slimblade Trackball:*
ID_INPUT=1
ID_INPUT_TRACKBALL=1
KEYBOARD_KEY_90001=btn_right
KEYBOARD_KEY_90002=btn_left
@jibsaramnim
jibsaramnim / docker-compose.yml
Created January 25, 2023 02:53
Elk Docker/Podman Compose
version: '3'
services:
elk:
image: ghcr.io/elk-zone/elk:latest
labels:
- io.containers.autoupdate=registry
environment:
- TZ=Asia/Seoul
- NUXT_PUBLIC_DEFAULT_SERVER=fosstodon.org
volumes: