Skip to content

Instantly share code, notes, and snippets.

@developius
developius / GitHub-stats.js
Created March 23, 2015 22:10
jQuery functions to get data about a GitHub repository
jQuery.githubUser = function(username, callback) {
jQuery.getJSON('https://api.github.com/users/'+username+'/repos?callback=?',callback)
}
jQuery.githubRepoContributors = function(username, repo, callback) {
jQuery.getJSON('https://api.github.com/repos/'+username+'/'+repo+'/contributors'+'?callback=?',callback)
}
jQuery.githubOrgMembers = function(org,callback){
jQuery.getJSON('https://api.github.com/orgs/' + org + '/public_members?callback=?',callback)
@cenkalti
cenkalti / jenkins-home-git.sh
Last active September 8, 2023 17:19
Backup Jenkins home periodicallly with git.
#!/bin/bash
# Setup
#
# - Create a new Jenkins Job
# - Mark "None" for Source Control Management
# - Select the "Build Periodically" build trigger
# - configure to run as frequently as you like
# - Add a new "Execute Shell" build step
# - Paste the contents of this file as the command