Skip to content

Instantly share code, notes, and snippets.

View brucebentley's full-sized avatar

Bruce Bentley brucebentley

View GitHub Profile
@apotitech
apotitech / Jenkinsetup.sh
Last active August 13, 2023 14:59
Setting up our Servers
#!/bin/bash
sudo apt update
sudo apt install openjdk-11-jdk -y
sudo apt install maven -y
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee \
/usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update
@alkuzad
alkuzad / destroy_and_GECK_docker_desktop.ps1
Last active November 1, 2023 09:01
Restart script to restart WSL, DockerDesktop and LxssManager. This script should unblock blocked wsl/docker-desktop.
# MIT License
# Copyright (c) 2023 Dawid Goslawski
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@fullmetalbrackets
fullmetalbrackets / zsh-install.md
Last active November 5, 2023 00:43
Quick Guide - install zsh + oh-my-zsh w/ plugins & powerlevel10k theme

Install Zsh

sudo apt install zsh -y

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
@brucebentley
brucebentley / Connecting Docker cli and Kubectl to Docker Desktop for Windows.md
Last active December 5, 2021 15:47
Setup your Windows 10 & WSL development environment(s) so that you're able to use all the various Kubernetes tooling.
@itoleck
itoleck / Install WinGet Software
Last active January 29, 2024 16:55
WinGetInstalls
Start /WAIT /B Winget install "Microsoft.PowerShell.Preview" --force --accept-package-agreements --accept-source-agreements
Start /WAIT /B Winget install "Microsoft XNA Framework Redistributable Refresh" --force --accept-package-agreements --accept-source-agreements &REM *Needs alone time, no other install*
Start /WAIT /B Winget install "Microsoft.VisualStudio.2022.Community" --force --accept-package-agreements --accept-source-agreements
REM Install all of the VC++ Redistributables
Start /WAIT /B Winget install "Microsoft Visual C++ 2005 Redistributable" --force --accept-package-agreements --accept-source-agreements
Start /WAIT /B Winget install "Microsoft Visual C++ 2005 Redistributable (x64)" --force --accept-package-agreements --accept-source-agreements
Start /WAIT /B Winget install "Microsoft Visual C++ 2008 Redistributable - x64" --force --accept-package-agreements --accept-source-agreements
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 April 8, 2024 17:25
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