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
| # Jason Gomez - June 2024 | |
| # Problem 1: When installing Vim for Windows using winget it's not added | |
| # to $PATH so it cannot easily be used from the command line. | |
| # Problem 2: The path to the Vim executables keeps changing as the | |
| # version number is part of the path. | |
| # Solution: This script makes a persistent symlink to the latest installed | |
| # version of Vim for Windows and adds it to $PATH. Re-run the | |
| # script when a new version of Vim is installed. | |
| # Get all Vim directories and sort them by version number |
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 | |
| ## Change following to '0' for output to be like ls and '1' for eza features | |
| # Don't list implied . and .. by default with -a | |
| dot=0 | |
| # Show human readable file sizes by default | |
| hru=1 | |
| # Show file sizes in decimal (1KB=1000 bytes) as opposed to binary units (1KiB=1024 bytes) | |
| meb=0 | |
| # Don't show group column |
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
| # PowerShell script to install scoop for multi-user and packages. | |
| # If re-run when scoop is already installed, any additional packages | |
| # are installed and shims are reset in order of the package list. | |
| # I prefer to keep user and global packages as the same, so there's | |
| # a minor inconvenience in some situations where packages will | |
| # be listed twice with global commands. | |
| # | |
| # To avoid git ownership warnings, read this: | |
| # https://stackoverflow.com/a/71904131/140872 | |
| # git config --global --add safe.directory "*" (double quotes on Windows) |
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
| # Version 1.7.0 | |
| $gistUrl = "https://api.github.com/gists/81e7d1be5e7302c281ccc9b04134949e" | |
| $gistFileName = '$profile' # Change this to match the filename in your Gist | |
| $checkInterval = 4 # Check for updates every 4 hours | |
| $updateCheckFile = [System.IO.Path]::Combine($HOME, ".profile_update_check") | |
| $versionRegEx = "# Version (?<version>\d+\.\d+\.\d+)" | |
| $localProfilePath = $Profile.CurrentUserCurrentHost | |
| # Last update check timestamp |
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 | |
| # Oracle firewall update script | |
| # Usage: oci-fupdate [ <source-CIDR> ] [ --query ] | |
| # | |
| # Updates an existing Network Security Group to allow SSH access through the OCI | |
| # firewall to reach instances in a public subnet, like bastion hosts. With no | |
| # argument your current public IP address is used, or you can add a source address | |
| # block in CIDR format. The --query option returns the current source address. | |
| # |
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 | |
| # dynu.com dynamic IP update script | |
| # variables can be added in file, in sourced file or as command line arguments | |
| set -e | |
| # https://www.dynu.com/en-US/ControlPanel/APICredentials | |
| # oauth2='{Client-Id}:{Secret}' | |
| oauth2='EOJ2S-Z6OoN_le_KS1d75wsZ6y0SFdVsY9183IvxFyZp:EClusMEUk8e9ihI7ZdVLF5cZ6y0SFdVsY9183IvxFyZp' |
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 | |
| # AWS CLI v2 install/update script | |
| # For v2 you either need to install manually | |
| # or use a script like this | |
| # | |
| # For bash v5 > | |
| # | |
| # For auto-completion add `cli_auto_prompt = on` to config | |
| # ..or add AWS_CLI_AUTO_PROMPT=on environment variable |
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 -e | |
| # This script installs or updates to the latest version of Go. | |
| # Multi-platform (Linux and macOS) | |
| # Multi-architecture (amd64, arm64, arm) support | |
| # | |
| # Add to your .profile, .bash_profile or .zshenv: | |
| # export PATH=$PATH:/usr/local/go/bin | |
| error_string=("Error: This command has to be run with superuser" |
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
| // ==UserScript== | |
| // @name Twitter Go Back with H key | |
| // @namespace https://gist.github.com/eggbean/ba4daf82f132421c69dbd2c2e0b3e061/raw/twitter_go_back.user.js | |
| // @version 1.1 | |
| // @description Makes the unused H key a browser back button for better H,J,K,L keyboard navigation | |
| // @author https://github.com/eggbean | |
| // @match https://x.com/* | |
| // @icon https://x.com/favicon.ico | |
| // @grant none | |
| // ==/UserScript== |
NewerOlder