Skip to content

Instantly share code, notes, and snippets.

Bruce-v2.0.20 game on

Bruce Becker brucellino

Bruce-v2.0.20 game on
View GitHub Profile
seignovert /
Last active Feb 21, 2019
[Zenodo] Add ORCID badge

Add ORCID badge to Zenodo publication

No longer required since Oct-2017. Now ORCID can be added directly under the Authors section of the metadata on the deposit web interface.

Create your personal access token

In order to access the API you need to create a personal token. To do that you need to:

  1. Go to Home > Account > Applications and + New token in the Personal access tokens section.
  2. Provide a name for the token to find it later
ryansch / tar.rb
Created Jun 16, 2016
Create/Extract a tarball from ruby
View tar.rb
require 'find'
require 'archive/tar/minitar'
module IdiomaticTar
def create_tarball(filename:, directory:)
base_dir = do'wb') do |tarball|
Zlib::GzipWriter.wrap(tarball) do |gz| do |tar|
lukas-h /
Last active Aug 7, 2020
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.


  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  

Translations: (No guarantee that the translations are up-to-date)

arfon / generate
Last active Feb 20, 2020
Let's try and generate some codemeta files.
View generate
# For an OO language, this is distinctly procedural. Should probably fix that.
require 'json'
details ={})
capture_params = [
{ :name => "title", :message => "Enter project name." },
{ :name => "url", :message => "Enter the URL of the project repository." },
View install_java_from_source.txt
Download java from this link:
Alternatively , wget as below:
wget --no-check-certificate --no-cookies - --header "Cookie: oraclelicense=accept-securebackup-cookie"
sudo mv jdk-7u51-linux-x64.tar.gz /usr/lib/jvm [create if /usr/lib/jvm not present, can be put in /usr/local also.]
sudo tar zxvf jdk-7u51-linux-x64.tar.gz
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_51/bin/javac 1
dnozay /
Last active Aug 5, 2020
jenkins groovy scripts collection.
jorgemanrubia / discourse_users_merger.rb
Last active Dec 25, 2018
Script for merging existing discourse users
View discourse_users_merger.rb
module DiscourseUsersMerger
class Merger
def merge(target_username, source_username)
raise "User to merge and target user can't be the same" if target_username == source_username
target_user = User.find_by_username!(target_username)
source_user = User.find_by_username!(source_username)
puts "About to merge #{source_username} (#{}) into #{target_username} (#{})"
puts "#{source_user.topics.count} topics with #{source_user.posts.count} posts will be moved. Ok to continue? (y/n)"
continue = STDIN.gets.chomp.downcase == 'y'
View pagerduty_ruby_httparty.rb
require 'pp'
require 'httparty'
class PagerDuty
include HTTParty
format :json
def initialize(subdomain, api_token)
@options = {
:headers => {
"Authorization" => "Token token=#{api_token}",
<VirtualHost *:80>
## Vhost docroot
DocumentRoot /var/www/html
## Alias declarations for resources outside the DocumentRoot
Alias /opt/ams /srv/cvmfs2/ams/pub/catalogs
Alias /cvmfs/ /srv/cvmfs2/ams/pub/catalogs
Alias /opt/atlas /srv/cvmfs2/atlas/pub/catalogs
Alias /opt/atlas-condb /srv/cvmfs/atlas-condb/pub/catalogs
jwalton / Github Milestone Dashing
Last active Jul 30, 2020
Dashing Widget to Display Next Git Milestone
View Github Milestone Dashing

This will show your next GitHub milestone as a Dashing widget. Built on top of the Text widget.

To use:

  • Add the following to your gemfile:

  •   gem 'rest-client'
  • Replace the git_token, git_owner, and git_project in git-milestone.rb as appropriate.

You can’t perform that action at this time.