Skip to content

Instantly share code, notes, and snippets.

View mlbright's full-sized avatar

Martin-Louis Bright mlbright

  • Toronto
  • 06:46 (UTC -05:00)
View GitHub Profile
@huytd
huytd / wordle.md
Last active December 17, 2024 13:06
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@alphamarket
alphamarket / http-proxy.conf.md
Last active January 14, 2025 04:25
How to make docker pull using a socks5 proxy

Create the config file:

mkdir -p /etc/systemd/system/docker.service.d && \
vi /etc/systemd/system/docker.service.d/http-proxy.conf

Put up the configs:

package main
import (
"context"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"os"
@0187773933
0187773933 / GolangSSHTunnelForwardAndReverse.go
Last active January 17, 2025 06:43
Golang SSH Forward and Reverse Tunnel
package main
import (
"context"
"fmt"
"os"
"os/signal"
"path"
"sync"
"syscall"
@roaldnefs
roaldnefs / openapi.yaml
Last active June 10, 2024 21:14
OpenApi specification for xkcd
openapi: 3.0.0
info:
version: 1.0.0
title: xkcd
description: 'A webcomic of romance, sarcasm, math, and language.'
servers:
- url: https://xkcd.com/
description: Official xkcd JSON interface
@br3ndonland
br3ndonland / github-actions-notes.md
Last active February 12, 2025 05:53
Getting the Gist of GitHub Actions
@pscott-au
pscott-au / osx_elcapitan_fix.md
Created October 22, 2018 17:53 — forked from lifofernandez/osx_elcapitan_fix.md
CPAN fix "Do not have write permissions on '/usr/bin'" OSX El Capitan problem

CPAN log

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/bin'
Do not have write permissions on '/usr/bin'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Solution: http://www.perlmonks.org/?node_id=1144321

Aperently in this OSX version, applications can not whrite on /usr with temporary sudoer rights.

@cheshir
cheshir / locks_test.go
Last active July 23, 2021 14:19
Handmade mutex in go
package main
import (
"sync"
"testing"
)
func BenchmarkLock(b *testing.B) {
var mu Lock
@jbjonesjr
jbjonesjr / getting-going-best-practices.md
Created May 2, 2018 19:57
Getting Going and Best Practices Guide

GitHub Onboarding and Introduction

A guide for getting started and best practices for teams new to, or improving their interactions with, GitHub

image GitHub's features and capabilities

This document is meant to help new teams to GitHub familiarize themselves with the features and platform, as well as start to explore some of the best practices. While not a complete exploration, it's meant as a introduction to the key tenets of using GitHub for your business. For teams and organizations that desire more one on one support, GitHub Professional Services has many different options available to customize tools, training, and process to best meet your needs. The GitHub offerings listed in the diagram above are just a sampling of the various capabilities and we'd love to create a customized offering to meet your specific organizational needs.

Overview and Intr

@larsxschneider
larsxschneider / readme.md
Last active October 10, 2024 16:49
Bookmarklet - Close all files in PR

Installation

Make a new bookmark in your browser. Set the name to Close all PR files (or something else you like) and set the URL to:

javascript:void((function(d){d.querySelectorAll('div:not(.Details--on) > div.file-header > div.file-actions > button').forEach(function(x){x.click()});})(document));

Usage