Skip to content

Instantly share code, notes, and snippets.

View henkin's full-sized avatar

Paul Henkin henkin

View GitHub Profile
@henkin
henkin / startup.sh
Last active October 13, 2023 17:18
zsh
## This is some wild shit I was working on to link shell and browser
first-tab() {
if [[ $#BUFFER == 0 ]]; then
curl http://localhost:15933
BUFFER="ph "
CURSOR=3
zle list-choices
else
zle expand-or-complete
fi
@henkin
henkin / index.html
Created November 29, 2023 23:02
timer.ist
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css" />
@henkin
henkin / launch.json
Created February 7, 2024 06:14
visual studio code
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
MYIP=1.2.3.4
# add MYIP to list of allowed IPs for the Azure CosmosDB server s00354ncdbbridgedev using az cli
az cosmosdb firewall-rule create --name AllowMyIP --resource-group grp --account-name accoutn --start-ip-address $MYIP --end-ip-address $MYIP
az cosmosdb firewall-rule create --name AllowMyIP --resource-group grp --account-name accoubnt --start-ip-address 650.46.64.1 --end-ip-address 3.8.54.4
# install the Azure CLI extension for Cosmos DB.
az extension add --name cosmosdb
@henkin
henkin / mute teams.as
Created June 17, 2024 17:54
appleScript
tell application "Microsoft Teams"
activate
tell application "System Events"
keystroke "o" using {shift down, command down}
end tell
end tell