Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
#!/usr/bin/python | |
# encoding: utf-8 | |
# | |
# Copyright (c) 2013 deanishe@deanishe.net. | |
# | |
# MIT Licence. See http://opensource.org/licenses/MIT | |
# | |
# Created on 2013-11-01 | |
# |
[ | |
{ | |
"args": null, | |
"command": "select_all" | |
}, | |
{ | |
"args": | |
{ | |
"set_translate_tabs": true | |
}, |
#!/bin/bash | |
DBSTATUS=$(sqlite3 "$1" "PRAGMA integrity_check") | |
if [ "$DBSTATUS" == "ok" ] ; then | |
echo DB ALREADY OK | |
else | |
echo FIXING CORRUPT DB | |
TMPDB=$(mktemp -t sarim) | |
echo ".mode insert | |
.dump" | sqlite3 "$1" > $TMPDB |
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
An ever-evolving list of brands I boycott and why as well as the last date I supported them. I'll continue to update this list as I learn more and detach myself from the firm grip of big tech and corporatism.
I recognise, as a tech worker, that we've created quite the hydra, so detaching ourselves becomes much more complicated than it ever should be. I also recognise that like the capitalistic umbrella tech operates under, we are somewhat stuck using certain technologies (for example, I am writing this here on GitHub, which refuses to drop ICE as a contract.).
I am not perfect and recognise this can be seen as moralistic. I am doing this to share information that may help influence your decisions. They may not. That's up for you to decide.
My hope is to encourage everyone to be more thoughtful in how they vote with their wallets.
# Knife Configuration File. | |
# | |
# This is a Ruby DSL to set configuration parameters for Knife's | |
# general options. The default location for this file is | |
# ~/.chef/knife.rb. If multiple Chef repositories are used, | |
# per-repository configuration files can be created. A per repository | |
# configuration file must be .chef/knife.rb in the base directory of | |
# the Chef repository. For example, | |
# | |
# ~/Development/chef-repo/.chef/knife.rb |
.now-playing { | |
position: absolute; | |
right: 20px; | |
top: calc(50vh - (min(20vw, calc(100vh - 30px)) / 2, 400px)); | |
z-index: 1001; | |
} | |
a.now-playing { | |
opacity: 1; | |
border: 0; |
* |
# add to ~/.bash_profile, and close/reopen a shell. Will autocomplete any hosts found in known_hosts. | |
complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh |
CREATE EXTERNAL TABLE IF NOT EXISTS {{DATABASE_NAME.TABLE_NAME}} ( | |
type string, | |
time string, | |
elb string, | |
client_ip string, | |
client_port string, | |
target string, | |
request_processing_time int, | |
target_processing_time int, | |
response_processing_time int, |