Skip to content

Instantly share code, notes, and snippets.

View rossmacarthur's full-sized avatar
🦀

Ross MacArthur rossmacarthur

🦀
  • Cape Town, South Africa, Earth, Milky Way
  • 13:17 (UTC +02:00)
View GitHub Profile
@rossmacarthur
rossmacarthur / github-labels-import.js
Last active November 29, 2023 09:13 — forked from jamesperrin/github-labels-import.js
JavaScript file for importing GitHub labels from a JSON object.
/**
* 1. Update the labels JSON object.
* 2. Open web browsers
* 3. Navigate to desired GitHub repository.
* 4. Navigate to Issues tab.
* 5. Navigate to Labels link.
* 6. Open web browswer Developer Tools
* 7. Navigate to the Console window.
* 8. Copy and Paste the below code snippets into the Console window.
*/
@rossmacarthur
rossmacarthur / index.js
Last active January 31, 2019 07:46 — forked from MoOx/index.js
Export/import github labels
// go on you labels pages
// eg https://github.com/cssnext/cssnext/labels
// paste this script in your console
// copy the output and now you can import it using https://github.com/popomore/github-labels !
var labels = [];
[].slice.call(document.querySelectorAll(".label-link"))
.forEach(function(element) {
labels.push({
name: element.textContent.trim(),
@rossmacarthur
rossmacarthur / docker-destroy-all.sh
Last active September 6, 2018 15:08 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
#!/usr/bin/env bash
containers=$(docker ps -a -q)
# Stop all containers
if [ ! -n "$containers" ]; then
docker stop $containers
docker rm $containers
fi