Skip to content

Instantly share code, notes, and snippets.

@scfcode
scfcode / Config.plist
Created June 9, 2019 15:22
Hack on popclip for Omnifocus 3(.4) #popclip
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Actions</key>
<array>
<dict>
<key>AppleScript File</key>
<string>OmniFocusAddInboxTask.applescript</string>
<key>Image File</key>
@scfcode
scfcode / OmniOutliner5_to_Markdown.ft
Created June 22, 2019 23:52
A Simple hack to get some sort of Markdown from OmniOutliner 5 Pro
# Simple hack to get some sort of Markdown from OmniOutliner 5 Pro
// YMMV 062219
On my macOS 10.14.4 box I took
Scott Lowe's advice from
https://blog.scottlowe.org/2017/01/16/opml-to-markdown-script/
@scfcode
scfcode / HellowWorld_InfinityModule.md
Last active June 30, 2019 23:26
Getting the Hello World Infinity module example to load without error
@scfcode
scfcode / SDL_Mame_Fixup
Created August 3, 2019 22:59
Fix for mame SDL Framework linking error
I saw this failure with mame0211b on macOS
% ./mame64
dyld: Library not loaded: @rpath/SDL2.framework/Versions/A/SDL2
Referenced from: /Users/stephenfitch/bin/mame0211b_macOS/./mame64
Reason: image not found
[1] 34274 abort ./mame64
% otool -L mame64
@scfcode
scfcode / lepton on a Mac
Last active April 19, 2022 16:03
Install Lepton on a Mac via homebrew #mac
brew install --cask lepton
# See https://github.com/hackjutsu/Lepton/blob/master/docs/img/portfolio/stay_organized.png
@scfcode
scfcode / my brews
Last active October 15, 2022 04:57
Some Useful brew installations #macos #homebrew #brew
brew install rar
brew install iperf3
brew install cmake
brew tap homebrew/cask-fonts # https://github.com/ryanoasis/nerd-fonts/blob/master/readme.md#option-4-homebrew-fonts
brew install --cask font-hack-nerd-font # https://github.com/ryanoasis/nerd-fonts/blob/master/readme.md#option-4-homebrew-fonts
brew install coreutils
brew install lsd
brew install zsh
brew install --cask vscodium
brew install rust
@scfcode
scfcode / mDNSresponder_Disable
Created April 19, 2022 17:48
Disable mDNSresponder macOS
reboot/cmd-r -> terminal
csrutil disable # disable SIP
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSresponder.plist
See also
defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ProgramArguments -array “/usr/sbin/mDNSResponder” “-launchd” “-NoMulticastAdvertisements”
@scfcode
scfcode / KeePassXC_macOS.md
Last active April 19, 2022 18:59
Making KeePassXC on macOS #macos
  • brew install qt5 libgcrypt argon2 qrencode libsodium asciidoctor minizip

  • export Qt5_DIR=/usr/local/Cellar/qt@5/5.15.2/lib/cmake/Qt5

  • cmake -DCMAKE_OSX_ARCHITECTURES=x86_64
    -DCMAKE_BUILD_TYPE=Release
    -DWITH_XC_ALL=ON ..

  -- Found Git HEAD Revision: f15ee90
@scfcode
scfcode / git.notes.md
Created April 26, 2022 00:53
A few random git scribbles #git#github

…or create a new repository on the command line

echo "# minfo" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/scfcode/minfo.git git push -u origin main

@scfcode
scfcode / docker_nusa_and_ubud.md
Last active September 10, 2022 21:17
Local Docker command lines #portainer

Portainer

docker volume create portainer_data

CE Version

docker run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

Switch to EE version

docker run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=always \