All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login

All New Login

All gists matching topic tools

Recently created
Least recently created
Recently updated
Least recently updated

vlad / git-clone-path.sh

0 likes
0 forks
1 files
Last active 1 day ago
tools
1 #!/usr/bin/env bash
2 #
3 # git-clone-path.sh — clone a shallow Git subdirectory to a target path.
4 #
5 # Usage:
6 # ./git-clone-path.sh [options] <repo_url> <repo_path>
7 #
8 # Options:
9 # -r, --ref <ref> Branch, tag, or commit to check out (default: default branch)
10 # -o, --output <dir> Destination directory (default: current directory)

vlad / restore_sqlite_db.sh

0 likes
0 forks
1 files
Last active 1 day ago
tools
1 #!/bin/bash
2 # Usage: `restore_sqlite_db.sh db.sqlite3`
3 # See https://stackoverflow.com/a/15874884/3645337.
4 cat <( sqlite3 "$1" .dump | grep "^ROLLBACK" -v ) <( echo "COMMIT;" ) | sqlite3 "fix_$1"
Newer Older

Powered by Opengist ⋅ Load: 81ms⋅

English
العربية Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 简体中文 繁體中文