Skip to content

Instantly share code, notes, and snippets.

View shaniber's full-sized avatar
🌮

shane doucette (he/him) shaniber

🌮
View GitHub Profile
@shaniber
shaniber / wordle.md
Created February 2, 2022 15:26 — forked from huytd/wordle.md
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

Keybase proof

I hereby claim:

  • I am shaniber on github.
  • I am shaniber (https://keybase.io/shaniber) on keybase.
  • I have a public key ASAQhWyUxhITjjD9eMGR4iS2bgqC-_Xs5rjZy361Vv78Dgo

To claim this, I am signing this object:

@shaniber
shaniber / hr.sh
Created May 23, 2014 17:56
hr - a command line tool that displays a linebreak (or your choice of character) across the width of the terminal window.
#!/usr/bin/env bash
COLS="$(tput cols)"
if [[ "$COLS" -le 0 ]] ; then
COLS="${COLUMNS:-80}"
fi
hr() {
local WORD="$1"
#!/bin/bash
# A simple script to make live backups of an organization's GitHub repositories.
# Where to store the backup files
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"==/FULL/PATH/TO/BACKUPDIR=="}
# The GitHub organization whose repos will be backed up
GHBU_ORG=${GHBU_ORG-"==ORGANIZATION=="}
# GitHub API token.
#!/bin/bash
# Locate our phpunit.
phpunit=`which phpunit`
# Define a location to save the output.
outputlog="/tmp/phpunit_output_`date +%s`.log"
# Get name of the project (probably topmost directory name).
projectname=${PWD##*/}