Skip to content

Instantly share code, notes, and snippets.

View brucebentley's full-sized avatar

Bruce Bentley brucebentley

View GitHub Profile
@Dobby89
Dobby89 / Productivity.md
Last active April 10, 2025 06:28
Tips & tricks for productivity / workflow

Windows

Tips

  • Remove desktop background (if your company enforces one)
    • If you search in the start menu for Ease of Access, you'll see a result for Ease of Access brightness setting.
    • Once that settings page has been opened, if you scroll down to the bottom, you’ll see an option to Show desktop background image. If you toggle this to off, it will set the background to the default black.

Keyboard shortcuts

@ejabu
ejabu / good-theme-vscode.md
Created February 22, 2021 11:44
Github Light Theme Setup

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@kuharan
kuharan / send_email_with_attachments.py
Created February 14, 2021 05:37
Send email with attachments in AWS lambda
def send_email(sender, recipient, aws_region, subject, file_name):
# The email body for recipients with non-HTML email clients.
BODY_TEXT = "Hello,\r\nPlease find the attached file."
# The HTML body of the email.
BODY_HTML = """\
<html>
<head></head>
<body>
<h1>Hello!</h1>
<p>Please find the attached file.</p>
@brucebentley
brucebentley / iOS Shortcuts Catalog.md
Last active April 13, 2025 02:16
This is a public resource designed to help people get started with Siri Shortcuts & the Shortcuts app. It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.

Bruce's iOS Shortcut Catalog

Hello and welcome to my Shortcuts Catalog!

This is a public resource designed to help people get started with Siri Shortcuts and the Shortcuts app.

It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.

Enjoy!

// ==UserScript==
// @name Buy A PS5
// @version 1.0.0
// @description A userscript that collapses markdown headers
// @author Bruce Bentley <[email protected]> (https://brucebentley.io)
// @copyright 2021, Bruce Bentley (https://github.com/brucebentley)
// @license MIT; https://opensource.org/licenses/MIT
// @namespace https://github.com/brucebentley
// @description
// @match https://www.target.com/*
@akuryan
akuryan / sonarQubeAnalyzer.ps1
Last active August 13, 2023 21:09
SonarQube Community edition: get quality gate status after analysis and retrieve possible issues with theirs severities; then create bugs, linked to some issues in Jira
# path to sonarscanner for msbuild
$SonarQubeRunner = $(Resolve-Path ".\SonarScanner.MSBuild.exe").Path;
# sonar qube token for auth
$sonarQubeToken = "";
# sonar server hostname
$sonarQubeHostName = "";
$sonarQubeScheme = "https";
$sonarQubeUrl = "$sonarQubeScheme://$sonarQubeHostName";
# sonarqube project name
$sonarQubeProjectName = "";
@brucebentley
brucebentley / Create Gist.js
Created November 17, 2020 03:59
Create Gist
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-gray; icon-glyph: file-code;
// To use this script, you need to configure an OAuth App on GitHub.
// Follow the instructions on the link below to create your OAuth App.
//
// When you are asked to put in a redirect URL, you should put the URL for running this script in Scriptable. Assuming the name of this script is "Create Gist", the URL is scriptable:///run?scriptName=Create%20Gist
//
// https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/
//
@dioncodes
dioncodes / server-status-widget.js
Last active February 19, 2025 11:18
Scriptable iOS Server Status Widget
const initialData = {
servers: [
{
url: 'https://1.example.com/',
title: 'Server 1',
online: null,
},
{
url: 'https://2.example.com/',
title: 'Server 2',