Skip to content

Instantly share code, notes, and snippets.

Reed O'Brien reedobrien

Block or report user

Report or block reedobrien

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@reedobrien
reedobrien / audit.rules
Created Aug 12, 2019 — forked from Neo23x0/audit.rules
Linux Auditd Best Practice Configuration
View audit.rules
# IMPORTANT!
# This gist has been transformed into a github repo
# You can find the most recent version there:
# https://github.com/Neo23x0/auditd
# ___ ___ __ __
# / | __ ______/ (_) /_____/ /
# / /| |/ / / / __ / / __/ __ /
# / ___ / /_/ / /_/ / / /_/ /_/ /
# /_/ |_\__,_/\__,_/_/\__/\__,_/
View pr-comment-emojis.md

Any top-level comment on pull request ought be tagged with one of four emojis:

  • for a non-blocking comment that asks for clarification. The pull request author must answer the question before the pull request is merged, but does not have to wait for the comment author to re-review before merging.

  • 🎨 for a non-blocking comment that proposes a refactor or cleanup. The pull request author does not have to address the comment for the pull request to merge.

  • ⚠️ for a blocking comment that must be addressed before the pull request can merge. The comment's author should leave a Request Changes review, and is responsible for re-reviewing once the pull request author has addressed the issue.

  • 😻 for a comment that compliments the author for their work.

View resolved-or-not.yml
---
foo: # Type Ta
bar:
eggs: green # dereferenced URN for type Tb.
baz: huzzah
or
---
foo: # Type Ta
View gist:b5a8c62b65ada8a1a4cd8e29e1487d7c
---
foo: # Type Ta
bar:
eggs: green # URN for type Tb located, resolved, an populated.
baz: huzzah
or
---
foo: # Type Ta
@reedobrien
reedobrien / mount-ram.sh
Created Dec 18, 2018 — forked from koshigoe/mount-ram.sh
Like tmpfs in Mac OSX
View mount-ram.sh
#!/bin/sh
# This program has two feature.
#
# 1. Create a disk image on RAM.
# 2. Mount that disk image.
#
# Usage:
# $0 <dir> <size>
#
View main.go
package main
import "net/http"
func main() {
plexHandler := server.MustMovieHandler(plex.Must(plexURL))
umsHandler := server.MustMovieHandler(ums.Must(umsURL))
s := server.MustServer([]http.Handler{plexHandler, umsHandler})
s.ListenAndServeTLS...
@reedobrien
reedobrien / url.go
Created Nov 16, 2018
URLs w/o string replacement
View url.go
package main
import (
"fmt"
"net/url"
)
func main() {
u := url.URL{
Scheme: "http",
@reedobrien
reedobrien / PKGBUILD.diff
Created Sep 17, 2018
Bluejeans PKGBUILD update
View PKGBUILD.diff
diff --git a/PKGBUILD b/PKGBUILD
index 0a0eb8f..bcc8ddc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
# $ curl -s https://bluejeans.com/downloads | grep 'desktop/linux'
pkgname=bluejeans
-pkgver=1.32.7
+pkgver=1.37.19
@reedobrien
reedobrien / lambda.py
Created Feb 6, 2018 — forked from mzupan/lambda.py
AWS Lambda job to backup RDS instances
View lambda.py
import boto3
import datetime
def lambda_handler(event, context):
print("Connecting to RDS")
client = boto3.client('rds')
print("RDS snapshot backups stated at %s...\n" % datetime.datetime.now())
client.create_db_snapshot(
DBInstanceIdentifier='web-platform-slave',
@reedobrien
reedobrien / lambda.py
Created Feb 6, 2018 — forked from mzupan/lambda.py
AWS Lambda job to backup RDS instances
View lambda.py
import boto3
import datetime
def lambda_handler(event, context):
print("Connecting to RDS")
client = boto3.client('rds')
print("RDS snapshot backups stated at %s...\n" % datetime.datetime.now())
client.create_db_snapshot(
DBInstanceIdentifier='web-platform-slave',
You can’t perform that action at this time.