Skip to content

Instantly share code, notes, and snippets.

View julian-labuschagne's full-sized avatar

Julian julian-labuschagne

View GitHub Profile
@lavoiesl
lavoiesl / duplicity-backup.sh
Created May 3, 2012 00:44
Very low priority backup using duplicity
#!/bin/bash
# Export some ENV variables so you don’t have to type anything
export AWS_ACCESS_KEY_ID='my-key-id'
export AWS_SECRET_ACCESS_KEY='my-secret'
export PASSPHRASE='my-gpg-key-passphrase'
GPG_KEY='my-gpg-pub-id'
# The source of your backup
SOURCE=/
@adorsk
adorsk / rest_test.py
Created November 6, 2012 18:40
Python posting to Drupal, via REST services
import httplib2
import json
import time
base_url = 'http://localhost/services_test/api/external_tasks'
def t2():
login_data = {
'username': 'tasks',
'password': 'tasks'
@rbq
rbq / docker.yaml
Last active June 16, 2024 07:06
Install Docker CE on Ubuntu using Ansible
---
- hosts: all
tasks:
- name: Install prerequisites for Docker repository
apt:
name: ['apt-transport-https', 'ca-certificates', 'curl', 'gnupg2', 'software-properties-common']
update_cache: yes
- name: Add Docker GPG key
apt_key: