create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| type loggingResponseWriter interface {¬ | |
| + ▸ http.ResponseWriter¬ | |
| + ▸ Status() int¬ | |
| + ▸ Size() int¬ | |
| + }¬ | |
| + ¬ | |
| func Log(handler http.Handler) http.Handler {¬ | |
| ▸ return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {¬ | |
| ~ ¬ | |
| ~ ▸ ▸ logger := &loggingResponseWriter{w: w}¬ |
| docker run --rm -i --volumes-from ssh -w /root/.ssh busybox sh -c 'cat > id_rsa.pub' < ~/.ssh/id_rsa |
| docker run -p 8080:8080 -v /data/jenkins:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) --privileged -u root jenkins | |
| # Use user `root` |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'bundler' | |
| require 'fileutils' | |
| require 'net/http' | |
| require 'net/https' | |
| require 'uri' | |
| TMP_DIR = "/tmp/gems" |
I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):
For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.
| RUN mkdir -p /var/log/supervisor | |
| RUN apt-get install -y supervisor | |
| ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf | |
| supervisor.conf | |
| [supervisord] | |
| nodaemon=true |
| root@prod-mysql-10:/var/lib/mysql/backup# !482 | |
| innobackupex --use-memory=500M --ibbackup xtrabackup_51 --apply-log . | |
| InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy | |
| and Percona LLC and/or its affiliates 2009-2013. All Rights Reserved. | |
| This software is published under | |
| the GNU GENERAL PUBLIC LICENSE Version 2, June 1991. | |
| IMPORTANT: Please check that the apply-log run completes successfully. |
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| "time" | |
| ) | |
| func main() { | |
| stubPrototype := func(in []reflect.Value) []reflect.Value { |
| import "unused" | |
| // This declaration marks the import as used by referencing an | |
| // item from the package. | |
| var _ = unused.Item // TODO: Delete before committing! |