Skip to content

Instantly share code, notes, and snippets.

View Mayeu's full-sized avatar
🌊
Ohaï 👋

Mayeu Mayeu

🌊
Ohaï 👋
View GitHub Profile
@Mayeu
Mayeu / backup-github.sh
Created February 9, 2023 17:33 — forked from tripu/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
# NOTE: if you have more than 100 repositories, you'll need to step thru the list of repos
# returned by GitHub one page at a time, as described at https://gist.github.com/darktim/5582423
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
@Mayeu
Mayeu / addpeers.sh
Created November 25, 2021 21:22 — forked from utdrmac/addpeers.sh
#!/bin/bash
#
# 20210119 - Use the new --endpoint flag
# - Added verbose logging
#
# 20200608 - Updated to TzKt API
#
# 20191029 - Added /v3/network back in.
# Thanks to Baking-Bad and their Mystique API
@Mayeu
Mayeu / tezos-baking-howto.md
Created September 18, 2021 20:21 — forked from dakk/tezos-baking-howto.md
tezos-baking-howto.md

Tezos baking howto

This howto is valid for Betanet on Ubuntu or Debian

Setup

Prereq

You have to install some dependencies. In debian / ubuntu run:

@Mayeu
Mayeu / darktable-workflow.md
Created May 19, 2021 21:35 — forked from eimajtrebor/darktable-workflow.md
My Darktable Workflow

My Darktable Workflow

Basic workflow

  • Copy a film roll (a directory of RAW images) into a directory on the machine running Darktable.
  • Import the film roll into Darktable.
  • Review the images using lighttable mode and remove any images that are beyond repair.
  • Take a snapshot of the image so we can do a before and after comparison.
  • Adjust the white balance.
  • Exposure compensation and recovery.
@Mayeu
Mayeu / appify
Created April 11, 2021 18:41 — forked from mathiasbynens/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
@Mayeu
Mayeu / README.md
Created June 24, 2020 19:32 — forked from jasonk/Jenkinsfile
Docker credential helper for authenticating from environment variables

docker-credential-env

This is a very basic Docker credential helper that uses environment variables to authenticate to Docker. It's not as secure as the other credential helpers that Docker provides, but it can be very helpful in some circumstances (such as when using it with Jenkins).

To set this up, install the docker-credentials-env script somewhere in the Jenkins users path (it needs to be named docker-credential-env), then configure the Jenkins user's ~/.docker/config.json file to use it:

@Mayeu
Mayeu / hardening_usbarmory.md
Created March 11, 2017 20:53 — forked from yann2192/hardening_usbarmory.md
Hardening USB Armory

Hardening the USB Armory

As a good crypto nerd, I usually use an entirely encrypted linux FS: / but also /boot using grub LUKS support. It's a good setup but it's not perfect, the BIOS and the bootloader are not protected.

I recently got a USBArmory and I wanted to apply the same (or a better) setup.

I found some useful links but no clear howto. So this is my setup.

@Mayeu
Mayeu / service-checklist.md
Created September 17, 2016 13:13 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@Mayeu
Mayeu / send-mail-to-omnifocus-and-archive.scpt
Created August 25, 2016 19:05 — forked from bradwright/send-mail-to-omnifocus-and-archive.scpt
Take current Mail.app message, send its subject and 'message:<>' URL to OmniFocus, and then Archive the email
-- Send currently selected Mail.app message to OmniFocus 2 quick entry box, then archive it
-- Archive behaviour found at: http://vemedio.com/blog/posts/my-archive-email-apple-script
tell application "Mail"
set theSelectedMessages to selection
set the selected_message to item 1 ¬
of the theSelectedMessages
set message_id to the message id of the selected_message
set my_subject to the subject of the selected_message
set message_url to "message://%3c" & message_id & "%3e"
@Mayeu
Mayeu / web-syndication-feeds-specs.md
Created June 20, 2016 16:29 — forked from vhf/web-syndication-feeds-specs.md
RSS and Atom specifications in a more readable format.
  • channel
    • title
      • GoUpstate.com News Headlines
    • link
    • description
      • The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site.
    • [language]