Skip to content

Instantly share code, notes, and snippets.

View chrishutchison9's full-sized avatar

Chris Hutchison chrishutchison9

View GitHub Profile
@chrishutchison9
chrishutchison9 / backup_gitea.sh
Created July 7, 2024 17:43 — 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
@chrishutchison9
chrishutchison9 / gist:6885c3b779d14839bc0fa5111c46f6d6
Created June 29, 2024 16:56
visual studio dockerhub publish
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<WebPublishMethod>Container</WebPublishMethod>
<ContainerPublishMethod>NetSdk</ContainerPublishMethod>
<ContainerRepository>9kit/test</ContainerRepository>
<RegistryUrl>index.docker.io</RegistryUrl>
{
"openapi": "3.1.0",
"info": {
"title": "Todoist REST V2",
"summary": "Todoist API Schema for GPT",
"termsOfService": "https://doist.com/terms-of-service",
"version": "1.0.0"
},
"servers": [
{
{
"openapi": "3.0.3",
"info": {
"title": "Todoist REST V2",
"summary": "Todoist API Schema for GPT",
"termsOfService": "https://doist.com/terms-of-service",
"version": "1.0.0"
},
"servers": [
{
sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIK4VMtfOKA2UDXVS1Wo9354K5uSfAWm1aF0RHsvbN+snAAAABHNzaDo= hostc@ChrisDesktop
@chrishutchison9
chrishutchison9 / gist:bed9af348f4b03583181
Created January 28, 2016 16:05
sharepoint multi user field regex
var test = ctx.CurrentItem.tkeContact.replace(/[^a-zA-Z ]+/g, ";")