
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
jekyll_github_sample
Advanced tools
Two Jekyll Liquid tags to display a code sample from a file in a public Github repo and provide a reference to it.
Gemfile
gem 'jekyll_github_sample'
bundle
to install the gem_config.yml
gems: [jekyll_github_sample]
A write up on my Jekyll blog including samples referencing this repo's code, meta.
{% github_sample URL_WITH_USERNAME_REPO_AND_FILE <START_LINE_NUMBER> <END_LINE_NUMBER> %}
bwillis/jekyll-github-sample/blob/a3bc9e82412d364aa76e9308ab53ff2bddaa2faf/README.md
One can also specify the lines to include based on markings in the file itself. This is done by invoking
{% github_sample URL_WITH_USERNAME_REPO_AND_FILE tag:TAG_NAME %}
and placing the strings [START TAG_NAME]
and [END TAG_NAME]
anywhere in the lines immediately before and after the content you wish to include.
{% github_sample_ref URL_WITH_USERNAME_REPO_AND_FILE %}
bwillis/jekyll-github-sample/blob/a3bc9e82412d364aa76e9308ab53ff2bddaa2faf/README.md
This is how you would display, reference and highlight code in your Jekyll post.
{% github_sample_ref /bwillis/versioncake/989237901cb873f96df12be48cbf1239be496bd7/Appraisals %}
{% highlight ruby %}
{% github_sample /bwillis/versioncake/989237901cb873f96df12be48cbf1239be496bd7/Appraisals 0 5 %}
{% endhighlight %}
Thanks to all those who have helped make this really awesome:
Jekyll Github Sample is released under the MIT license: www.opensource.org/licenses/MIT
FAQs
Unknown package
We found that jekyll_github_sample demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.