Skip to content

Instantly share code, notes, and snippets.

View brucebentley's full-sized avatar

Bruce Bentley brucebentley

View GitHub Profile
# Luke's config for the Zoomer Shell
# Enable colors and change prompt:
autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
# History in cache directory:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zsh/history
@m-p-3
m-p-3 / reddit2discord_ifttt.json
Created August 30, 2019 17:33
Reddit to Discord Webhook in IFTTT
This: Reddit
Trigger: Any new post in subreddit
That: Webhooks
Action: Make a web request
URL: (your Discord webhook URL, DO NOT SHARE)
Method: POST
Content Type: application/json
Body:
{ "embeds":
@Jabarabo
Jabarabo / githubpull.md
Last active April 2, 2025 08:15
Gist of a stolen gist
@xmeng1
xmeng1 / wsl2-network.ps1
Created July 14, 2019 06:50
WSL2 Port forwarding port to linux
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '"
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
if( $found ){
$remoteport = $matches[0];
} else{
echo "The Script Exited, the ip address of WSL 2 cannot be found";
exit;
}
@laggardkernel
laggardkernel / cache-first.md
Created July 4, 2019 04:42
Cash First #zsh
_env_init() {
  # init version manager without rehash on startup
  local SHELL_NAME="zsh"
  local init_args=(- --no-rehash zsh)
  local zshrc="$HOME/.zshrc"
  
  # For security on Linux
  [[ -n $XDG_RUNTIME_DIR ]] && local TMPDIR="$XDG_RUNTIME_DIR"
@msolomon
msolomon / init.lua
Last active October 22, 2020 13:02
-- Mike Solomon @msol 2019
local log = hs.logger.new('main', 'info')
DEVELOPING_THIS = false -- set to true to ease debugging
HYPER = {'ctrl', 'shift', 'alt', 'cmd'}
-- App bindings
function setUpAppBindings()
hyperFocusAll('w', 'React Native Debugger', 'Simulator', 'qemu-system-x86_64')
# Significant care is taken to be sh-compatible; if bash or zsh could be
# required, it could be made simpler or more generic.
# Known source'rs:
# ~/.profile
# ~/.zshrc
# ~/.xprofile
# ~/.xsessionrc
# ~/.bashrc
# ~/.config/plasma-workspace/env/*.sh
@brucebentley
brucebentley / _codepen-template-bootstrap_fonts.scss
Last active April 14, 2021 18:49
General Sass (SCSS) stylesheet that can be imported in to any of the cloud-based IDE environments.
@charset 'UTF-8';
///
/// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
///
/// CUSTOM FONTS
///
/// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
///
/// @description Import any third-party CSS & Sass resources that can be easily be referenced globally across your web-application(s).
@xynova
xynova / Connecting Docker cli and Kubectl to Docker Desktop for Windows.md
Last active June 22, 2023 01:02
Connecting Docker cli and Kubectl to Docker Desktop for Windows
@xynova
xynova / Installing Kubernetes and Docker tools on Windows 10 Ubuntu WSL.md
Last active December 5, 2021 15:09
Installing Kubernetes and Docker tools on Windows 10 Ubuntu WSL