Comment out the xconsole
line in /etc/X11/xenodm/Xsetup_0
.
As root:
# 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' |
# 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}' | |
poll mail.morgn.net protocol POP3 | |
user "tim" with password "blablablabla" is tim here |
bundle config --global build.mysql2 --with-opt-dir="$(brew --prefix openssl)" |
#!/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) |
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 |
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 |
➜ ~/Desktop cat hello_crystal.cr | |
puts "hello world" | |
➜ ~/Desktop cat hello_rust.rs | |
fn main() { | |
println!("hello world"); | |
} | |
➜ ~/Desktop crystal --version | |
Crystal 0.25.0 [7fb783f7a] (2018-06-11) | |
LLVM: 4.0.0 |