Skip to content

Instantly share code, notes, and snippets.

Brad Rydzewski bradrydzewski

Block or report user

Report or block bradrydzewski

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
View aws_lambda_shim
package main
import (
"errors"
"fmt"
"log"
"net/http"
"net/url"
"github.com/aws/aws-lambda-go/events"
View flags.go
var flags = []cli.Flag{
cli.StringFlag{
Name: "repo.fullname",
Usage: "repository full name",
EnvVar: "DRONE_REPO",
},
cli.StringFlag{
Name: "repo.owner",
Usage: "repository owner",
@bradrydzewski
bradrydzewski / build_latest.go
Last active Apr 14, 2016
Drone nightly build
View build_latest.go
package main
import (
"flag"
"log"
"strings"
"github.com/drone/drone-go/drone"
)
View make.go
// +build ignore
package main
import (
"bytes"
"fmt"
"io/ioutil"
"os"
"path/filepath"
View gist:c304e05d4e0e493e8f42
package main
import (
"net/smtp"
)
type Email struct {
Recipients []string
Host string
Port string
@bradrydzewski
bradrydzewski / generate_docker_cert.sh
Last active Oct 11, 2019
Generate trusted CA certificates for running Docker with HTTPS
View generate_docker_cert.sh
#!/bin/bash
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \
@bradrydzewski
bradrydzewski / install.sh
Created Jun 18, 2014
Install Postgres 9.3
View install.sh
#!/bin/bash
# remove existing 9.1 installation
sudo /etc/init.d/postgresql stop
sudo apt-get --force-yes -fuy remove --purge postgresql postgresql-9.1 postgresql-client
# install 9.3
sudo apt-get install python-software-properties
sudo add-apt-repository 'deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main'
sudo apt-get update
View gist:85b7720c276a70a1bed5

UI / UX

  • message when no branches, no commits, no authors
  • message when no repos on /account/repos
  • message when no commits
  • message when no feed
  • login screen styling
  • login button in base template
  • save repo settings
  • websocket code, use an interface and inject
View settings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
<mirror>
<id>bintray</id>
<name>bintray</name>
<url>http://jcenter.bintray.com</url>
<mirrorOf>central</mirrorOf>
You can’t perform that action at this time.