Skip to content

Instantly share code, notes, and snippets.

View timorantalaiho's full-sized avatar

Timo Rantalaiho timorantalaiho

View GitHub Profile

Keybase proof

I hereby claim:

  • I am timorantalaiho on github.
  • I am timo (https://keybase.io/timo) on keybase.
  • I have a public key whose fingerprint is EC85 6855 1281 A3F4 AD25 A416 4052 3C0D F3B3 6EBF

To claim this, I am signing this object:

@timorantalaiho
timorantalaiho / gist:6c98311a0fbf199f8923
Created May 10, 2015 15:20
Rust recursion stack overflow
fn main() {
rekursoi(0);
}
fn rekursoi(n: i64) -> i64 {
if (n % 100 == 0) {
println!("{} loops", n);
}
rekursoi(n + 1)
$ lein deps
Retrieving speclj/speclj/3.2.0/speclj-3.2.0.pom from clojars
Retrieving org/clojure/clojure/1.6.0/clojure-1.6.0.pom from central
Retrieving fresh/fresh/1.0.2/fresh-1.0.2.pom from clojars
Retrieving org/clojure/clojure/1.2.0/clojure-1.2.0.pom from central
Retrieving mmargs/mmargs/1.2.0/mmargs-1.2.0.pom from clojars
Retrieving org/clojure/clojure/1.2.1/clojure-1.2.1.pom from central
Retrieving trptcolin/versioneer/0.1.1/versioneer-0.1.1.pom from clojars
Retrieving org/clojure/clojure/1.4.0/clojure-1.4.0.pom from central
Retrieving lein-environ/lein-environ/1.0.0/lein-environ-1.0.0.pom from clojars
...starting application with command "sudo /usr/local/bin/run_app.bash /var/www/current/va.jar /var/www/current/config/test.edn" ...
...checking that it really comes up, with /usr/local/bin/health_check.bash ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to va-test port 8081: Connection refused
...no dice yet, sleeping for 3 seconds and trying again...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
__________________________________________________________
/ TASK: 3rdparty/postgresql | Install pgdg package signing \
\ key (Debian/pgdg) /
----------------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||