Skip to content

Instantly share code, notes, and snippets.

View mlbright's full-sized avatar

Martin-Louis Bright mlbright

  • Toronto
  • 22:35 (UTC -04:00)
View GitHub Profile
@huytd
huytd / wordle.md
Last active May 2, 2024 12:13
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

package main
import (
"context"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"os"
@0187773933
0187773933 / GolangSSHTunnelForwardAndReverse.go
Last active March 30, 2024 09:21
Golang SSH Forward and Reverse Tunnel
package main
import (
"context"
"fmt"
"os"
"os/signal"
"path"
"sync"
"syscall"
@roaldnefs
roaldnefs / openapi.yaml
Last active August 22, 2022 08:26
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 May 5, 2024 07:39
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 March 24, 2020 19:14
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

@widdowquinn
widdowquinn / kali_osx_persistence_wifi.md
Last active January 28, 2024 06:32
Kali Linux Live USB with persistence and wireless on Macbook Pro

Kali Linux Bootable USB with Persistence and Wireless on OSX

Download the appropriate Kali Linux .iso

I used a 64 bit .iso image, downloaded via HTTP. I downloaded the amd64 weekly version, as the pool linux headers (needed below for installation of wireless drivers) were ahead of the stable release kernel.

Download the SHA256SUMS and SHA256SUMS.gpg files from the same location.