Skip to content

Instantly share code, notes, and snippets.

@BobbyMcWho
BobbyMcWho / somewhere_in_update_script.rb
Last active April 8, 2021 18:08
Some code to create `Dependabot::SecurityAdvisory`s for use in dependabot-core scripts
# See: https://github.com/dependabot/dependabot-script/blob/master/update-script.rb
# Other update script logic
vulnerabilities = VulnerabilityFetcher.new(dependency_names, package_manager).fetch_advisories
# Note you may not just want top level depending on your use case
dependencies.select(&:top_level?).each do |dep|
security_vulnerabilities = []
if vulnerabilities.any?
security_vulnerabilities = vulnerabilities[dep.name.to_sym].map do |vuln|
@MichaelCurrin
MichaelCurrin / README.md
Last active March 5, 2024 22:06
GitHub GraphQL - Get files in a repository

Get GitHub Files

Get the metadata and content of all files in a given GitHub repo using the GraphQL API

You might want to get a tree summary of files in a repo without downloading the repo, or maybe you want to lookup the contents of a file again without download the whole repo.

The approach here is to query data from GitHub using the Github V4 GraphQL API.

About the query

@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active May 9, 2024 13:54
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\