Skip to content

Instantly share code, notes, and snippets.

@marcellmars
marcellmars / remove <none> docker images
Last active August 29, 2015 13:57
remove <none> docker images
for i in `sudo docker images|grep \<none\>|awk '{print $3}'`;do sudo docker rmi $i;done
@marcellmars
marcellmars / InterviewWithDavidGarcia
Created February 27, 2014 01:47
Interview with David Garcia
***David Garcia**: This hacker obsession with creating a universal spaces of free exchange can have the unintended consequences of eroding the specificties of community. I see this as the rise of technological formalism akin to the Greenberg’s authoritarian cold-war formalism of late 20th century abstraction in the visual arts.*
**Marcel Mars:** I absolutely agree on that one. That’s why i insist on people being librarians. Software should always build on top of communication need, or need of particular community. That's how software becomes social. Designing sociality by designing desires by developing software is not the (social) way software should go. It just fails in both worlds (techno + social). Even if it gets some venture capital on its way.
***DG**: The independent publishing sector has been decimated and I think World Memory should be careful that its efforts is seen to be addressing rather than hastening this process.*
**MM**: I spent a lot of time in the past thinking about sustainable busines
@marcellmars
marcellmars / tarpipe
Created December 9, 2013 00:34
tarpipe
## recieve
netcat -l -p 7000 | tar x
## send
tar c dir/ | netcat host_ip 7000
@marcellmars
marcellmars / PublicLibrary_FairyTale.md
Created November 29, 2013 20:35
Public Library fairytale

slide 1:

http://i.imgur.com/FpCnyAo.png

there is a dream. dream of universal access to knowledge for every member of society. dreams rarely come true but this particular one: universal access to knowledge for every member of society got embodied into: public library!

before internet public library was struggling with the promise saying all of the knowledge and about is it really every member of society.

still people were keen to support the dream. in every country of the world. capitalis. socialist. communist. offshore. you name it.

internet. Internet as in many other instances, has overturned what we take as given and as possible. The dream of all people getting access to all knowledge suddenly came within our reach. It seemed just an issue of interpreting when the trajectory curves of global personal computer distribution and internet access penetration would finally make universal access to knowledge a reality. However, the actual trajectory of development of public libraries in the age of internet

@marcellmars
marcellmars / PublicLibrary_FairyTale.md
Created November 29, 2013 16:31
Public Library fairytale

slide 1:

http://i.imgur.com/FpCnyAo.png

there is a dream. dream of universal access to knowledge for every member of society. dreams rarely come true but this one got embodied: public library!

before internet it was struggling in proving that it can cover a lot of a knowledge. internet was that dream if you ever could imagine the future of public library.

but with internet the biggest disappointment came. public library is about to disappear. no access to digital books + economic crisis.

slide 2:

@marcellmars
marcellmars / PublicLibraryLocalSetup_no-docker.md
Created November 19, 2013 16:10
Public Library local setup (no docker).md

view this document here: https://stackedit.io/viewer#!provider=gist&gistId=7547779&filename=PublicLibraryLocalSetup_no-docker.md

[TOC]

Overview

SSH tunneling

Calibre plugin [let's share books] establishes SSH tunnel as a user tunnel with SSH server through port 722 without authorization.

That allows local [Calibre content server][1] to get proxied through SSH tunnel and Nginx so Calibre content server can get its own public URL (i.e. https://www3493.memoryoftheworld.org). Local Calibre library is then accessible from the world to which Nginx is exposed. In production setup that's memoryoftheworld.org, in development setup that's usually only developer's laptop.

@marcellmars
marcellmars / mongodb_queries
Created November 3, 2013 10:24
mongodb queries, updates, etc.
**filemongodb (letssharebooks collection)**
----------
[TOC]
### start mongodb in docker
sudo docker run -d librarian/mongodb --noprealloc --smallfiles
### get list of authors/titles sorted
authors_sorted= sorted(db.books.find().distinct('authors'))
titles_sorted = sorted(db.books.find().distinct('title_sort'))
@marcellmars
marcellmars / Otokultivator
Created October 21, 2013 00:03
Otokultivator
I arhitekti sanjaju. Pogotovo kad su mladi. Nikada prije i nikada poslije - Otokultivatora - nitko od nas tko je gradio i živio taj mali gradić nije to uspio ponoviti.
U ljeto 2000. mladi arhitekti Jakov Šrajer, _____ ____, ____ ___ tražili su mjesto na kojem bi se održao dvadeset drugi skup evropskih studenata arhitekture. Našli su ga na otoku Visu: bivšu vojarnu Samogor.
Od 1981. članovi EASA-e (European Architecture Students Assembly) svake godine (samo)organiziraju skup na nekom egzotičnom mjestu gdje dozvoljavaju da se spontanim procesima, često na licu mjesta, dogodi program zanimljiv svim sudionicima.
U ljeto 2001. održan je prvi Otokultivator u suradnji hrvatske EASA-e, URK-a i Multimedijalnog instituta - Mame. Starije lokalno stanovništvo pamti to kao do tada neviđeni izlazak raznolikih čudovišta iz Močvare. Trajekti su time izgubili svoj karakter bezazlenog transporta, a trogodišnje havarije još uvijek se lokalci sjećaju kao Močvare s Močvarcima.
U Samogoru, iza brda, u kotlini, sa vlastitom mik
@marcellmars
marcellmars / Public library
Last active December 23, 2015 18:49
Public library
**PUBLIC LIBRARY**
----------
<img src="http://i.imgur.com/XlLRZBN.png"width="320"/>
[TOC]
## <a id="infrastructure"></a>Public Library (as infrastructure) ##
### Context ###