mkdir isobuild && cd isobuild
sudo dnf install rpm-ostree lorax -y
git clone -b f33 https://pagure.io/workstation-ostree-config
git clone -b f33 https://pagure.io/fedora-lorax-templates.git
mkdir repo
ostree init --repo=repo
rpm-ostree compose tree --repo=$(pwd)/repo \
$(pwd)/workstation-ostree-config/fedora-silverblue.yaml
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
| """ Lambda to launch ec2-instances """ | |
| import boto3 | |
| REGION = 'eu-central-1' # region to launch instance. | |
| AMI = 'ami-24bd1b4b' | |
| # matching region/setup amazon linux ami, as per: | |
| # https://aws.amazon.com/amazon-linux-ami/ | |
| INSTANCE_TYPE = 'm3.medium' # instance type to launch. | |
| EC2 = boto3.client('ec2', region_name=REGION) |
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
| diff --git a/cmd/snapd/main.go b/cmd/snapd/main.go | |
| index 741d998404..55d06d2d9c 100644 | |
| --- a/cmd/snapd/main.go | |
| +++ b/cmd/snapd/main.go | |
| @@ -52,6 +52,10 @@ func init() { | |
| } | |
| func main() { | |
| + if _, found := os.LookupEnv("SNAPD_DISABLE_AUTOREFRESH"); found { | |
| + logger.Noticef("AutoRefresh disabled due to SNAPD_DISABLE_AUTOREFRESH environment variable being set") |
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 | |
| # Gamebuntu, a simple script to transform an Ubuntu install into a complete game-ready (!) setup | |
| set -e | |
| cd "$(mktemp -d -t gamebuntu-XXXXXXXXXXXX)" | |
| # start info | |
| cat <<EOF |
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
| LXCBIN=/snap/bin/lxc | |
| LXDBIN=/snap/bin/lxd | |
| ZFSBIN=/sbin/zfs | |
| SYNCSNAPNAME=bsync | |
| LASTSYNCSNAPNAME=bsync-last | |
| ZFSROOT=tank/containers/ | |
| MOUNTROOT=/var/snap/lxd/common/lxd/storage-pools/ |
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/python | |
| """ | |
| Completely reset TCC services database in macOS | |
| Note: Both the system and individual users have TCC databases; run the script as both | |
| a user and as root to completely reset TCC decisions at all levels. | |
| 2018-08-15: Resetting the 'Location' service fails; unknown cause | |
| 2018-08-16: Confirmed the 'All' service does not really reset _all_ | |
| services, so individual calls to each service is necessary. |
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 | |
| function install_dependencies() { | |
| echo "Installing dependencies..." | |
| sudo apt -qq update | |
| sudo apt -qq install -y curl git wget | |
| sudo apt -qq install -y bison flex kernel-package libelf-dev libssl-dev | |
| } | |
| function init() { |
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
| # /etc/systemd/system/docker.service.d/docker-nftables.conf | |
| # disable iptables in docker, allowing nftables to do work | |
| [Service] | |
| ExecStart= | |
| ExecStart=/usr/bin/docker daemon -H fd:// --iptables=false |
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
| # http://docs.python-requests.org/en/master/api/ | |
| import requests | |
| class RequestsApi: | |
| def __init__(self, base_url, **kwargs): | |
| self.base_url = base_url | |
| self.session = requests.Session() | |
| for arg in kwargs: | |
| if isinstance(kwargs[arg], dict): | |
| kwargs[arg] = self.__deep_merge(getattr(self.session, arg), kwargs[arg]) |