Skip to content

Instantly share code, notes, and snippets.

View iNecas's full-sized avatar
💭
Happy hacking 👨 ⌨️ 💻

Ivan Necas iNecas

💭
Happy hacking 👨 ⌨️ 💻
View GitHub Profile
@iNecas
iNecas / $*_vs_$@
Last active August 15, 2018 13:46
Difference between $* and "$@"
./test_args.sh "one two" three
with $*
["one", "two", "three"]
with "$@"
["one two", "three"]
@iNecas
iNecas / capsule-sync-analyze.rb
Created October 10, 2018 10:46
capsule-sync-analyze.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'nokogiri'
require 'set'
require 'yaml'
require 'time'
# Usage:
#
# # run inside a directory with extracted task export
@iNecas
iNecas / rest_client_2_log.patch
Last active October 19, 2018 15:15
RestClient 2.0 patch for more readable debug logging
commit 13c25907e7c750eb1f4e19508e6e7aa528dd2f3a
Author: root <[email protected]>
Date: Fri Oct 19 16:47:55 2018 +0200
add more logging
diff --git a/lib/restclient.rb b/lib/restclient.rb
index bdb53f0..588318b 100644
--- a/lib/restclient.rb
+++ b/lib/restclient.rb
#!/usr/bin/env sh
i3lock -i ~/.config/i3/lock_screen.png