package manager | sync db | install | upgrade | uninstall |
---|---|---|---|---|
apt-get | update | install | install | remove |
brew | update | install | upgrade | uninstall |
bundle | N/A | install | update | remove |
gem | N/A | install | install | uninstall |
pacman | -y | -S | -S | -R |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# downloads photos from your Flickr albums; each album is its own folder | |
# | |
# usage: | |
# | |
# gem install flickr | |
# FLICKR_API_KEY=abc123def456 FLICKR_SHARED_SECRET=abc123 FLICKR_USER_ID=11111111@N00 ruby download.rb | |
require 'flickr' | |
require 'fileutils' | |
require 'open-uri' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fuzzy finder branch selection | |
# if run by itself, switches to the selected branch | |
# if run in a subshell, echos the selected branch | |
function fgb() { | |
if [[ "$ZSH_SUBSHELL" == "0" ]]; then | |
git checkout $(fgb) | |
else | |
gbranches | | |
fzf --height 40% --ansi | | |
awk '{print $1}' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
poll mail.morgn.net protocol POP3 | |
user "tim" with password "blablablabla" is tim here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle config --global build.mysql2 --with-opt-dir="$(brew --prefix openssl)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# https://mpov.timmorgan.org/clipboard-history-in-sway-window-manager/ | |
require 'json' | |
STORE = "#{ENV['HOME']}/.clipboard-history" | |
LIMIT = 100 | |
unless File.exist?(STORE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'sinatra' | |
gem 'sinatra-contrib' |
Name | Type | License | Tech |
---|---|---|---|
apostello | SMS communication | MIT | Python |
Bible API | bible reference | MIT | Ruby |
Bible Helper | bible reference | MIT | JavaScript |
Cedar | media projection | MIT | JavaScript (Meteor) |
Chabaa | service streaming and chat | GPLv3 | PHP |
CHUMS | ChMS | MIT | TypeScript |
ChurchCRM | ChMS | MIT | PHP |
ChurchInfo | ChMS | GPLv2 | PHP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open3' | |
def test | |
puts | |
puts '=========================================' | |
puts | |
_, stdout, wait_thr = Open3.popen2('cargo test -- --nocapture --test-threads=1') | |
print stdout.getc until stdout.eof? | |
wait_thr.value.success? | |
end |