Skip to content

Instantly share code, notes, and snippets.

View dvydra's full-sized avatar

Daniel Vydra dvydra

  • Melbourne, Australia
View GitHub Profile
@dvydra
dvydra / rails_4.2.11.3_railslts_4.2.11.15.diff
Created May 19, 2020 01:00
rails_4.2.11.3_railslts_4.2.11.15.diff
Only in /Users/dvydra/.gem/ruby/2.5.8/gems/rails-4.2.11.15/: .DS_Store
Only in /Users/dvydra/.gem/ruby/2.5.8/gems/rails-4.2.11.15/: LICENSE
Only in /Users/dvydra/.gem/ruby/2.5.8/gems/rails-4.2.11.15/guides: .DS_Store
diff -r /Users/dvydra/.gem/ruby/2.5.8/gems/rails-4.2.11.3/guides/CHANGELOG.md /Users/dvydra/.gem/ruby/2.5.8/gems/rails-4.2.11.15/guides/CHANGELOG.md
1,15d0
< ## Rails 4.2.11.3 (May 15, 2020) ##
<
< * No changes.
<
<
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew doctor
brew update
## Install ###################################################################
@dvydra
dvydra / gist:3422479
Created August 22, 2012 05:23
Click on filename in terminal and open file in rubymine
1) Install iTerm2, it's awesome.
2) locate your rubymine commandline integration thingy, it's usually `/usr/local/bin/mine`
3) Open iTerm2 preferences. Go to Profiles -> Default -> Advanced.
4) Select "Run command..." under Semantic History
5) Enter "/usr/local/bin/mine --line \2 \1" as the command
@dvydra
dvydra / gist
Created June 27, 2012 00:59
gist the gist
require 'irb/completion'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
module Readline
module History
LOG = "#{ENV['HOME']}/.irb-history"
def self.write_log(line)
File.open(LOG, 'ab') {|f| f << "#{line}\n"}
end
<strong>Melbourne</strong>
<ul>
<li>[<a href="http://itpleasesus.com/feed/">RSS</a>] <a href="http://itpleasesus.com">"...it pleases us"</a></li>
<li>[<a href="http://jeroxie.com/addiction/feed">RSS</a>] <a href="http://jeroxie.com/addiction">Addictive and consuming - A Melbourne food blog</a></li>
<li>[<a href="http://citytraces.julieshiels.com.au/?feed=rss2">RSS</a>] <a href="http://citytraces.julieshiels.com.au">City Traces</a></li>
<li>[<a href="http://considerthesauce.net/feed/">RSS</a>] <a href="http://considerthesauce.net">considerthesauce.net</a></li>
<li>[<a href="http://www.dailymelbourne.com/feeds/posts/default">RSS</a>] <a href="http://www.dailymelbourne.com">DAILY MELBOURNE</a></li>
<li>[<a href="http://www.danielbowen.com/feed/">RSS</a>] <a href="http://www.danielbowen.com">Diary of an Average Australian</a></li>
<li>[<a href="http://eatourwayuphighst.blogspot.com/feeds/posts/default">RSS</a>] <a href="http://eatourwayuphighst.blogspot.com/">eat our way up high street project</a></li>
@dvydra
dvydra / gist:873757
Created March 17, 2011 02:44
GnuPlot a time series
gnuplot> set xdata time
gnuplot> set timefmt "%Y-%m-%d_%H:%M:%S"
gnuplot> plot "/Users/dvydra/Desktop/time_series2.txt" using 1:2
$ head Desktop/time_series2.txt
2011-03-01_00:18:36,490 687731
2011-03-01_00:18:36,651 711241
2011-03-01_01:18:36,553 687731
@dvydra
dvydra / extracting a public SSH key from a private key file:
Created March 9, 2011 20:30
extracting a public SSH key from a private key file:
extracting a public SSH key from a private key file:
ssh-keygen -y -f id_dsa > id_dsa.pub
@dvydra
dvydra / bash setup
Created March 5, 2011 12:20
inputrc and profile basics
>> .inputrc
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[C": forward-char
"\e[D": backward-char
>> .profile
export HISTCONTROL=erasedups
export HISTSIZE=10000
export CLICOLOR=1
@dvydra
dvydra / bash for loop files
Created March 2, 2011 22:29
because i always forget how this works
for i in 1 2 3 4; do grep happy /var/log/server_$i.log|wc -l; done;
[user]
name = Daniel Vydra
email = daniel.vydra@lonelyplanet.com.au
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true