Skip to content

Instantly share code, notes, and snippets.

Avatar
⚔️

fREW Schmidt frioux

⚔️
View GitHub Profile
@frioux
frioux / ditch-master.sh
Created Jun 13, 2020
You can run this (using https://github.com/ingydotnet/git-hub) to rename all default branches from master to main; run from a fresh, empty repo or the repo you run it from will get all bloated with garbage refs.
View ditch-master.sh
#!/bin/sh
set -e
for r in $(git hub repos -r --all); do
json=$(git hub repo "$r" --json)
# ignore forks
if [ -n "$(echo "$json" | jq -r '.["source/full_name"]+""')" ]; then
echo "skipping $r; fork"
View coffee.md
  • Brazil Dry Process Fazenda Campos Altos: Fruited notes are somewhat edgy, but with convincing sweetness underneath -overripe berry, dried prune, dark baking chocolate, roasted nut, and creamy body. City+ to Full City+. Good for espresso.

  • Sweet Maria's New Classic Espresso: A classic, balanced espresso, but without the baggage of the old world espresso conventions ...and without robusta! The espresso has balanced

View client-script.lua
sharetags = require("sharetags")
local function screen_tag_state(s)
for i, t in ipairs(s.selected_tags) do
local activated = "NOT"
if t.activated then
activated = "IS"
end
print("AC: screen " .. s.index .. " has tag " .. t.name)
end
View genres.md
  1. RTS
  2. arcade
  3. ARPG
  4. JRPG
  5. minigame
  6. sandbox
  7. platformer
  8. voxel
  9. racing
  10. first person
@frioux
frioux / V4.pl
Created May 9, 2017
Example for IAM slide
View V4.pl
use Paws;
Paws->load_class('Paws::Credential::ProviderChain');
use POSIX 'strftime';
use Net::Amazon::Signature::V4;
# ...
has credential_provider => (
is => 'ro',
lazy => 1,
@frioux
frioux / ego-boost.sh
Created Jan 7, 2016
How many stars do you have in total?
View ego-boost.sh
#!/bin/dash
ego=${1:-frioux}
count=0
for repo in $(git hub repos --raw $ego); do
inner_count=$(git hub stars $repo --raw | grep -v $ego | wc -l)
count=$(($count + $inner_count))
echo "$repo: $inner_count"
done
@frioux
frioux / unfollow
Last active Jan 23, 2020
Unfollow repos that are not mine
View unfollow
#!/bin/sh
# NOTE: This assumes you have installed and configured git-hub; get it here:
# https://github.com/ingydotnet/git-hub
for org in $(git hub orgs -Ar); do
for repo in $(git hub org-repos $org -Ar); do
git hub unwatch $repo
done
done
@frioux
frioux / gist:8f84b5277306a00ed37b
Created May 25, 2015
Export passwords from Firefox into Keepass
View gist:8f84b5277306a00ed37b
#!/usr/bin/env perl
use 5.20.0;
use warnings;
use autodie;
use experimental 'postderef';
use File::KeePass;
use Text::CSV;
View hot-toddy.mkdn

Ultimate hot buttered rum recipe

Brian Reid, 1985-07-21

I started making hot buttered rum from a Trader Vic recipe 15 years ago, and I have gradually evolved it by adding more spices, more butter, and less rum.

The way you make a hot buttered rum is to add some “batter” to some rum, and heat it. I like to keep a made-up batch of the batter in the refrigerator in an old margarine tub. For parties I make up a fresh batch.

@frioux
frioux / gist:16eb1e3fab1c887db7b5
Created Oct 31, 2014
Black Lightning (Prodigy Disc 1)
View gist:16eb1e3fab1c887db7b5
  • Transportation Options - Buckethead
  • Sow Thistle - Buckethead
  • The Shape vs Buckethead - Buckethead
  • Frozen Brains Tell No Tails - Buckethead
  • The Holy Filament - Mr. Bungle
  • Only The Good Die Young - Iron Maiden
  • Dressed In Decay - CKY
  • As The Tables Turn - CKY
  • Red Water - Type O Negative
  • Thunder Kiss '65 - White Zombie
You can’t perform that action at this time.