View README.md

Get latest GitHub release

These snippets can be used to retrieve the latest GitHub release from Linux, macOS and Windows. Note that other approaches involve either:

  • HTML scraping involving more dependencies or more complex code.
  • Using GitHub API, which has rate limit, so it is not suitable for all applications.

Replace the repository org/name with yours.

Bash

View gitbase_reference.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View reference_queries.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View k8s-jprofiler-attach.sh
#!/bin/bash
set -e
if [[ -z ${K8S_JVM_POD} ]]; then
echo "K8S_JVM_POD not defined"
exit 1
fi
EXEC="kubectl exec ${K8S_JVM_POD}"
CP="kubectl cp ${K8S_JVM_POD}"
View setup_winrm_with_vboxmanage.rb
# Copyright © 2017 Santiago M. Mola
# Licensed under the terms of the MIT License.
#
# This script is a proof-of-concept to enable WinRM
# on Windows 10 (vagrant box Microsoft/EdgeOnWindows10).
#
# It borrows from the instructions by André Albino Pereira
# at https://gist.github.com/andreptb/57e388df5e881937e62a
#
# This is not considered stable and, in fact, I'm moving
View git-find-roots
#!/bin/bash
#
# git-find-roots finds every commit with no parent (initial commits)
# and the commit where they were merged.
#
# Usage:
# git-find-roots [commit-ish]
#
# Example:
# git-find-roots master
View jira_adjust_time_tracking.py
#!/usr/bin/env python
# coding: utf-8
"""
Adjusts the time tracking for issues in a given JIRA project.
Requires 'jira' library:
$ pip install jira
JIRA credentials need to be stored in a file '.jira_auth.json'.
Its contents should be:
View star_all_the_repos.py
#!/usr/bin/python
#
# Stars all the repos for an organization.
#
import sys
import urllib2
import json
import os.path
View poswap.py
#!/usr/bin/env python
# poswap.py
#
# Copyright (C) 2013 Santiago M. Mola
# Released under the terms of the MIT License.
#
"""
Swaps the source and target language in a Gettext PO file.
Learn more at http://mola.io/2013/09/17/swapping-languages-in-gettext-po-file
View TPB.AFK.2013.720p.h264-SimonKlose.srt
1
00:00:01,000 --> 00:00:04,074
_
2
00:00:14,162 --> 00:00:20,796
En los primeros años del siglo 21,
The Pirate Bay creció para convertirse en el sitio
más grande de intercambio de ficheros.