- package managment: https://github.com/Masterminds/glide
- cross-compiling: https://github.com/mitchellh/gox
- logging: https://github.com/Sirupsen/logrus
- code generation: https://github.com/josharian/impl (interface impl), https://github.com/mholt/curl-to-go, https://github.com/mholt/json-to-go
- memory optimization: http://golang-sizeof.tips/
- repl: https://github.com/motemen/gore
- self-update: https://github.com/inconshreveable/go-update
- json: https://github.com/antonholmquist/jason / https://github.com/a8m/djson
- docs: http://godoc.org/golang.org/x/tools/cmd/godoc
This file contains hidden or 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 ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
This file contains hidden or 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
sudo pacman -Syyu | |
sudo pacman -S qt5-tools gnome-clocks vlc atom inkscape krita 0ad gedit-plugins gparted linux-headers 0ad-data nodejs npm opera nginx postgresql postgresql-docs postgresql-libs plank plank-theme-numix php-fpm phppgadmin pgadmin4 jre8-openjdk-headless jre8-openjdk jdk8-openjdk openjdk8-doc openjdk8-src mono clang dos2unix simplescreenrecorder guake shutter tlp elasticsearch sshfs dconf-editor variety screenfetch numix-themes ttf-opificio ttf-aboriginal-sans gtk-theme-arc xenlism-minimalism-theme xenlism-wildfire | |
sudo pacman -S icedtea-web wxpython openmp atom ttf-freefont firefox-i18n-es-mx firefox-i18n-es-ar firefox-i18n-tr lua-socket uniconvertor acpi_call tp_smapi tk sane | |
sudo pacman -S zsh opera-ffmpeg-codecs python-pip python-virtualenv peek curl gdk-pixbuf2 poppler-qt5 yarn virtualbox virtualbox-host-modules-arch | |
sudo pacman -S libreoffice-extension-writer2latex libreoffice-extension-texmaths libreoffice-fresh-ar libreoffice-fresh-eu libreoffice-fresh-tr | |
sudo pacman -S gitkraken docke |
This file contains hidden or 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
# Portions Copyright 2016 The Kubernetes Authors All rights reserved. | |
# Portions Copyright 2018 AspenMesh | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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
{ | |
"timestamp": 1461277820031, | |
"webhookEvent": "jira:issue_updated", | |
"user": { | |
"self": "http://jira.server.my/rest/api/2/user?username=paul", | |
"name": "paul", | |
"key": "paul", | |
"emailAddress": "[email protected]", | |
"avatarUrls": { | |
"48x48": "http://www.gravatar.com/avatar/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa?d=mm&s=48", |
This file contains hidden or 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
wget http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.epub | |
wget http://www.oreilly.com/programming/free/files/object-oriented-vs-functional-programming.epub | |
wget http://www.oreilly.com/programming/free/files/java-the-legend.epub | |
wget http://www.oreilly.com/programming/free/files/introducing-java-8.epub | |
wget http://www.oreilly.com/programming/free/files/a-whirlwind-tour-of-python.epub | |
wget http://www.oreilly.com/programming/free/files/20-python-libraries-you-arent-using-but-should.epub | |
wget http://www.oreilly.com/programming/free/files/hadoop-with-python.epub | |
wget http://www.oreilly.com/programming/free/files/how-to-make-mistakes-in-python.epub | |
wget http://www.oreilly.com/programming/free/files/functional-programming-python.epub | |
wget http://www.oreilly.com/programming/free/files/python-in-education.epub |
This is a primer for installing a Letsencrypt certificate on a Jira server that is running the Jira provided, default Tomcat for serving webpages.
I found lots of information about how to do it using a free-standing Tomcat or nginx, but nothing about this particular combination. I hope it helps you!
Obviously, in all the examples, you need to replace jira.example.com
with your own domain! And (duh) you need to use your own password, not 1234
You need to have installed Java (outside the scope of this document). Then in your user's shell RC file and probably root
's RC file, add
This file contains hidden or 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
#!/usr/bin/env python2 | |
# AWS Management | |
import optparse | |
import ConfigParser | |
import os, time | |
import boto.ec2 | |
def start(): |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -e | |
EB_CLI_HOME=$1 | |
APP_NAME=$2 | |
CONFIG_NAME=$3 | |
export AWS_CREDENTIAL_FILE=/var/lib/jenkins/.elasticbeanstalk/aws_credential_file | |
export PATH=$PATH:$EB_CLI_HOME/api/bin/ |
This file contains hidden or 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 | |
# EB_APP_NAME = application name | |
# EB_APP_ENV = application environment | |
# S3_BUCKET = S3 bucket for ElasticBeanstalk | |
# S3_KEY = S3 folder to upload built app | |
# Zip up everything with the exception of node_modules (including dist), .git and zip files | |
ts=`date +%s` | |
fn="$EB_APP_NAME-$ts.zip" |