Skip to content

Instantly share code, notes, and snippets.

# This is the entire preseed config file used on an example Lucid system. See the preseed
# documentation for more information on the options here. This will use US English by default.
#
# https://help.ubuntu.com/10.04/installation-guide/amd64/preseed-contents.html
#
# This preseed will automatically install Ubuntu 10.04 with default options. Understand what
# it is doing before you use it.
#
# Boot Options line:
#
@tony-landis
tony-landis / s3_rackspace_migrate.py
Created February 1, 2012 23:06
Migrate from S3 to Rackspace Cloud Files
#!/usr/bin/python
"""
S3 to Rackspace Cloud Files Migration
This script will copy the contents of a S3
bucket to to a Rackspace Cloud Files container.
Depends on the boto and python_cloudfiles python libraries.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 23, 2024 19:59
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@vrillusions
vrillusions / _README.mkd
Last active January 24, 2023 16:18
Kickstart for Ubuntu 14.04
#!/usr/bin/python
"""
Rackspace Cloud Files to S3 Migration
This script will copy the contents of a
Rackspace Cloud Files container
to an S3 bucket.
@lantrix
lantrix / aws.sh
Last active July 25, 2023 03:06
Bash functions to autenticate and assume roles in aws federated accounts - for ADFS3
#!/bin/bash
# bash functions to autenticate and assume roles in aws federated accounts
# required tools on $PATH - aws, date, curl, jq, libxml2-utils
# requried environment variables:
export AWS_CLI=`which aws`
# optional environment variable, to automatically assume a specific role when calling assume()
# AWS_ASSUME_ROLE=arn:aws:iam::369407384105:role/cross-account-federated-role
@JeffPaine
JeffPaine / i3-cheat-sheet.md
Last active July 10, 2024 12:38
i3 Window Manager Cheat Sheet

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (alt by default)

General

  • startx i3 start i3 from command line
  • $mod+<Enter> open a terminal
  • $mod+d open dmenu (text based program launcher)
  • $mod+r resize mode ( or to leave resize mode)
  • $mod+shift+e exit i3
@ofrzeta
ofrzeta / preseed.cfg
Created November 26, 2015 12:15
Minimal preseed.cfg for network installation of Ubuntu 14.04 "Trusty Tahr"
d-i debian-installer/locale string en_US
d-i time/zone string Europe/Berlin
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string de
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i mirror/country string manual
d-i mirror/http/hostname string archive.ubuntu.com
d-i mirror/http/directory string /ubuntu
# Mikrotik script to update DuckDNS.org domain, to use it:
# - Download it as `duckdns-update`
# - Tune your `duckToken` and `duckDomain` variables
# - Copy it to your router:
# `scp duckdns-update user@you-router:`
# - Add the script
# `/system script add name=duckdns-update source=[ /file get duckdns-update contents ]`
# - Add a periodic task to execute it
# `/system scheduler add name=duckdns-updater interval=1h on-event=duckdns-update`
# - Or execute it manully