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
| - name: Configure pam_group | |
| lineinfile: | |
| path: /etc/security/group.conf | |
| line: "*;*;%domain users;Al0000-2400;render,audio,video,dialout,colord" |
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 -S uv run --script | |
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = [ | |
| # "furl", | |
| # ] | |
| # /// | |
| """Clone git repos to the default directory structure""" |
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 | |
| import sys | |
| import datetime | |
| import click | |
| import appdirs | |
| import io | |
| import subprocess | |
| from pathlib import Path |
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 | |
| # | |
| # DANGEROUS! | |
| # | |
| # aws-route53-wipe-hosted-zone - Delete a Route 53 hosted zone with all contents | |
| # | |
| set -e | |
| VERBOSE=true | |
| delete_record() { |
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 -S uv run --script | |
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = [ | |
| # "furl", | |
| # ] | |
| # /// | |
| """Clone git repos to the default directory structure""" |
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
| nix run --impure --expr '(builtins.getFlake "github:nixos/nixpkgs/nixpkgs-unstable").legacyPackages."${builtins.currentSystem}".nnn.override {withNerdIcons = true;}' |
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 -S uv run --script | |
| # /// script | |
| # dependencies = [ | |
| # "PyGitHub", | |
| # "GitPython" | |
| # ] | |
| # /// | |
| import argparse | |
| import subprocess |
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
| db, err := sqlx.Open("sqlite", fmt.Sprintf("file:%s?mode=ro", tempDb.Name())) | |
| if err != nil { | |
| return errors.Join(&ErrCommand{}, err) | |
| } |
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 | |
| # Wrapper script to launch an ephemeral EC2 instance | |
| import os | |
| import time | |
| import sys | |
| import argparse | |
| import boto3 | |
| import logging | |
| import socket |
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-Module ActiveDirectory | |
| # New-ADOrganizationalUnit -Name "autofs" -Path "dc=default,dc=libvirt" | |
| # New-ADObject -Name auto.master -Path 'ou=autofs,dc=default,dc=libvirt' -Type nisMap -OtherAttributes @{'nisMapName'='auto.master'} | |
| #New-ADObject -Name '/home' -Path 'cn=auto.master,ou=autofs,dc=default,dc=libvirt' -Type nisObject -OtherAttributes @{'nisMapName'='/home'; 'nisMapEntry'='auto.home'} | |
| #New-ADObject -Name auto.home ` | |
| # -Path 'ou=autofs,dc=default,dc=libvirt' ` |
NewerOlder