Skip to content

Instantly share code, notes, and snippets.

View prologic's full-sized avatar
👋
Principal SRE, Founder of Yarn.social and Salty.im

James Mills prologic

👋
Principal SRE, Founder of Yarn.social and Salty.im
View GitHub Profile
@L422Y
L422Y / osx_automount_nfs.md
Last active May 10, 2024 09:06
Automounting NFS share in OS X into /Volumes

I have spent quite a bit of time figuring out automounts of NFS shares in OS X...

Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:

/etc/auto_master (see last line):

#
# Automounter master map
#

+auto_master # Use directory service

@jameskyle
jameskyle / certs.sh
Last active June 7, 2017 18:46
Generating CA, Server, & Client Certificates
#!/bin/bash
###############################################################################
# NOTICE: This script is intended to be used in conjunction with a openssl.cnf
# template such as this one:
# https://gist.github.com/jameskyle/8106d4d5c6dfa5395cef
# (C) Copyright 2014 James A. Kyle.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@cridenour
cridenour / gist:74e7635275331d5afa6b
Last active August 7, 2023 13:52
Setting up Vim as your Go IDE

Setting up Vim as your Go IDE

The final IDE

Intro

I've been wanting to do a serious project in Go. One thing holding me back has been a my working environment. As a huge PyCharm user, I was hoping the Go IDE plugin for IntelliJ IDEA would fit my needs. However, it never felt quite right. After a previous experiment a few years ago using Vim, I knew how powerful it could be if I put in the time to make it so. Luckily there are plugins for almost anything you need to do with Go or what you would expect form and IDE. While this is no where near comprehensive, it will get you writing code, building and testing with the power you would expect from Vim.

Getting Started

I'm assuming you're coming with a clean slate. For me this was OSX so I used MacVim. There is nothing in my config files that assumes this is the case.

@stuart-warren
stuart-warren / simple-gpg-enc.go
Last active May 20, 2024 09:57
golang gpg/openpgp encryption/decryption example
package main
import (
"bytes"
"code.google.com/p/go.crypto/openpgp"
"encoding/base64"
"io/ioutil"
"log"
"os"
)
@prologic
prologic / passwd.sh
Last active August 29, 2015 14:06
Password Management with bash and ccrypt
#!/bin/bash
function getpass() {
if [[ -f $HOME/.passwd.cpt ]]; then
password=$(ccrypt -c $HOME/.passwd.cpt | egrep $1 | cut -f 3 -d ":")
else
password=$(egrep $1 $HOME/.passwd | cut -f 3 -d ":")
fi
if [[ $password == "" ]]; then
anonymous
anonymous / homeromsterbinpkg-not.txt
Created September 30, 2014 01:48
/home/romster/bin/pkg-not
#!/bin/bash
#
# Copyright (c) 2008 by Jose V Beneyto, sepen at users dot sourceforge dot net
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@DanielOaks
DanielOaks / irc_fuzz.py
Last active April 12, 2020 15:28
Little IRC server fuzzer
#!/usr/bin/env python3
# IRC Server fuzzing, made easy!
import time
import socket
import select
import random
# settings
hostname = '127.0.0.1'
@prologic
prologic / prttest.sh
Created November 19, 2014 12:50
Rough idea of prttest
#!/bin/bash
PORT=$(dirname pwd)
cat - > Dockerfile <<EOF
FROM crux/base
VOLUME /usr/ports/contrib/test
RUN ports -u && prt-get cache
@roachhd
roachhd / README.md
Last active May 23, 2024 22:38
Basics of BrainFuck

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

BrainFuck Programming Tutorial by: Katie

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

INTRODUCTION

@Otacon22
Otacon22 / gist:1a43c785226a06a72872
Created January 29, 2015 13:31
Plugin to ignore voice/devoice messages on Hexchat (useful with Slack.com IRC backend)
import hexchat
__module_name__ = "novoice"
__module_version__ = "2.0"
__module_description__ = "Ignores voice messages from ChanServ"
def voice_event(word, word_eol, userdata):
return hexchat.EAT_HEXCHAT
hexchat.hook_print("Channel Voice", voice_event)