Skip to content

Instantly share code, notes, and snippets.

@confused-Techie
Created September 13, 2022 05:29
Show Gist options
  • Save confused-Techie/8416799e0936dca5d446f3cf1b7e6886 to your computer and use it in GitHub Desktop.
Save confused-Techie/8416799e0936dca5d446f3cf1b7e6886 to your computer and use it in GitHub Desktop.
All Atom Packages with Wikis

The files you care about will be:

  • urlList.json
  • repoList.json

Within these files are links to every repo Atom owns, that within their config have "has_wiki": true

Now this doesn't mean that wiki has anything in it, but should still be checked.

const axios = require("axios");
const fs = require("fs");
const user_name = 'confused_techie';
const token = '[REDACTED]';
const gen_token = `${user_name}:${token}`;
const encodedToken = Buffer.from(gen_token).toString('base64');
let repoList = [];
let urlList = [];
async function run() {
// start the call to repos recursively
console.log('Starting...');
checkPage(1);
}
async function checkPage(num) {
let axiosConfig = {
method: 'get',
url: `https://api.github.com/orgs/atom/repos?page=${num}`,
headers: { 'Authorization': 'Basic ' + encodedToken }
};;
let res = await axios(axiosConfig);
console.log(`Page: ${num}; Axios: ${res.status} - ${res.statusText}`);
if (res.data.length == 0) {
await endTask();
}
for (let i = 0; i < res.data.length; i++) {
console.log(`Checking: ${res.data[i].name}`);
if (res.data[i].has_wiki) {
console.log(`Adding: ${res.data[i].name}`);
repoList.push(res.data[i].full_name);
urlList.push(res.data[i].html_url);
}
}
await delay(200);
let next = num + 1;
checkPage(next);
}
async function delay(ms) {
console.log("Patience is a virtue");
return await new Promise(resolve => setTimeout(resolve, ms));
}
async function endTask() {
console.log("Writing to disk");
fs.writeFileSync('repoList.json', JSON.stringify(repoList, null, 4));
fs.writeFileSync('urlList.json', JSON.stringify(urlList, null, 4));
process.exit(1);
}
// run the above
run();
{
"name": "list-orgs-wikis",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^0.27.2"
}
}
[
"atom/node-ctags",
"atom/git-utils",
"atom/node-plist",
"atom/node-spellchecker",
"atom/node-pathwatcher",
"atom/node-ls-archive",
"atom/apm",
"atom/jasmine-focused",
"atom/season",
"atom/node-nslog",
"atom/toggle-quotes",
"atom/base16-tomorrow-dark-theme",
"atom/first-mate",
"atom/archive-view",
"atom/autoflow",
"atom/image-view",
"atom/wrap-guide",
"atom/language-toml",
"atom/language-gfm",
"atom/git-diff",
"atom/go-to-line",
"atom/grammar-selector",
"atom/symbols-view",
"atom/markdown-preview",
"atom/link",
"atom/editor-stats",
"atom/bracket-matcher",
"atom/whitespace",
"atom/package-generator",
"atom/bookmarks",
"atom/tabs",
"atom/tree-view",
"atom/status-bar",
"atom/snippets",
"atom/command-palette",
"atom/fuzzy-finder",
"atom/settings-view",
"atom/open-on-github",
"atom/solarized-dark-syntax",
"atom/styleguide",
"atom/span-skip-list",
"atom/exception-reporting",
"atom/dev-live-reload",
"atom/atom-dark-ui",
"atom/atom-light-ui",
"atom/less-cache",
"atom/atom-light-syntax",
"atom/atom-dark-syntax",
"atom/jasmine-waits-for-callback",
"atom/scandal",
"atom/timecop",
"atom/mixto",
"atom/underscore-plus",
"atom/fuzzaldrin",
"atom/clear-cut",
"atom/language-c",
"atom/language-coffee-script",
"atom/language-css",
"atom/language-git",
"atom/language-go",
"atom/language-html",
"atom/language-hyperlink",
"atom/language-java",
"atom/language-javascript",
"atom/language-json",
"atom/language-less",
"atom/language-make",
"atom/language-mustache",
"atom/language-objective-c",
"atom/language-pegjs",
"atom/language-perl",
"atom/language-property-list",
"atom/language-puppet",
"atom/language-python",
"atom/language-ruby-on-rails",
"atom/language-ruby",
"atom/language-sass",
"atom/language-shellscript",
"atom/language-source",
"atom/language-sql",
"atom/language-text",
"atom/language-clojure",
"atom/language-todo",
"atom/language-xml",
"atom/language-yaml",
"atom/autosave",
"atom/delegato",
"atom/grunt-coffeelint",
"atom/fs-plus",
"atom/keybinding-resolver",
"atom/television",
"atom/welcome",
"atom/node-github-releases",
"atom/solarized-light-syntax",
"atom/revert-buffer",
"atom/background-tips",
"atom/sort-lines",
"atom/text-buffer",
"atom/serializable",
"atom/theorist",
"atom/deferred-require",
"atom/ascii-art",
"atom/update-package-dependencies",
"atom/require-snapshot",
"atom/legal-eagle",
"atom/task-lists-js",
"atom/roaster",
"atom/language-csharp",
"atom/autocomplete-plus",
"atom/template-syntax",
"atom/scrollbar-style",
"atom/loophole",
"atom/generator-atom-npm",
"atom/space-pencil",
"atom/atom-keymap",
"atom/highlights",
"atom/scoped-property-store",
"atom/reactionary",
"atom/autocomplete-snippets",
"atom/ci",
"atom/slick",
"atom/autocomplete-emojis",
"atom/react",
"atom/decoration-example",
"atom/api",
"atom/incompatible-packages",
"atom/atomdoc",
"atom/tello",
"atom/donna",
"atom/jasmine-json",
"atom/grunt-atomdoc",
"atom/event-kit",
"atom/keyboard-layout",
"atom/jsdiff",
"atom/text-transforms",
"atom/elmer",
"atom/encoding-selector",
"atom/one-dark-syntax",
"atom/one-light-syntax",
"atom/one-light-ui",
"atom/one-dark-ui",
"atom/atom-space-pen-views",
"atom/atom-selector-linter",
"atom/notifications",
"atom/atom-package-downloader",
"atom/space-pen-example-templates",
"atom/service-hub",
"atom/key-path-helpers",
"atom/cson-safe",
"atom/selector-kit",
"atom/husk-sample",
"atom/atom-text-editor-exercise",
"atom/coffee-cash",
"atom/autocomplete-css",
"atom/autocomplete-html",
"atom/autocomplete-atom-api",
"atom/dom-listener",
"atom/slackin",
"atom/gsoc-atom",
"atom/etch",
"atom/line-ending-selector",
"atom/atom.io",
"atom/language-examples",
"atom/cached-run-in-this-context",
"atom/github",
"atom/line-top-index",
"atom/pr-changelog",
"atom/line-length-index",
"atom/design-decisions",
"atom/ui",
"atom/joanna",
"atom/neon",
"atom/neon-cli",
"atom/atom-babel6-transpiler",
"atom/node",
"atom/electron-link",
"atom/atom-select-list",
"atom/project-ring",
"atom/tree-view-finder",
"atom/notebook",
"atom/tree-view-search-bar",
"atom/scroll-searcher",
"atom/atom-trello",
"atom/atom-bugs",
"atom/nuclide-debugger-test",
"atom/superstring",
"atom/dalek",
"atom/nsfw",
"atom/heroku-buildpack-multi",
"atom/etch-list-view",
"atom/atom-ternjs",
"atom/atom-languageclient",
"atom/ide-java",
"atom/ide-csharp",
"atom/electron-child-process-test",
"atom/ide-php",
"atom/active-editor-info",
"atom/atom-mocha-test-runner",
"atom/node-source-map-support",
"atom/teletype-crdt",
"atom/teletype-server",
"atom/teletype-client",
"atom/teletype",
"atom/avm",
"atom/ide-typescript",
"atom/watcher",
"atom/language-typescript",
"atom/ide-go",
"atom/spawn-as-admin",
"atom/ide-json",
"atom/fs-admin",
"atom/mistaken-pull-closer",
"atom/atom-theme",
"atom/atom-theme-temp",
"atom/language-rust",
"atom/node-temp",
"atom/dowsing-rod",
"atom/squeegpg-native",
"atom/squeegpg",
"atom/ripgrep",
"atom/telemetry",
"atom/eon",
"atom/jasmine-reporters",
"atom/atom-babel7-transpiler",
"atom/babel-plugin-chai-assert-async",
"atom/fuzzy-native",
"atom/whats-my-line",
"atom/atom-docker-ci",
"atom/node-tree-sitter",
"atom/tree-sitter"
]
[
"https://github.com/atom/node-ctags",
"https://github.com/atom/git-utils",
"https://github.com/atom/node-plist",
"https://github.com/atom/node-spellchecker",
"https://github.com/atom/node-pathwatcher",
"https://github.com/atom/node-ls-archive",
"https://github.com/atom/apm",
"https://github.com/atom/jasmine-focused",
"https://github.com/atom/season",
"https://github.com/atom/node-nslog",
"https://github.com/atom/toggle-quotes",
"https://github.com/atom/base16-tomorrow-dark-theme",
"https://github.com/atom/first-mate",
"https://github.com/atom/archive-view",
"https://github.com/atom/autoflow",
"https://github.com/atom/image-view",
"https://github.com/atom/wrap-guide",
"https://github.com/atom/language-toml",
"https://github.com/atom/language-gfm",
"https://github.com/atom/git-diff",
"https://github.com/atom/go-to-line",
"https://github.com/atom/grammar-selector",
"https://github.com/atom/symbols-view",
"https://github.com/atom/markdown-preview",
"https://github.com/atom/link",
"https://github.com/atom/editor-stats",
"https://github.com/atom/bracket-matcher",
"https://github.com/atom/whitespace",
"https://github.com/atom/package-generator",
"https://github.com/atom/bookmarks",
"https://github.com/atom/tabs",
"https://github.com/atom/tree-view",
"https://github.com/atom/status-bar",
"https://github.com/atom/snippets",
"https://github.com/atom/command-palette",
"https://github.com/atom/fuzzy-finder",
"https://github.com/atom/settings-view",
"https://github.com/atom/open-on-github",
"https://github.com/atom/solarized-dark-syntax",
"https://github.com/atom/styleguide",
"https://github.com/atom/span-skip-list",
"https://github.com/atom/exception-reporting",
"https://github.com/atom/dev-live-reload",
"https://github.com/atom/atom-dark-ui",
"https://github.com/atom/atom-light-ui",
"https://github.com/atom/less-cache",
"https://github.com/atom/atom-light-syntax",
"https://github.com/atom/atom-dark-syntax",
"https://github.com/atom/jasmine-waits-for-callback",
"https://github.com/atom/scandal",
"https://github.com/atom/timecop",
"https://github.com/atom/mixto",
"https://github.com/atom/underscore-plus",
"https://github.com/atom/fuzzaldrin",
"https://github.com/atom/clear-cut",
"https://github.com/atom/language-c",
"https://github.com/atom/language-coffee-script",
"https://github.com/atom/language-css",
"https://github.com/atom/language-git",
"https://github.com/atom/language-go",
"https://github.com/atom/language-html",
"https://github.com/atom/language-hyperlink",
"https://github.com/atom/language-java",
"https://github.com/atom/language-javascript",
"https://github.com/atom/language-json",
"https://github.com/atom/language-less",
"https://github.com/atom/language-make",
"https://github.com/atom/language-mustache",
"https://github.com/atom/language-objective-c",
"https://github.com/atom/language-pegjs",
"https://github.com/atom/language-perl",
"https://github.com/atom/language-property-list",
"https://github.com/atom/language-puppet",
"https://github.com/atom/language-python",
"https://github.com/atom/language-ruby-on-rails",
"https://github.com/atom/language-ruby",
"https://github.com/atom/language-sass",
"https://github.com/atom/language-shellscript",
"https://github.com/atom/language-source",
"https://github.com/atom/language-sql",
"https://github.com/atom/language-text",
"https://github.com/atom/language-clojure",
"https://github.com/atom/language-todo",
"https://github.com/atom/language-xml",
"https://github.com/atom/language-yaml",
"https://github.com/atom/autosave",
"https://github.com/atom/delegato",
"https://github.com/atom/grunt-coffeelint",
"https://github.com/atom/fs-plus",
"https://github.com/atom/keybinding-resolver",
"https://github.com/atom/television",
"https://github.com/atom/welcome",
"https://github.com/atom/node-github-releases",
"https://github.com/atom/solarized-light-syntax",
"https://github.com/atom/revert-buffer",
"https://github.com/atom/background-tips",
"https://github.com/atom/sort-lines",
"https://github.com/atom/text-buffer",
"https://github.com/atom/serializable",
"https://github.com/atom/theorist",
"https://github.com/atom/deferred-require",
"https://github.com/atom/ascii-art",
"https://github.com/atom/update-package-dependencies",
"https://github.com/atom/require-snapshot",
"https://github.com/atom/legal-eagle",
"https://github.com/atom/task-lists-js",
"https://github.com/atom/roaster",
"https://github.com/atom/language-csharp",
"https://github.com/atom/autocomplete-plus",
"https://github.com/atom/template-syntax",
"https://github.com/atom/scrollbar-style",
"https://github.com/atom/loophole",
"https://github.com/atom/generator-atom-npm",
"https://github.com/atom/space-pencil",
"https://github.com/atom/atom-keymap",
"https://github.com/atom/highlights",
"https://github.com/atom/scoped-property-store",
"https://github.com/atom/reactionary",
"https://github.com/atom/autocomplete-snippets",
"https://github.com/atom/ci",
"https://github.com/atom/slick",
"https://github.com/atom/autocomplete-emojis",
"https://github.com/atom/react",
"https://github.com/atom/decoration-example",
"https://github.com/atom/api",
"https://github.com/atom/incompatible-packages",
"https://github.com/atom/atomdoc",
"https://github.com/atom/tello",
"https://github.com/atom/donna",
"https://github.com/atom/jasmine-json",
"https://github.com/atom/grunt-atomdoc",
"https://github.com/atom/event-kit",
"https://github.com/atom/keyboard-layout",
"https://github.com/atom/jsdiff",
"https://github.com/atom/text-transforms",
"https://github.com/atom/elmer",
"https://github.com/atom/encoding-selector",
"https://github.com/atom/one-dark-syntax",
"https://github.com/atom/one-light-syntax",
"https://github.com/atom/one-light-ui",
"https://github.com/atom/one-dark-ui",
"https://github.com/atom/atom-space-pen-views",
"https://github.com/atom/atom-selector-linter",
"https://github.com/atom/notifications",
"https://github.com/atom/atom-package-downloader",
"https://github.com/atom/space-pen-example-templates",
"https://github.com/atom/service-hub",
"https://github.com/atom/key-path-helpers",
"https://github.com/atom/cson-safe",
"https://github.com/atom/selector-kit",
"https://github.com/atom/husk-sample",
"https://github.com/atom/atom-text-editor-exercise",
"https://github.com/atom/coffee-cash",
"https://github.com/atom/autocomplete-css",
"https://github.com/atom/autocomplete-html",
"https://github.com/atom/autocomplete-atom-api",
"https://github.com/atom/dom-listener",
"https://github.com/atom/slackin",
"https://github.com/atom/gsoc-atom",
"https://github.com/atom/etch",
"https://github.com/atom/line-ending-selector",
"https://github.com/atom/atom.io",
"https://github.com/atom/language-examples",
"https://github.com/atom/cached-run-in-this-context",
"https://github.com/atom/github",
"https://github.com/atom/line-top-index",
"https://github.com/atom/pr-changelog",
"https://github.com/atom/line-length-index",
"https://github.com/atom/design-decisions",
"https://github.com/atom/ui",
"https://github.com/atom/joanna",
"https://github.com/atom/neon",
"https://github.com/atom/neon-cli",
"https://github.com/atom/atom-babel6-transpiler",
"https://github.com/atom/node",
"https://github.com/atom/electron-link",
"https://github.com/atom/atom-select-list",
"https://github.com/atom/project-ring",
"https://github.com/atom/tree-view-finder",
"https://github.com/atom/notebook",
"https://github.com/atom/tree-view-search-bar",
"https://github.com/atom/scroll-searcher",
"https://github.com/atom/atom-trello",
"https://github.com/atom/atom-bugs",
"https://github.com/atom/nuclide-debugger-test",
"https://github.com/atom/superstring",
"https://github.com/atom/dalek",
"https://github.com/atom/nsfw",
"https://github.com/atom/heroku-buildpack-multi",
"https://github.com/atom/etch-list-view",
"https://github.com/atom/atom-ternjs",
"https://github.com/atom/atom-languageclient",
"https://github.com/atom/ide-java",
"https://github.com/atom/ide-csharp",
"https://github.com/atom/electron-child-process-test",
"https://github.com/atom/ide-php",
"https://github.com/atom/active-editor-info",
"https://github.com/atom/atom-mocha-test-runner",
"https://github.com/atom/node-source-map-support",
"https://github.com/atom/teletype-crdt",
"https://github.com/atom/teletype-server",
"https://github.com/atom/teletype-client",
"https://github.com/atom/teletype",
"https://github.com/atom/avm",
"https://github.com/atom/ide-typescript",
"https://github.com/atom/watcher",
"https://github.com/atom/language-typescript",
"https://github.com/atom/ide-go",
"https://github.com/atom/spawn-as-admin",
"https://github.com/atom/ide-json",
"https://github.com/atom/fs-admin",
"https://github.com/atom/mistaken-pull-closer",
"https://github.com/atom/atom-theme",
"https://github.com/atom/atom-theme-temp",
"https://github.com/atom/language-rust",
"https://github.com/atom/node-temp",
"https://github.com/atom/dowsing-rod",
"https://github.com/atom/squeegpg-native",
"https://github.com/atom/squeegpg",
"https://github.com/atom/ripgrep",
"https://github.com/atom/telemetry",
"https://github.com/atom/eon",
"https://github.com/atom/jasmine-reporters",
"https://github.com/atom/atom-babel7-transpiler",
"https://github.com/atom/babel-plugin-chai-assert-async",
"https://github.com/atom/fuzzy-native",
"https://github.com/atom/whats-my-line",
"https://github.com/atom/atom-docker-ci",
"https://github.com/atom/node-tree-sitter",
"https://github.com/atom/tree-sitter"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment