When working with multiple AWS accounts, it can be a pain to keep signing out and signing back in. I work with a number of accounts, my own, customer accts, burner accts, etc. It was a pain to keep logging in and out of the AWS Console. Thankfully the AWS Console has a "Role Switcher" that lets you quickly switch between accounts built-in. It does this by assuming a role from another account. Here's how to set that up...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# we need some fixes from 14.10 | |
sudo add-apt-repository --enable-source ppa:libreoffice/libreoffice-4-3 | |
# fetch this repository | |
sudo apt-get update | |
# update your libreoffice installation | |
sudo apt-get install libreoffice | |
# get all build dependencies for libreoffice | |
sudo apt-get build-dep libreoffice | |
# that strangely enough doesn't come with the above | |
sudo apt-get install gcj-jdk python-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.filter('nfcurrency', [ '$filter', '$locale', function ($filter, $locale) { | |
var currency = $filter('currency'), formats = $locale.NUMBER_FORMATS; | |
return function (amount, symbol) { | |
var value = currency(amount, symbol); | |
return value.replace(new RegExp('\\' + formats.DECIMAL_SEP + '\\d{2}'), '') | |
} | |
}]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Cassandra | |
After=network.target | |
[Service] | |
Type=forking | |
PIDFile=/var/lib/cassandra/cassandra.pid | |
User=cassandra | |
Group=cassandra | |
ExecStart=/usr/bin/cassandra -p /var/lib/cassandra/cassandra.pid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
## @file rgb-colored-echo.sh | |
## @author Amber Jain | |
## @section DESCRIPTION A bash pretty print script which provides red/green/blue colored echo functions | |
## @section LICENSE ISC | |
################# | |
# Documentation # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# A quickndirty bash-utility to generate REST-documentation from sourcecode comments. | |
# (initially aimed at php-files, but js should also work) | |
# Basically its a c-style comment -> markdown -> html converter | |
# Dependancies: | |
# - awk | |
# - sed | |
# - bash | |
# - php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
import random | |
import signal | |
import multiprocessing | |
processes = [] | |
def launch_process(number, kill_queue, child_connection): |
This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)
Sister Document - Restore MySQL from Amazon S3 - read that next
this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc
NewerOlder