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 PyGObject | |
| # PyGObject is a Python package which provides bindings for GObject based libraries such as GTK, GStreamer, WebKitGTK, GLib, GIO and many more. | |
| from gi import require_version | |
| # for arguments | |
| from sys import argv | |
| from os import geteuid | |
| if geteuid() != 0: | |
| exit("You need to have root privileges to run this script.\nPlease try again, this time using 'sudo'. Exiting.") |
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
| #!/usr/bin/env python3 | |
| """ | |
| Helper script to remove old ZFS snapshots | |
| Copyright (c) Onlime GmbH, https://www.onlime.ch | |
| """ | |
| import argparse | |
| from re import compile | |
| from datetime import datetime, timedelta | |
| from subprocess import check_output | |
| import sys |
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
| #!/bin/bash | |
| set -e | |
| if [ -d ~/.local/share/JetBrains/Toolbox ]; then | |
| echo "JetBrains Toolbox is already installed!" | |
| exit 0 | |
| fi | |
| echo "Start installation..." |
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
| def get_project_root() -> Path: | |
| """Returns project root folder.""" | |
| return Path(__file__).parent.parent |
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
| nc -vz <IP> <PORT> -w 4 |