Skip to content

Instantly share code, notes, and snippets.

adi aofry

Block or report user

Report or block aofry

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
@daqing
daqing / docker-ce-ubuntu-install.sh
Created Mar 23, 2017
Install Docker-CE on ubuntu
View docker-ce-ubuntu-install.sh
sudo apt update
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
View Mac OSX NTFS Writable
#!/bin/bash
checkExisting(){
echo "Checking if already existing device on file..."
while read fileLine; do
if [ "$line" = "$fileLine" ]; then
echo "[WARNING] Device already initialized on this system. Nothing to do here"
@rcoup
rcoup / aws_usage.py
Created Jun 1, 2010
A script to query the Amazon Web Services (S3/EC2/etc) usage reports programmatically.
View aws_usage.py
#!/usr/bin/env python
"""
A script to query the Amazon Web Services usage reports programmatically.
Ideally this wouldn't exist, and Amazon would provide an API we can use
instead, but hey - that's life.
Basically takes your AWS account username and password, logs into the
website as you, and grabs the data out. Always gets the 'All Usage Types'
You can’t perform that action at this time.