[{"data":1,"prerenderedAt":432},["ShallowReactive",2],{"i-lucide:menu":3,"i-lucide:arrow-up-right":8,"i-lucide:moon":10,"i-lucide:sun":12,"i-lucide:rss":14,"i-simple-icons:github":16,"i-simple-icons:linkedin":18,"post-\u002F2011\u002Fin-the-footsteps-of-facematch-com":21,"surround-\u002F2011\u002Fin-the-footsteps-of-facematch-com":94,"i-lucide:arrow-left":103,"i-lucide:arrow-right":105,"gist-2656998":107},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":7},0,24,false,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":9},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M7 7h10v10M7 17L17 7\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":11},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":13},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"4\"\u002F>\u003Cpath d=\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":15},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M4 11a9 9 0 0 1 9 9M4 4a16 16 0 0 1 16 16\"\u002F>\u003Ccircle cx=\"5\" cy=\"19\" r=\"1\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":17},"\u003Cpath fill=\"currentColor\" d=\"M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":19,"hidden":20},"\u003Cpath fill=\"currentColor\" d=\"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037c-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85c3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.06 2.06 0 0 1-2.063-2.065a2.064 2.064 0 1 1 2.063 2.065m1.782 13.019H3.555V9h3.564zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0z\"\u002F>",true,{"id":22,"title":23,"body":24,"category":75,"comments":76,"date":77,"description":30,"excerpt":76,"extension":78,"image":76,"meta":79,"navigation":20,"path":80,"readingTime":81,"seo":82,"stem":83,"subtitle":76,"tags":84,"wordCount":92,"__hash__":93},"posts\u002F2011\u002Fin-the-footsteps-of-facematch-com.md","In the footsteps of facematch.com",{"type":25,"value":26,"toc":71},"minimark",[27,31,42,61,64,68],[28,29,30],"p",{},"I get these crazy ideas sometimes...",[28,32,33,34,41],{},"I was impressed by the scene in ",[35,36,40],"a",{"href":37,"rel":38},"http:\u002F\u002Fwww.imdb.com\u002Ftitle\u002Ftt1285016",[39],"nofollow","The Social Network"," where Mr. Zuckerberg wrote a small program to download hundreds of (girl) pictures to make a site called facematch.com. I knew three things allready:",[43,44,45,55,58],"ol",{},[46,47,48,49,54],"li",{},"I had seen ",[35,50,53],{"href":51,"rel":52},"http:\u002F\u002Fwiki.itcollege.ee\u002Findex.php\u002FITK_m%C3%A4rguandja",[39],"a simple shell script to login to a webpage"," that I knew I could easily modify even through I had almost 0 experience with it.",[46,56,57],{},"I knew our college website made the pictures readily available to logged in users",[46,59,60],{},"I had about an hours worth of free time tonight.",[28,62,63],{},"An hour later I had this script and a folder with about 500 thumbnails.",[65,66],"gist",{"id":67},"2656998",[28,69,70],{},"I didn't bother with any fancy config options or downloading every picture, this was ment as a proof of consept. Now all I need to do is write some PHP to make my very own facematch.com! (Naah, I've got better things to do.)",{"title":72,"searchDepth":73,"depth":73,"links":74},"",2,[],"Projects",null,"2011-01-04","md",{},"\u002F2011\u002Fin-the-footsteps-of-facematch-com","less than 1 minute",{"title":23,"description":30},"2011\u002Fin-the-footsteps-of-facematch-com",[85,86,87,88,89,90,91],"ITK","facematch","Mark Zuckerberg","ois","Shell script","Social Network","User agent",154,"XLYFpQ0cfDUESf2w0nfoLk2AHr34UZDzKFUmu9IjNAE",[95,99],{"title":96,"path":97,"stem":98,"children":-1},"Can you ask any more (frackin') questions...?!?!","\u002F2010\u002Fcan-you-ask-any-more-frackin-questions","2010\u002Fcan-you-ask-any-more-frackin-questions",{"title":100,"path":101,"stem":102,"children":-1},"Translating text into Pig Latin with Java","\u002F2011\u002Ftranslating-text-into-pig-latin-with-java","2011\u002Ftranslating-text-into-pig-latin-with-java",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":104},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m12 19l-7-7l7-7m7 7H5\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":106},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 12h14m-7-7l7 7l-7 7\"\u002F>",{"id":108,"title":109,"body":110,"createdAt":423,"description":72,"extension":78,"files":424,"gistId":67,"meta":425,"navigation":20,"owner":426,"path":427,"seo":428,"stem":429,"url":430,"__hash__":431},"gists\u002Fgists\u002F2656998.md","Download ITK student images",{"type":25,"value":111,"toc":421},[112,417],[113,114,119],"pre",{"className":115,"code":116,"filename":117,"language":118,"meta":72,"style":72},"language-bash shiki shiki-themes github-light github-dark","#!\u002Fbin\u002Fbash\nkasutajanimi=foobar # User\nsalasona=foobar # Pass\nkaust=\"itk-pic\" # Folder name\nmin_pic_id=\"440\" # Min pic ID\nmax_pic_id=\"1000\" # Max pic ID\n\nwget --user-agent \"ITK Notifier\" --no-check-certificate --keep-session-cookies --save-cookies cookies.txt\n--post-data=\"username=$kasutajanimi&pw=$salasona&Login=Logi sisse\" https:\u002F\u002Fitcollege.ois.ee\u002Fauth\u002Flogin -O login\nfor i in `seq $min_pic_id $max_pic_id`;\ndo\n    file=\"$kaust\u002F$i.jpg\"\n    echo \"Download $file\"\n    echo \"\"\n    wget --user-agent \"ITK Notifier\" --no-check-certificate\n    --load-cookies cookies.txt \"https:\u002F\u002Fitcollege.ois.ee\u002Fet\u002Ffile\u002Fuser-picture?user_id=$i\" -O $file\ndone\n\nrm -f login cookies.txt\necho \"All done!\"\n","itk-downloader.sh","bash",[120,121,122,131,148,161,175,189,203,209,235,267,297,303,326,341,349,362,383,389,394,408],"code",{"__ignoreMap":72},[123,124,127],"span",{"class":125,"line":126},"line",1,[123,128,130],{"class":129},"sJ8bj","#!\u002Fbin\u002Fbash\n",[123,132,133,137,141,145],{"class":125,"line":73},[123,134,136],{"class":135},"sVt8B","kasutajanimi",[123,138,140],{"class":139},"szBVR","=",[123,142,144],{"class":143},"sZZnC","foobar",[123,146,147],{"class":129}," # User\n",[123,149,151,154,156,158],{"class":125,"line":150},3,[123,152,153],{"class":135},"salasona",[123,155,140],{"class":139},[123,157,144],{"class":143},[123,159,160],{"class":129}," # Pass\n",[123,162,164,167,169,172],{"class":125,"line":163},4,[123,165,166],{"class":135},"kaust",[123,168,140],{"class":139},[123,170,171],{"class":143},"\"itk-pic\"",[123,173,174],{"class":129}," # Folder name\n",[123,176,178,181,183,186],{"class":125,"line":177},5,[123,179,180],{"class":135},"min_pic_id",[123,182,140],{"class":139},[123,184,185],{"class":143},"\"440\"",[123,187,188],{"class":129}," # Min pic ID\n",[123,190,192,195,197,200],{"class":125,"line":191},6,[123,193,194],{"class":135},"max_pic_id",[123,196,140],{"class":139},[123,198,199],{"class":143},"\"1000\"",[123,201,202],{"class":129}," # Max pic ID\n",[123,204,206],{"class":125,"line":205},7,[123,207,208],{"emptyLinePlaceholder":20},"\n",[123,210,212,216,220,223,226,229,232],{"class":125,"line":211},8,[123,213,215],{"class":214},"sScJk","wget",[123,217,219],{"class":218},"sj4cs"," --user-agent",[123,221,222],{"class":143}," \"ITK Notifier\"",[123,224,225],{"class":218}," --no-check-certificate",[123,227,228],{"class":218}," --keep-session-cookies",[123,230,231],{"class":218}," --save-cookies",[123,233,234],{"class":143}," cookies.txt\n",[123,236,238,241,243,246,249,252,255,258,261,264],{"class":125,"line":237},9,[123,239,240],{"class":135},"--post-data",[123,242,140],{"class":139},[123,244,245],{"class":143},"\"username=",[123,247,248],{"class":135},"$kasutajanimi",[123,250,251],{"class":143},"&pw=",[123,253,254],{"class":135},"$salasona",[123,256,257],{"class":143},"&Login=Logi sisse\"",[123,259,260],{"class":214}," https:\u002F\u002Fitcollege.ois.ee\u002Fauth\u002Flogin",[123,262,263],{"class":218}," -O",[123,265,266],{"class":143}," login\n",[123,268,270,273,276,279,282,285,288,291,294],{"class":125,"line":269},10,[123,271,272],{"class":139},"for",[123,274,275],{"class":135}," i ",[123,277,278],{"class":139},"in",[123,280,281],{"class":143}," `",[123,283,284],{"class":214},"seq",[123,286,287],{"class":135}," $min_pic_id",[123,289,290],{"class":135}," $max_pic_id",[123,292,293],{"class":143},"`",[123,295,296],{"class":135},";\n",[123,298,300],{"class":125,"line":299},11,[123,301,302],{"class":139},"do\n",[123,304,306,309,311,314,317,320,323],{"class":125,"line":305},12,[123,307,308],{"class":135},"    file",[123,310,140],{"class":139},[123,312,313],{"class":143},"\"",[123,315,316],{"class":135},"$kaust",[123,318,319],{"class":143},"\u002F",[123,321,322],{"class":135},"$i",[123,324,325],{"class":143},".jpg\"\n",[123,327,329,332,335,338],{"class":125,"line":328},13,[123,330,331],{"class":218},"    echo",[123,333,334],{"class":143}," \"Download ",[123,336,337],{"class":135},"$file",[123,339,340],{"class":143},"\"\n",[123,342,344,346],{"class":125,"line":343},14,[123,345,331],{"class":218},[123,347,348],{"class":143}," \"\"\n",[123,350,352,355,357,359],{"class":125,"line":351},15,[123,353,354],{"class":214},"    wget",[123,356,219],{"class":218},[123,358,222],{"class":143},[123,360,361],{"class":218}," --no-check-certificate\n",[123,363,365,368,371,374,376,378,380],{"class":125,"line":364},16,[123,366,367],{"class":214},"    --load-cookies",[123,369,370],{"class":143}," cookies.txt",[123,372,373],{"class":143}," \"https:\u002F\u002Fitcollege.ois.ee\u002Fet\u002Ffile\u002Fuser-picture?user_id=",[123,375,322],{"class":135},[123,377,313],{"class":143},[123,379,263],{"class":218},[123,381,382],{"class":135}," $file\n",[123,384,386],{"class":125,"line":385},17,[123,387,388],{"class":139},"done\n",[123,390,392],{"class":125,"line":391},18,[123,393,208],{"emptyLinePlaceholder":20},[123,395,397,400,403,406],{"class":125,"line":396},19,[123,398,399],{"class":214},"rm",[123,401,402],{"class":218}," -f",[123,404,405],{"class":143}," login",[123,407,234],{"class":143},[123,409,411,414],{"class":125,"line":410},20,[123,412,413],{"class":218},"echo",[123,415,416],{"class":143}," \"All done!\"\n",[418,419,420],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":72,"searchDepth":73,"depth":73,"links":422},[],"2012-05-11T01:49:24Z",[117],{},"anroots","\u002Fgists\u002F2656998",{"title":109,"description":72},"gists\u002F2656998","https:\u002F\u002Fgist.github.com\u002Fanroots\u002F2656998","6v2s6m-MPxENypRn6iSc_ertzvy-Qe1Kdj6PjheK-qw",1790886933804]