Skip to content

Instantly share code, notes, and snippets.

View penguwin's full-sized avatar
:shipit:
bingo bango bongo bish bash bosh 👩‍💻

Nicolas M. penguwin

:shipit:
bingo bango bongo bish bash bosh 👩‍💻
View GitHub Profile
@penguwin
penguwin / rc.vim
Last active February 2, 2021 19:52
" vim: set sw=4 ts=4 sts=4 et tw=78 foldmarker={,} foldlevel=0 foldmethod=marker:
" General {
autocmd! bufwritepost .vimrc source % " Automatic reloading of .vimrc
set nocompatible " disable vi compatibility. (required for Vundle)
set history=700 " Number of things to remember in history.
set autowrite " Writes on make/shell commands
set autoread
@penguwin
penguwin / pre-push
Last active December 29, 2020 14:50
A git hook to prevent force pushing on master
#!/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 February 21, 2020 00:34
A Beehive configuration for Mastodon&IRC interactions
{
"Bees": [
{
"Name": "MastodonBee",
"Class": "mastodonbee",
"Description": "Bee buzzing on mastodon",
"Options": [
{
"Name": "server",
"Value": "https://chaos.social/"
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"
@penguwin
penguwin / running: go test -v
Created October 18, 2017 15:41
Openweathermap test
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 February 19, 2017 19:57
instagrambee
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
@penguwin
penguwin / storage_mega.go
Created January 14, 2017 15:23
storage_mega.go
package mega
import (
"errors"
"net/url"
"path/filepath"
"strings"
knoxite "github.com/knoxite/knoxite/lib"
"github.com/t3rm1n4l/go-mega"