Skip to content

Instantly share code, notes, and snippets.

@palto42
palto42 / appindicator_demo.py
Last active August 27, 2023 09:05
Short Python3 appindicator demo
# Appindicator Demo
import sys
from gi import require_version
require_version("Gtk", "3.0")
require_version("AyatanaAppIndicator3", "0.1")
require_version("Notify", "0.7")
@palto42
palto42 / com.borgbase.Vorta.policy
Last active June 28, 2024 04:39
pkexec policy for running Vorta as root, install in folder `/usr/share/polkit-1/actions/`
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<vendor>Vorta for Borg Backup</vendor>
<vendor_url>https://vorta.borgbase.com/</vendor_url>
<icon_name>com.borgbase.Vorta</icon_name>
<action id="com.borgbase.Vorta">
@palto42
palto42 / package.yml
Created August 24, 2020 19:22
epson-inkjet-printer-escpr2
name : epson-inkjet-printer-escpr2
version : 1.1.15
release : 1
source :
- https://download3.ebz.epson.net/dsc/f/03/00/11/56/43/b1a6f1193e073c4c049da9404806c61052b62419/epson-inkjet-printer-escpr2-1.1.15-1lsb3.2.src.rpm : 2eb8f1655de4f7189ec18d94f581112e2ff00b05e64a44c24bbb0524fafdd728
license : GPL-2.1-or-later
component : desktop.core
summary : Printer drivers for Epson printers v2
libsplit : no
description: |
@palto42
palto42 / package.yml
Last active August 16, 2020 15:24
Solus packaging for borgmatic
name : borgmatic
version : 1.5.9
release : 2
source :
- https://projects.torsion.org/witten/borgmatic/archive/1.5.9.tar.gz : 383b6e993bd4a64b93e92bc44707a7132ce95bdcbdd801bec7d9bab1b36339e2
homepage : https://torsion.org/borgmatic/
license : GPL-3.0-or-later
component : system.utils
summary : borgmatic is simple, configuration-driven backup software for servers and workstations.
description: |
@palto42
palto42 / update_vscode.sh
Last active July 28, 2021 05:49
Install and update VS Code from official binary for Linux version which don't support deb, rpm or Snap (tested on Solus)
#!/bin/bash
# VS Code updater
# get installed version
installed=$($HOME/bin/VSCode-linux-x64/bin/code -v 2>/dev/null | head -n 1)
# get latest release from Github
latest=$(curl -s https://github.com/Microsoft/vscode/releases/latest | grep -Po 'tag/\K[0-9\.]*')
if [ "$installed" == "$latest" ]