Skip to content

Instantly share code, notes, and snippets.

View treramey's full-sized avatar

Trevor Ramey treramey

View GitHub Profile
@tcartwright
tcartwright / TestHttpsCert.ps1
Last active May 22, 2025 14:50
POWERSHELL: Test https cert
Clear-Host
$hostName = "www.microsoft.com"
$req = [System.Net.HttpWebRequest]::Create("https://$hostName")
$req.GetResponse().Dispose()
$servicePoint = $req.ServicePoint
[System.Security.Cryptography.X509Certificates.X509Certificate2]$cert = $servicePoint.Certificate
# $servicePoint | Format-List *
@rheajt
rheajt / npm_scripts.lua
Created February 13, 2025 04:01
a quick implementation of the snacks picker to run npm scripts in a tmux sidebar to the right
local function get_npm_scripts()
local file = io.open("package.json", "r")
if file then
local content = file:read("*a")
file:close()
local packageData = vim.json.decode(content)
if packageData.scripts then
local scripts = {}
for key, value in pairs(packageData.scripts) do
-- add key, value to the scripts table
@treramey
treramey / conventional-commits-cheatsheet.md
Created January 27, 2025 16:25 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@ixahmedxi
ixahmedxi / settings.json
Created January 2, 2024 08:05
My settings.json
{
"workbench.startupEditor": "none",
"workbench.iconTheme": "moxer-icons",
"workbench.colorTheme": "Aura Dark",
"workbench.settings.editor": "json",
"breadcrumbs.enabled": false,
"explorer.compactFolders": false,
"editor.wordWrap": "bounded",
"editor.tabSize": 2,
"editor.inlineSuggest.enabled": true,
@cgons
cgons / mac-setup-for-python.md
Last active April 9, 2025 22:58
Python Dev Setup for (M1) Macs
@NotAShelf
NotAShelf / pbcopy-and-pbpaste-in-arch-linux.md
Last active February 7, 2025 14:43 — forked from aarnone/pbcopy-and-pbpaste-in-arch-linux.md
Get pbcopy and pbpaste in Arch Linux

Get pbcopy and pbpaste in Arch Linux

First you need the 'xsel' package.

pacman -S xsel

Then create aliases.

alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
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
@riggaroo
riggaroo / tag_release.yml
Created October 4, 2020 07:51
Github Action workflow for tagging release on Github Release, copying release notes from CHANGELOG.md
name: Tag Release
on:
push:
branches: [ main ]
jobs:
tag_release:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
@anuragdhingra
anuragdhingra / AZURE_CLI.md
Created May 18, 2020 10:43
Clone all your azure DevOps repositories in your organization at once using Azure CLI.
  1. Install Azure CLI
brew install azure-cli
  1. Add the DevOps CLI extension -
az extension add --name azure-devops
  1. Set your default organization and project -
@GeorgeLyon
GeorgeLyon / Git Worktree Overview.md
Last active September 15, 2025 15:26
Git Worktree Overview

git worktree

What is it?

Git worktree it a git feature which allows you to checkout a single repository into multiple locations on your filesystem. It has a few rough edges, but if you follow a few simple rules it can be make context switching much easier than git's other mechanisms, such as stashing or switching branches. My folder structure will usually look something like this:

MyRepo/ master/ ← The original checkout, using something like git clone <repo url> master