Skip to content

Instantly share code, notes, and snippets.

@DuGites
DuGites / README.md
Last active August 29, 2015 14:21 — forked from smagch/README.md
aws cloudformation create-stack --stack-name hogehoge --template-body file://conf.json --region ap-northeast-1 --parameters file://param.json
@DuGites
DuGites / djangoeb.js
Created January 24, 2017 17:09 — forked from masayang/djangoeb.js
CloudFormation script for Django/ElasticBeansTalk with Jenkins environment
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Template: This template installs a single-instance with dev environment for elastic beanstalk as well as Jenkins server. This template creates an Amazon EC2 instance. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"EC2Tag" : {
"Description" : "EC2 tag name",
"Type" : "String"
},
#!/bin/sh
#Lernu esperanton :-)
wget -nc http://www.oreilly.com/programming/free/files/microservices-for-java-developers.pdf
wget -nc http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.pdf
wget -nc http://www.oreilly.com/programming/free/files/object-oriented-vs-functional-programming.pdf
wget -nc http://www.oreilly.com/programming/free/files/java-the-legend.pdf
wget -nc http://www.oreilly.com/programming/free/files/a-whirlwind-tour-of-python.pdf
wget -nc http://www.oreilly.com/programming/free/files/hadoop-with-python.pdf
wget -nc http://www.oreilly.com/programming/free/files/how-to-make-mistakes-in-python.pdf
@DuGites
DuGites / setup-kubernetes-ubuntu-16.md
Created September 23, 2018 01:48 — forked from ruanbekker/setup-kubernetes-ubuntu-16.md
Install a 3 Node Kubernetes Cluster on Ubuntu 16

Master: Dependencies

apt update && apt upgrade -y
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -

cat <<EOF > /etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
killall ssh-agent; eval `ssh-agent`
@DuGites
DuGites / _aws_golang_examples.md
Created October 17, 2018 16:28 — forked from eferro/_aws_golang_examples.md
golang aws: examples

AWS Golang SDK examples

@DuGites
DuGites / sshclient.go
Created November 17, 2018 00:24 — forked from josephspurrier/sshclient.go
Golang SSH Client
package main
import (
"bufio"
"io/ioutil"
"os/signal"
//"syscall"
"fmt"
"log"
"os"
@DuGites
DuGites / glog
Created November 17, 2018 00:29 — forked from metrofx/glog
Pretty git log, displays 20 last commits.
#!/bin/sh
git --no-pager log -n 20 --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
@DuGites
DuGites / Free O'Reilly Books.md
Created December 31, 2018 23:02 — forked from ellerbrock/Free O'Reilly Books.md
Free O'Reilly Books

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.