- Log in to Abanet from your default browser
- Izpiski in obvestila → Izpisek poslovnega računa
- Napredno iskanje
- Pick dates → Prikaži
- Open JS console, enter:
$("a[href*=#data]")
- Copy the output (see
example_output.txt
) - Run the script:
pbpaste | ruby abanet.rb | xargs open
- Sit back and wait for your browser to start downloading (you might want to set a separate downloads folder first)
This file contains 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
# System-wide .bashrc file for interactive bash(1) shells. | |
if [ -z "$PS1" ]; then | |
return | |
fi | |
PS1='\h:\W \u\$ ' | |
# Make bash check its window size after a process completes | |
shopt -s checkwinsize | |
# Tell the terminal about the working directory at each prompt. | |
if [ "$TERM_PROGRAM" == "Apple_Terminal" ] && [ -z "$INSIDE_EMACS" ]; then |
This file contains 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 'rails', github: 'rails/rails' | |
gem 'pg' |
This file contains 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
# http://stackoverflow.com/questions/5108876/kill-a-postgresql-session-connection | |
namespace :db do | |
desc "Fix 'database is being accessed by other users'" | |
task :terminate => :environment do | |
ActiveRecord::Base.connection.execute <<-SQL | |
SELECT | |
pg_terminate_backend(pid) | |
FROM | |
pg_stat_activity | |
WHERE |
This file contains 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 "spec_helper" | |
describe Api::ArtistsController do | |
let(:artist) { double :artist, id: '1', to_json: '' } | |
describe "#show" do | |
it "renders the json representation of a given artist" do | |
Artist.stub(:find).with('1') { artist } |
This file contains 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
con_enable 1 | |
dota_minimap_hero_size "850" | |
mat_queue_mode 4 | |
fps_max "80" | |
net_graphproportionalfont 0 | |
net_graphinsettop 145 | |
net_graphinsetright -25 |
Our suite would sometimes randomly hang when running a certain spec, but we weren't able to tell which one. With the below RSpec around filter you can see the spec that is currently running by inspecting the process name.
$ rspec spec_spec.rb &
[2] 64968
$ ps | grep rspec
64968 ttys005 0:00.24 rspec /Users/miha/spec_spec.rb:10 "Dummy spec waits for 100 seconds"
This file contains 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
Thanks for joining us, fair wizard! We've received your Paradox Account details, and work has already begun on your new robe. You're about a 38 regular, right? | |
While we're finishing up the tailoring and applying the flame retardant, we just need you to do us one quick favor and confirm your account. Sometimes it's hard to tell who's who under those robes, so we just want to make sure it's you, and not a vampire. Please confirm your new account by clicking here: |
This file contains 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
DROPBOX_DIR = "~/Dropbox/Public/pic" | |
DROPBOX_URL = "https://dl.dropbox.com/u/4381416/pic/" | |
filename = Time.now.strftime "grab-%Y%m%d-%H%M%S%4N.png" | |
target = File.expand_path File.join(DROPBOX_DIR, filename) | |
public_url = DROPBOX_URL + filename | |
abort "File already exists" if File.exists?(target) | |
def screencapture(target) | |
system "screencapture", "-i", target |
This file contains 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
con_enable "1" | |
net_graphheight 64 | |
net_graphpos 1 | |
net_graphproportionalfont 0 | |
net_graphtext 1 | |
net_graphinsetleft 145 | |
net_graphinsetbottom 0 | |
net_graphinsetright 0 | |
net_graphinsettop -422 |