Skip to content

Instantly share code, notes, and snippets.

View brucebentley's full-sized avatar

Bruce Bentley brucebentley

View GitHub Profile
@rkttu
rkttu / ConvertTo-AnimatedGif.ps1
Created October 28, 2021 01:58
Animated GIF conversion PowerShell function
function ConvertTo-AnimatedGif {
param (
[string]$VideoFilePath = $(Read-Host -Prompt 'Enter a video file path.'),
[int]$FramePerSeconds = 10,
[int]$Scale = 320,
[switch]$Verbose
)
$ffmpegCommand = (Get-Command -ErrorAction Ignore 'ffmpeg.exe')
@alexander-danilenko
alexander-danilenko / windows-11-cheatsheet.md
Last active April 19, 2025 12:08
Windows 11 Cheatsheet
import json
import requests
from bs4 import BeautifulSoup
def fetch_coingecko_html():
# make a request to the target website
r = requests.get("https://www.coingecko.com")
if r.status_code == 200:
# if the request is successful return the HTML content
@fullmetalbrackets
fullmetalbrackets / .zshrc
Last active October 26, 2022 06:45
Zsh & Oh My Zsh Config (Linux)
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@brucebentley
brucebentley / Installing AWS Tools for PowerShell on Windows.md
Last active May 22, 2023 18:26
Windows 10 Development Environment Setup

A Windows-based computer can run any of the AWS Tools for PowerShell package options:

  • AWS.Tools - The modularized version of AWS Tools for PowerShell. Each AWS service is supported by its own individual, small module, with shared support modules AWS.Tools.Common and AWS.Tools.Installer.
  • AWSPowerShell.NetCore - The single, large-module version of AWS Tools for PowerShell. All AWS services are supported by this single, large module.
  • AWSPowerShell - The legacy Windows-specific, single
@brucebentley
brucebentley / README.md
Last active August 3, 2021 06:58
Corsair's RGB hardware, iCue software & general eco-system FAQ's
@codebytes
codebytes / DevMachineSetup.ps1
Last active January 2, 2025 02:42
DevMachineSetup
#Install WinGet
#Based on this gist: https://gist.github.com/crutkas/6c2096eae387e544bd05cde246f23901
$hasPackageManager = Get-AppPackage -name 'Microsoft.DesktopAppInstaller'
if (!$hasPackageManager -or [version]$hasPackageManager.Version -lt [version]"1.10.0.0") {
"Installing winget Dependencies"
Add-AppxPackage -Path 'https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx'
$releases_url = 'https://api.github.com/repos/microsoft/winget-cli/releases/latest'
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
@marcusobrien
marcusobrien / settings.json
Created June 8, 2021 01:42
The whole settings.json for the Windows Terminal
{
"$schema": "https://aka.ms/terminal-profiles-schema",
// Add custom actions and keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about actions and keybindings, visit https://aka.ms/terminal-keybindings
"actions":
[
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
// These two lines additionally bind them to Ctrl+C and Ctrl+V.
// To learn more about selection, visit https://aka.ms/terminal-selection
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons