Skip to content

Instantly share code, notes, and snippets.

@gpakosz
Last active October 8, 2015 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gpakosz/3263831 to your computer and use it in GitHub Desktop.
Save gpakosz/3263831 to your computer and use it in GitHub Desktop.
lists nanoc based sites hosted on github
#!/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