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
Last active December 1, 2022 22:35
Swarm Mastery Using Terraform - Assignement 1

Swarm Mastery Using Terraform - Assignement 1

Edit the providers section in the main.tf file to correctly connect to your Swarm

Then run me with:

$ terraform init
$ terraform plan
$ terraform apply
@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:

"use strict";
var hyperdb = require("hyperdb");
var db = hyperdb("./historyStream.db", { valueEncoding: "utf-8" });
function watchFeed() {
var stream = db.createHistoryStream({ live: true });
stream.on("data", console.log);
stream.on("end", console.log);
stream.on("finish", console.log);
@Mayeu
Mayeu / example.js
Last active July 13, 2017 16:39
Remark fix new lines for GitLab
const fixNewLine = require('./index.js')
const remark = require('remark')
text = "lol\nlol\n```\nlol\nlol\n```\n> lol\n> lol"
processed = remark()
.use(fixNewLine)
.processSync(text)
console.log(processed)
@Mayeu
Mayeu / keybase.md
Created March 22, 2017 17:01
Keybase verification

Keybase proof

I hereby claim:

  • I am mayeu on github.
  • I am mayeu (https://keybase.io/mayeu) on keybase.
  • I have a public key ASB-IMXKlhlvfVlRpHLQDLgHWRegd2zvUwOuJpkTk4duLgo

To claim this, I am signing this object: