Skip to content

Instantly share code, notes, and snippets.

View dajabe's full-sized avatar

David Benton dajabe

View GitHub Profile
@dajabe
dajabe / tec.fish
Created April 19, 2024 04:12
Fish script that will open a tmux session with nvim editors for your config directories
function tec
if tmux has-session -t 'config'
echo "Attaching to existing config session"
tmux attach-session -t 'config'
return
end
if set -q REPOSITORY_DIR
set repo_dir "$REPOSITORY_DIR"
else
@dajabe
dajabe / visual_form_example.js
Last active June 21, 2023 01:50
DocSpring visual form example
if (window.DocSpring) {
DocSpring.appHost = '//app.docspring.com';
DocSpring.host = '//api.docspring.com';
window.visualForm = DocSpring.createVisualForm('.dsp-form', {
templateId: 'tpl_VISUALDEMOmxEH34AAF',
// When false, we show the confirmation message immediately.
// (This is always false if the template has "private submissions"
// and the user is not signed in.)
waitForPDF: true,
@dajabe
dajabe / phashion_install_output
Created May 17, 2023 00:58
Output for a phashion compile failing on M2
i386 ❯ LIBRARY_PATH=$LIBRARY_PATH:/usr/local/homebrew/opt/libjpeg/lib:/usr/local/homebrew/opt/libpng/lib gem install phashion -v '1.2.0'
Building native extensions. This could take a while...
ERROR: Error installing phashion:
ERROR: Failed to build gem native extension.
current directory: /Users/djb/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/phashion-1.2.0/ext/phashion_ext
/Users/djb/.rbenv/versions/2.7.7/bin/ruby -I /Users/djb/.rbenv/versions/2.7.7/lib/ruby/2.7.0 -r ./siteconf20230517-19922-1xavupr.rb extconf.rb
tar xzf /Users/djb/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/phashion-1.2.0/ext/phashion_ext/pHash-0.9.6.tar.gz 2>&1
env CXXFLAGS=' -pthread' CFLAGS=' -I/Users/djb/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/phashion-1.2.0/ext/phashion_ext/include -L/Users/djb/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/phashion-1.2.0/ext/phashion_ext/lib -L/usr/local/lib -x c++ ' LDFLAGS=' -L/Users/djb/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/phashion-1.2.0/ext/phashion_ext/lib -L/usr/l