Skip to content

Instantly share code, notes, and snippets.

Avatar

Nicolas M. penguwin

View GitHub Profile
@penguwin
penguwin / pre-push
Last active Dec 29, 2020
A git hook to prevent force pushing on master
View pre-push
#!/bin/bash
# Per-repo installation
# 1. Place this file in `.git/hooks/pre-push`
# 2. `chmod +x` it
clippy='
_________________________________________
/ It looks like youre trying to force \
| push on master... |
@penguwin
penguwin / beehive.conf
Created Feb 21, 2020
A Beehive configuration for Mastodon&IRC interactions
View beehive.conf
{
"Bees": [
{
"Name": "MastodonBee",
"Class": "mastodonbee",
"Description": "Bee buzzing on mastodon",
"Options": [
{
"Name": "server",
"Value": "https://chaos.social/"
View patch.diff
diff --git a/command/issue.go b/command/issue.go
index b9987d0..6ef9407 100644
--- a/command/issue.go
+++ b/command/issue.go
@@ -10,6 +10,7 @@ import (
"strings"
"time"
+ "github.com/charmbracelet/glamour"
"github.com/cli/cli/api"
View running: go test -v
penguwin@dekadent  ~/code/golang/src/github.com/penguwin/openweathermap   tests  go test -v [17:36:37]
=== RUN TestRetrieveIcon
--- PASS: TestRetrieveIcon (0.11s)
=== RUN TestValidLanguageCode
--- PASS: TestValidLanguageCode (0.00s)
current_test.go:38: received expected bad code
=== RUN TestNewCurrent
=== RUN TestNewCurrentWithCustomHttpClient
--- PASS: TestNewCurrentWithCustomHttpClient (0.00s)
=== RUN TestNewCurrentWithInvalidOptions
@penguwin
penguwin / Log
Last active Feb 19, 2017
instagrambee
View Log
FO[0000] Registering Resource Resource=HiveResource
INFO[0000] Registering Resource Resource=BeeResource
INFO[0000] Registering Resource Resource=ChainResource
INFO[0000] Registering Resource Resource=ActionResource
INFO[0000]
INFO[0000] Beehive is buzzing...
INFO[0000] Worker bee ready: testbee - testbee
INFO[0000] Worker bee ready: Instagrambee - Instagrambee
INFO[0000] [testbee]: Connecting to IRC: irc.freenode.org:6667
INFO[0006] [testbee]: Connected to IRC: irc.freenode.org:6667
View storage_mega.go
package mega
import (
"errors"
"net/url"
"path/filepath"
"strings"
knoxite "github.com/knoxite/knoxite/lib"
"github.com/t3rm1n4l/go-mega"