sudo install -Dm644 restic@.service /etc/systemd/system/.- For each target:
- Place the options (exclude, etc) and paths in the variable
BACKUP_OPTIONS="..."in/etc/restic/TARGET/config. Newlines can be escaped with backslashes. - Place the repository path in
/etc/restic/TARGET/repository. - Place the repository password in
/etc/restic/TARGET/password.
- Place the options (exclude, etc) and paths in the variable
- To run the backups on a schedule, create a
.timerfile in/etc/systemd/system/based onrestic.timer.example, set the schedule and target unit, thensystemctl enable --now whatever.timer. - To run the backups manually, just
systemctl startit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE keyboardmap> | |
| <keyboardmap version="1.0"> | |
| <mapping key=";" note="27"/> | |
| <mapping key="9" note="42"/> | |
| <mapping key="6" note="37"/> | |
| <mapping key="7" note="39"/> | |
| <mapping key="4" note="34"/> | |
| <mapping key="2" note="30"/> | |
| <mapping key="3" note="32"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "regexp" | |
| "strconv" | |
| "strings" | |
| "time" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| // interceptsl intercepts escape sequences to set the terminal title. | |
| func interceptsl(ctx context.Context, w io.Writer, r io.Reader, title chan<- string) error { | |
| state := 0 | |
| ibuf := make([]byte, 256) | |
| tbuf := make([]byte, 256) | |
| obuf := make([]byte, 256) // will use up to cap(ibuf) + cap(tbuf) + 4 in certain situations | |
| for { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Package cdputil contains some useful helpers for chromedp. | |
| package cdputil | |
| import ( | |
| "context" | |
| "errors" | |
| "fmt" | |
| "strings" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.ByteArrayOutputStream; | |
| class Base32 { | |
| public static byte[] decode(String str) { | |
| ByteArrayOutputStream s = new ByteArrayOutputStream(str.length()); | |
| for (byte c : str.getBytes()) | |
| if (!Character.isWhitespace(c)) | |
| s.write(Character.toUpperCase(c)); |
This script patches VNC Viewer 3.7.1.44443.
- Fix double-backspace bug on certain keyboards (e.g. recent GBoard versions).
- Write all log messages to logcat (for debugging, since the default file log option doesn't include all log messages, e.g. key/mouse events).
- Java 1.8+
- APKTool v2.5.0+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package date_stuff | |
| func PrintCalendar(d time.Time, l *time.Location, s time.Weekday) { | |
| d = d.In(l) | |
| start := time.Date(d.Year(), d.Month(), 1, 0, 0, 0, 0, l) // inclusive | |
| for start.Weekday() != s { | |
| start = start.AddDate(0, 0, -1) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright 2019-2021 Patrick Gaskin | |
| * Licensed under the MIT license. | |
| * Requires WebView 4.4.4+. | |
| * Requires an instance of https://github.com/pgaskin/dictserver. | |
| */ | |
| 'use strict'; | |
| var Dictionary = function () { | |
| var Popup = function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM opensuse/tumbleweed AS mingw32 | |
| RUN zypper --non-interactive addrepo https://download.opensuse.org/repositories/windows:mingw:win32/openSUSE_Tumbleweed/windows:mingw:win32.repo && \ | |
| zypper --non-interactive --gpg-auto-import-keys refresh | |
| RUN zypper --non-interactive install \ | |
| wget m4 git-core meson bsdtar gzip xmlstarlet \ | |
| mingw32-filesystem mingw32-cross-gcc mingw32-cross-gcc-c++ mingw32-cross-binutils mingw32-cross-pkgconf && \ | |
| zypper clean | |
| FROM i386/alpine AS wine | |
| ENV WINEDEBUG="-all" \ |