export AWS_DEFAULT_REGION=ap-northeast-1
aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | \
awk '{print $2}' | grep -v ^$ | while read x; do echo "deleting $x" ; aws logs delete-log-group --log-group-name $x; done
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# | |
# CLI music controller for Spotify and Apple Music | |
# By default affects whichever one is running, preferring Spotify | |
# if both are. Change the order of KNOWN_PLAYERS to reverse that. | |
# | |
# If the first argument is either "music" or "spotify," it will | |
# target that app. If the app is not running, it will be launched. | |
# When no app is specified and neither are running, it returns nothing |
require 'json' | |
# Rename parameter store paths. Takes: | |
# - parameter store json file path | |
# - old path | |
# - new path to use | |
old_path, new_path, _rest = ARGV | |
params = `aws ssm get-parameters-by-path --path #{old_path} --with-decryption` | |
params = JSON.parse(params, object_class: OpenStruct) |
# Official framework image. Look for the different tagged releases at: | |
# https://hub.docker.com/r/library/node/tags/ | |
image: node:6 | |
before_script: | |
- npm install | |
# This folder is cached between builds | |
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache | |
cache: |
image: node:6.2.2 | |
before_script: | |
- npm config set spin false | |
- npm install -g bower | |
- npm install -g ember-cli | |
- npm install -g phantomjs-prebuilt | |
- npm install | |
- bower install --allow-root |
Hi, I'm Lorna and I don't use a mouse. I have had RSI issues since a bad workstation setup at work in 2006. I've tried a number of extra hardware modifications but what works best for me is to use the keyboard and only the keyboard, so I'm in a good position and never reaching for anything else (except my coffee cup!). I rather unwisely took a job which required me to use a mac (I've been a linux user until now and also had the ability to choose my tools carefully) so here is my cheatsheet of the apps, tricks and keyboard shortcuts I'm using, mostly for my own reference. Since keyboard-only use is also great for productivity, you may also find some of these ideas useful, in which case at least something good has come of this :)
There's more detail on a few of these apps but here is a quick overview of the tools I've installed and found helpful
Tool | Link | Comments |
---|
package terraformer | |
import ( | |
"bytes" | |
"errors" | |
"path" | |
"path/filepath" | |
"...runtime" | |
"...store" |
#!/usr/bin/python | |
import os | |
import sys | |
import boto3 | |
# get an access token, local (from) directory, and S3 (to) directory | |
# from the command-line | |
local_directory, bucket, destination = sys.argv[1:4] |
By default when Nginx starts receiving a response from a FastCGI backend (such as PHP-FPM) it will buffer the response in memory before delivering it to the client. Any response larger than the set buffer size is saved to a temporary file on disk.
This process is outlined at the Nginx ngx_http_fastcgi_module page manual page.
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |