Last active
October 8, 2015 02:28
-
-
Save gpakosz/3263831 to your computer and use it in GitHub Desktop.
lists nanoc based sites hosted on github
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'inifile' | |
require 'net/https' | |
require 'json' | |
local_repositories = [] | |
Dir['_all/**/.git/config'].each do |f| | |
config = IniFile.load(f) | |
url = config['remote "origin"']['url'] | |
local_repositories << (url.end_with?('.git') ? url : "#{url}.git") | |
end | |
github_repositories = [] | |
http = Net::HTTP.new('api.github.com', 443) | |
http.use_ssl = true | |
http.start do |http| | |
page = 0 | |
while true | |
response = JSON.parse(http.request_get("/legacy/repos/search/nanoc?start_page=#{page}").body) | |
if response['repositories'].length == 0 then | |
break | |
end | |
repositories = response['repositories'].select { |repository| !repository['fork'] } | |
unless repositories.nil? | |
github_repositories += repositories.collect { |repository| "https://github.com/#{repository['username']}/#{repository['name']}.git" } | |
end | |
page += 1 | |
end | |
end | |
ignored_repositories = [ | |
'https://github.com/ActiveState/cf-docs.git', | |
'https://github.com/ArashPartow/nanocalc.git', | |
'https://github.com/BinaryMuse/gwt-wizard.git', | |
'https://github.com/DerAndroid/NanoCMS.git', | |
'https://github.com/Ginny/NanoCMS.git', | |
'https://github.com/Neurogami/epub-ng.git', | |
'https://github.com/Pistos/dk-nanoc.git', | |
'https://github.com/Ramang1988/NanoCam.git', | |
'https://github.com/Ramangouda1988/NanoCam.git', | |
'https://github.com/RayFranco/sublime-text-2-nanoc.git', | |
'https://github.com/RubenVerborgh/HTML5small', | |
'https://github.com/RubenVerborgh/HTML5small.git', | |
'https://github.com/RubenVerborgh/nanoc-bibtex.git', | |
'https://github.com/Tmw/NanoCar.git', | |
'https://github.com/TwP/webby.git', | |
'https://github.com/ZorgeR/nanoConverter.git', | |
'https://github.com/aadlani/nanoc-toolbox.git', | |
'https://github.com/aaronrussell/mpower.git', | |
'https://github.com/abevoelker/blog-nanoc.git', | |
'https://github.com/agross/nanoc-cachebuster-and-bundler.git', | |
'https://github.com/alonsogarciapablo/site_search_nanoc_example.git', | |
'https://github.com/amparoc/nanocell.git', | |
'https://github.com/andrewdc/drop_ships.git', | |
'https://github.com/aquarion/NanoCountdown.com.git', | |
'https://github.com/aradi/nanocut.git', | |
'https://github.com/arcane86/NanoContainer.git', | |
'https://github.com/arnau/Nutils.git', | |
'https://github.com/avdgaag/laze.git', | |
'https://github.com/avdgaag/nanoc-cachebuster.git', | |
'https://github.com/benilovj/nanoc-tilt.git', | |
'https://github.com/benzado/mudpie.git', | |
'https://github.com/biyeun/biyeundotcom.git', | |
'https://github.com/bobthecow/heroku-buildpack-nanoc.git', | |
'https://github.com/bomberstudios/nanoc_extensions.git', | |
'https://github.com/bormand/nanochess.git', | |
'https://github.com/botanicus/ace.git', | |
'https://github.com/bouchard/nanoc_test.git', | |
'https://github.com/bpizzi/Hydrastic.git', | |
'https://github.com/brafales/nanocomp.git', | |
'https://github.com/brightbox/brightbox-nanoc-helpers.git', | |
'https://github.com/brunobord/nanoc-test.git', | |
'https://github.com/burnto/nanoc-html-pipeline.git', | |
'https://github.com/cboone/nanoc-enkoder.git', | |
'https://github.com/cboone/nanoc-escaped-erubis.git', | |
'https://github.com/cboone/nanoc-static-data-source.git', | |
'https://github.com/ceritium/nanoc_extensions_in_space.git', | |
'https://github.com/clausia/nanocentro.git', | |
'https://github.com/colinta/StrangeCase.git', | |
'https://github.com/cspicker/nanoc-git.git', | |
'https://github.com/cspickert/nanoc-git.git', | |
'https://github.com/danguita/danguita.github.com.git', | |
'https://github.com/darthzippy/SkyAsylum-nanoc.git', | |
'https://github.com/darthzippy/skyasylum-webpage-nanoc.git', | |
'https://github.com/davidB/plob.git', | |
'https://github.com/davidB/reabuilder.git', | |
'https://github.com/davidrichards/ram.git', | |
'https://github.com/ddfreyne/fast-aleck.git', | |
'https://github.com/ddfreyne/nanoc-activerecord-example.git', | |
'https://github.com/ddfreyne/nanoc-meta.git', | |
'https://github.com/nanoc/nanoc.git', | |
'https://github.com/nanoc/nep-tracker.git', | |
'https://github.com/nanoc/neps.git', | |
'https://github.com/nanoc/neps-site.git', | |
'https://github.com/diceratops/diceratops.github.com.git', | |
'https://github.com/dmke/pt11web.git', | |
'https://github.com/dragan/mulder.git', | |
'https://github.com/dumbhat/nanocurses.git', | |
'https://github.com/ecleveland5/Maryland-NanoCenter.git', | |
'https://github.com/emerfy/hakyll-homepage.git', | |
'https://github.com/empo/nanocgh-pages.git', | |
'https://github.com/ericgj/posterous2nanoc.git', | |
'https://github.com/freshbits/heroku-buildpack-nanoc.git', | |
'https://github.com/garethr/Dumper.git', | |
'https://github.com/gchebanov/nanoC.git', | |
'https://github.com/gruner/nanoc_helpers.git', | |
'https://github.com/guard/guard-nanoc.git', | |
'https://github.com/gw111zz/VeryBasicStaticWebsiteGenerator.git', | |
'https://github.com/harbulot/nanocmosdata.git', | |
'https://github.com/hipe/nandoc.git', | |
'https://github.com/ifesdjeen/munich-rug.git', | |
'https://github.com/jasonlarkin/nanocrystal.git', | |
'https://github.com/jgibbon/NanoClass.git', | |
'https://github.com/jingoro/nanoc-image-compressor.git', | |
'https://github.com/jingoro/nanoc-javascript-concatenator.git', | |
'https://github.com/jingoro/nanoc-sprockets.git', | |
'https://github.com/jirib/openbsd-mystuff.git', | |
'https://github.com/jkraemer/nanoc-sprockets2-skeleton.git', | |
'https://github.com/johnmgregoire/NanoCalorimetry.git', | |
'https://github.com/johnmorgan/JoMo-Nanocopter.git', | |
'https://github.com/jquery/learn.jquery.com.git', | |
'https://github.com/jxson/haiku.git', | |
'https://github.com/kalyan02/NanoCMS.git', | |
'https://github.com/kamui/nanoc-deploy.git', | |
'https://github.com/kamui/nanoc-fuel.git', | |
'https://github.com/keevee/nanocloud.git', | |
'https://github.com/kevincvlam/kevincvlam.github.com.git', | |
'https://github.com/mbbx6spp/heroku-buildpack-nanoc.git', | |
'https://github.com/mifo/nanoc-openshift.git', | |
'https://github.com/mikbe/blast.git', | |
'https://github.com/mitjafelicijan/NanoCloudLogger.git', | |
'https://github.com/mkrogh/NanoCal.git', | |
'https://github.com/montoyaedu/org.opensourcelabs.nanocontainer.git', | |
'https://github.com/nanoCMS/nanoCMS.git', | |
'https://github.com/nfisher/JunctionBox.ca.git', | |
'https://github.com/nullobject/nanoc-code-classifier.git', | |
'https://github.com/patrickward/willow.git', | |
'https://github.com/pdkl95/nanoc-sftp.git', | |
'https://github.com/pld-linux/nanoc.git', | |
'https://github.com/pld-linux/nanocom.git', | |
'https://github.com/plessl/nanoc-bibdesk.git', | |
'https://github.com/pmarkiewicz/nanocms.git', | |
'https://github.com/posativ/acrylamid.git', | |
'https://github.com/pragtich/pragtich-blog.git', | |
'https://github.com/raimohanska/nanoc-testing.git', | |
'https://github.com/rfc1459/kramdown-gist.git', | |
'https://github.com/ridgway54/TMB-Site.git', | |
'https://github.com/roccoma/nanoCortex4200.git', | |
'https://github.com/roktas/heroku-buildpack-static-ruby.git', | |
'https://github.com/rprill/my_first_project.git', | |
'https://github.com/scarwu/NanoCLI.git', | |
'https://github.com/semanticdreamer/nanoc-couchdb-datasource.git', | |
'https://github.com/sergejx/oxalis.git', | |
'https://github.com/sowcow/nanoc-oo.git', | |
'https://github.com/sowcow/pali-canon.git', | |
'https://github.com/spwhitt/s5g.git', | |
'https://github.com/stevegood/nanoconf.git', | |
'https://github.com/stormz/nanoc-plugins.git', | |
'https://github.com/svnpenn/svnpenn.github.com.git', | |
'https://github.com/theaboutbox/nanoc-video-filter.git', | |
'https://github.com/therabidbanana/GitGrove.git', | |
'https://github.com/therabidbanana/slinker.git', | |
'https://github.com/timgreen/vim-nanoc.git', | |
'https://github.com/tlevine/thomaslevine.com-nanoc.git', | |
'https://github.com/tlevine/www.thomaslevine.com-compiled.git', | |
'https://github.com/tohosaku/rack-relativize.git', | |
'https://github.com/viatropos/broadway.git', | |
'https://github.com/vieron/nanoc_pattern_primer.git', | |
'https://github.com/wansaleh/wansaleh.github.com.git', | |
'https://github.com/wezm/kyoto-client.git', | |
'https://github.com/wjlroe/lannister.git', | |
'https://github.com/wkoch/postrbit.git', | |
'https://github.com/yannlugrin/nanoc-filesystem-i18n.git', | |
'https://github.com/yannlugrin/nanoc-gzip-filter', | |
'https://github.com/yannlugrin/nanoc-sprockets-filter.git', | |
'https://github.com/yb66/Nanoc-stuff.git', | |
'https://github.com/ykanda/nanoc_lftp_deploy.git', | |
'https://github.com/yogsototh/WebsiteStarter.git', | |
'https://github.com/nathanaeljones/hardwired.git', | |
'https://github.com/elfion/NanoCAD.git', | |
'https://github.com/juliat/jekyll-juliat.com.git', | |
'https://github.com/helios-/ptweb2013.git', | |
'https://github.com/AlexanderEkdahl/dystatic.git', | |
'https://github.com/pragtich/pragtich-blog-jekyll.git', | |
'https://github.com/Winstons/middleman_blog.git', | |
'https://github.com/vschwaberow/nanoc-evernote-datasource.git', | |
'https://github.com/yannlugrin/nanoc-gzip-filter.git', | |
'https://github.com/coolaj86/blogger2jekyll.git', | |
'https://github.com/rmartell/NanoCommando.git', | |
'https://github.com/Winstons/jekyll_blog.git', | |
'https://github.com/sayanee/yeoman-oh-my-zsh.git', | |
'https://github.com/crystalize-it/nanoCu.be.git', | |
'https://github.com/akkyoh/nanocms.git', | |
'https://github.com/skx/static-site-generators.git', | |
'https://github.com/zeroed/RailsDojo.git', | |
'https://github.com/donmelton/magneto.git', | |
'https://github.com/nramya/version_analyzer.git', | |
'https://github.com/neilkelty/nanoc_tutorial.git', | |
'https://github.com/xajler/nanoc_blog.git', | |
'https://github.com/wbs75/nanoc_template.git', | |
'https://github.com/ewgenius/nanocollider.git', | |
'https://github.com/aloneindecember/tutorial.git', | |
'https://github.com/yogsototh/yblog.git', | |
'https://github.com/skyriser/ts8.git', | |
'https://github.com/infinitedesign/blank-slate.git', | |
'https://github.com/ViridianaVF/nanocentroipn.git', | |
'https://github.com/jokester/hamler.git', | |
'https://github.com/gpittarelli/nanoc-typescript.git', | |
'https://github.com/ewgenius/NanoCollisionsModeller.git', | |
'https://github.com/reed/turbolinks-compatibility.git', | |
'https://github.com/DaTrixo/NanoChat.git', | |
'https://github.com/nanoc/nanoc-activerecord-example.git', | |
'https://github.com/ultraflynn/shredded.git', | |
] | |
puts '-- new repositories ------------------------------------------------------------' | |
new_repositories = github_repositories - local_repositories - ignored_repositories | |
puts new_repositories.length | |
new_repositories.each { |repository| puts repository } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment