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
| # ~/Library/LaunchAgents/com.user.mountnas.plist | |
| # | |
| # To set on launch: | |
| # launchctl load ~/Library/LaunchAgents/com.user.mountnas.plist | |
| # | |
| # Oh, these comments gotta be deleted. This is a plist and this | |
| # forced you to read this. | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
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 | |
| # /usr/local/bin/mount-nas.sh | |
| NAS_IP="192.168.69.420" | |
| USERNAME="username" | |
| PASSWORD="password" | |
| SHARES=("Movies" "Music" "Shows" "Photos") | |
| echo "Starting Finder-based SMB mounting..." |
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
| { | |
| description = "socket_vmnet - user-mode networking for macOS VMs"; | |
| inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
| outputs = { self, nixpkgs }: let | |
| version = "1.2.1"; | |
| # Helper function to create the package for a specific architecture | |
| mkSocket = system: let |
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 requests | |
| from datetime import datetime, timedelta, timezone | |
| # Replace these with your actual Coder API URL and API token | |
| # To obtain these values, log in to your Coder account and navigate to your profile settings. | |
| # The API URL can typically be found in the documentation or your organization's Coder instance. | |
| # The API token (Coder-Session-Token) can be generated from your profile settings. | |
| CODER_API_URL = "https://coder.yourdomain.com/api/v2" |
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 | |
| # Name: Nexus MVN Retrieval | |
| # Script: nexartrel.sh | |
| # Version: 0.0.3 | |
| # Author: Adam Whitlock [[email protected]] | |
| # Command line options to be passed | |
| function options { |
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 | |
| # Purpose: Setup local Airflow Python development environment | |
| # Author: Adam Whitlock ([email protected]) | |
| # Version: 0.0.1 | |
| # Specify major version of Python used for Airflow | |
| PYTHON_VERSION="2" | |
| AIRFLOW_VERSION="1.10.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
| #!/bin/bash | |
| # | |
| # Name: Grafana dashboard backup script | |
| # Version: 0.1 | |
| # Requires: jq | |
| display_usage() { | |
| echo "Usage: $0 HOSTNAME KEY DIR" | |
| echo "Backup all Grafana dashboards using Grafana API key" | |
| echo "Requires 'jq' to parse JSON" |
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 | |
| # This is a quick & dirty way of comparing a bunch of various repositories | |
| # visually to understand divergence. Made this very relaxed so anyone with | |
| # shell experience can modify it to their whim. | |
| # | |
| # Suggestions include having comparitive operations between branch names, | |
| # maybe giving an error if ANY divergence is encountered, or maybe trying | |
| # to automatically merge branches if doing something silly like Git flow. |
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 ( | |
| "encoding/json" | |
| "fmt" | |
| "github.com/urfave/cli" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "os" |
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
| alias bastionssh='ssh -X -K -D 9999 targethost.example.com -t tmux attach -t session_name' |
NewerOlder