Skip to content

Instantly share code, notes, and snippets.

View semanticart's full-sized avatar

Jeffrey Chupp semanticart

View GitHub Profile
require 'formula'
class Wkhtmltopdf < Formula
url 'http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9.tar.bz2'
homepage 'http://code.google.com/p/wkhtmltopdf/'
# md5 'df2bb84b7d15140ca14732898155dd6a'
sha1 '41f598c0103326e7c13101391447b0284b4ba3cb'
depends_on 'qt'
#!/usr/bin/env bash
if [[ $# -eq 0 ]] ; then
echo 'You must provide a size'
exit 0
fi
# first make the image with no content
convert -size $1 xc:hotpink $1.png
# now add in the size
@semanticart
semanticart / reload-chrome
Created January 8, 2024 15:19
reload chrome
#!/usr/bin/osascript
tell application "Google Chrome"
set i to (count of windows)
repeat while i > -1
set theWindow to window i
set t to (title of (window i))
-- /Users/ship/.config/nvim/after/ftplugin/text.lua
vim.lsp.start {
name = "LSP From Scratch",
cmd = {
"npx", "ts-node",
-- Update this with the path to your server.ts
vim.fn.expand("~/src/lsp-from-scratch/server/src/server.ts")
},
capabilities = vim.lsp.protocol.make_client_capabilities()