Skip to content

Instantly share code, notes, and snippets.

View greglamb's full-sized avatar

Greg Lamb greglamb

View GitHub Profile

💾 📕 AI Development

🔸 gnote


📕🔽

📂 Discussion threads worth tracking

@greglamb
greglamb / iterm2.md
Created June 7, 2025 17:51 — forked from squarism/iterm2.md
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
{
"BZ2": {
"name": "UAP",
"names": {
"abbreviation": "UAP",
"fullName": "Access Point",
"sku": "UAP"
},
"type": "uap",
"compliance": {
@greglamb
greglamb / fixvscodemarkdown.css
Created July 9, 2024 21:04
fix vscode markdown
.contains-task-list li {
margin-left: 0px !important;
}
@greglamb
greglamb / google-domains-dynamic-dns-update.sh
Created April 15, 2023 21:26 — forked from cyrusboadway/google-domains-dynamic-dns-update.sh
Script to update a Google Domains DNS record
#!/bin/bash
### Google Domains provides an API to update a DNS "Syntheitc record". This script
### updates a record with the script-runner's public IP, as resolved using a DNS
### lookup.
###
### Google Dynamic DNS: https://support.google.com/domains/answer/6147083
### Synthetic Records: https://support.google.com/domains/answer/6069273
USERNAME=""
Link to Latest Teams Download
https://github.com/ItzLevvie/MicrosoftTeams-msinternal/issues/6
https://raw.githubusercontent.com/ItzLevvie/MicrosoftTeams-msinternal/master/defconfig2
URLs for the latest Public Developer Preview (R3.6 or P) build of Microsoft Teams:
Ring 0 Canary
Ring 1 Teams
Ring 1.5 IT Admins Preview (Beta)
@greglamb
greglamb / vsCodeOpenFolder.reg
Created July 10, 2020 18:23
Right click on Windows folder and open with Visual Studio Code
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="C:\\Users\\GLamb\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\Users\\GLamb\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\""
@greglamb
greglamb / Installation.md
Created July 1, 2020 17:10 — forked from albertbori/Installation.md
Automatically disable Wifi when an Ethernet connection (cable) is plugged in on a Mac

Overview

This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.

Most the credit for these changes go to Dave Holland.

Requirements

  • Mac OSX 10+
  • Administrator privileges
@greglamb
greglamb / twittermute.txt
Created January 24, 2020 23:48 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet