- golinks - golinks is a web app that allows you to create smart bookmarks, commands and aliases by pointing your web browser's default search engine at a running instance. Similar to bunny1 or yubnub. (Demo)
MIT
Go
- notes - notes is a self-hosted note taking web app that lets you keep track of your notes and search them in a easy and minimal way. (Demo)
MIT
Go
- pastebin - pastebin is a simple pastebin service with convenient CLI. (Demo)
MIT
Go
- shorturl - shorturl is a simple URL shortener with very tiny URL(s). (Demo)
MIT
Go
- todo - todo is a simple todo manager. (Demo)
MIT
Go
- [wiki](https://git.mills.io/prolog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
config, | |
pkgs, | |
options, | |
... | |
}: let | |
hostname = "oatman-pc"; # to alllow per-machine config | |
in { | |
networking.hostName = hostname; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export AWS_ORG_CONFIG_FILE_PREFIX=config- | |
export AWS_ORG_CREDENTIALS_FILE_PREFIX=credentials- | |
awsorg() { | |
local org=$1 | |
if [[ -z "$org" ]]; then | |
unset AWS_ORG | |
unset AWS_CONFIG_FILE | |
unset AWS_SHARED_CREDENTIALS_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/tls" | |
"log" | |
"net/http" | |
"fmt" | |
"golang.org/x/crypto/acme/autocert" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run this file at the root level of your terraform repo to generate your basic atlantis.yaml file | |
# This file is somewhat specific to my needs so it will probably need some tweaking for your own terraform setup | |
ATLANTIS_YAML="atlantis.yaml" | |
TERRAFORM_VERSION="v0.11.11" | |
WORKSPACES="dev tst stg prd" | |
touch ${ATLANTIS_YAML} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _run_deferred() { | |
local _depth="$BASHPID.${#FUNCNAME[@]}" | |
[[ "$_depth" != "$_deferred_depth" ]] && return | |
local opt=$- | |
set +e | |
for (( i=${#_deferred[@]} - 1; i >= 0; i-- )); do | |
eval "${_deferred[i]}" | |
done | |
[[ "$opt" == *e* ]] && set -e | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to get ClamAV working on CentOS 7 | |
yum -y install epel-release && yum -y update | |
yum -y install clamav clamav-data clamav-scanner clamav-scanner-systemd clamav-server clamav-server-systemd clamav-unofficial-sigs clamav-update | |
# Add /etc/clamd.d/freshclam.conf | |
# Add /usr/lib/systemd/system/clamav-freshclam.service | |
systemctl enable clamav-freshclam.service && systemctl start clamav-freshclam.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Create a group | |
CREATE ROLE readaccess; | |
-- Grant access to existing tables | |
GRANT USAGE ON SCHEMA public TO readaccess; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
-- Grant access to future tables | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"code.google.com/p/goauth2/oauth/jwt" | |
"code.google.com/p/google-api-go-client/storage/v1beta2" | |
"fmt" | |
"log" | |
"regexp" | |
) | |
NewerOlder