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 | |
| # Check if the JSON file is provided as an argument | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <terraform-plan-output.json>" | |
| exit 1 | |
| fi | |
| # Function to get an emoticon based on the action | |
| get_emoticon() { |
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 | |
| # You should have these envvars setup already | |
| # VAULT_ADDR="https://your-vault-address" | |
| # VAULT_TOKEN="your-vault-token" | |
| # Define Okta and Vault configuration variables | |
| OKTA_DOMAIN="yourOktaDomain" | |
| VAULT_API_TOKEN_PATH="secret/data/okta/api_token" | |
| VAULT_USER_CREDS_PATH="secret/data/okta/users" |
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 node | |
| import OpenAI from "openai"; | |
| import { exec } from 'child_process'; | |
| exec('git status', async (error, stdout, stderr) => { | |
| if (error) { | |
| console.error(`exec error: ${error}`); | |
| return; | |
| } | |
| if (stderr) { |
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
| param( | |
| [string]$productName = "terraform", | |
| [string]$os = "linux", | |
| [string]$arch = "amd64", | |
| [string]$version = "latest" | |
| ) | |
| Function Get-Products { | |
| Invoke-RestMethod -Uri https://api.releases.hashicorp.com/v1/products | Format-Table | |
| } |
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
| AZ_REPO=$(lsb_release -cs) | |
| echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | sudo tee /etc/apt/sources.list.d/azure-cli.list | |
| curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
| sudo apt-get -y install apt-transport-https | |
| sudo apt-get update && sudo apt-get -y install azure-cli |
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
| # create a tinycorelinux fs with custom .tcz packages | |
| # prerequisites: apt-get install squashfs-tools, npm i nugget -g | |
| # dl release + packages (add your packages here) | |
| nugget http://tinycorelinux.net/6.x/x86_64/release/CorePure64-6.3.iso http://tinycorelinux.net/6.x/x86_64/tcz/{pkg-config,make,gcc,gcc_base-dev,gcc_libs-dev,gcc_libs,glibc_base-dev,linux-3.16.2_api_headers,fuse}.tcz -c | |
| # to support compiling addons | |
| unsquashfs -f pkg-config.tcz | |
| unsquashfs -f make.tcz | |
| unsquashfs -f gcc.tcz |
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
| # used by Git (commit messages, rebase, ...) | |
| export EDITOR=vim |
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 | |
| # | |
| # rotate_desktop.sh | |
| # | |
| # Rotates modern Linux desktop screen and input devices to match. Handy for | |
| # convertible notebooks. Call this script from panel launchers, keyboard | |
| # shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.). | |
| # | |
| # Using transformation matrix bits taken from: | |
| # https://wiki.ubuntu.com/X/InputCoordinateTransformation |
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
| <# | |
| .EXAMPLE .\Install-Com.ps1 -applicationName "test.application" ` | |
| -applicationIdentity "someuser" ` | |
| -componentBinPath "C:\where\is\your\dll\some.dll" | |
| This will install 1 COM+ component to an application | |
| If you have 1 application with 3 components | |
| - call this 3 times for each COM+ Component dll 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
| /* Solarized Dark | |
| For use with Jekyll and Pygments | |
| http://ethanschoonover.com/solarized | |
| SOLARIZED HEX ROLE | |
| --------- -------- ------------------------------------------ | |
| base03 #002b36 background | |
| base01 #586e75 comments / secondary content |
NewerOlder