start new:
tmux
start new with session name:
tmux new -s myname
node_layers = node[:opsworks][:instance][:layers] | |
if (node_layers.include?("rails-app")) | |
node[:deploy].each do |application, deploy| | |
Chef::Log.debug("Trying rake for application #{deploy[:application_type]}") | |
if defined?(deploy[:application_type]) && deploy[:application_type] != 'rails' | |
Chef::Log.debug("Skipping Rollbar non rails apps") | |
next | |
end | |
#!/bin/bash | |
# Updating Ubunut | |
echo "updating ubunutu... please be patient" | |
apt-get update && apt-get upgrade -y | |
echo "installing required packages... please be patient" | |
apt-get install htop lib32gcc1 -y | |
# Create steam user if needed |
# Install Git needed for Git based gems | |
packages: | |
yum: | |
git: [] | |
#!/bin/bash | |
mkdir -p ~/.ssh | |
# generate new personal ed25519 ssh keys | |
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <[email protected]>" | |
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_robtn -C "rob thijssen <[email protected]>" | |
# generate new host cert authority (host_ca) ed25519 ssh key | |
# used for signing host keys and creating host certs |
<?php | |
/** | |
* Convert under_score type array's keys to camelCase type array's keys | |
* @param array $array array to convert | |
* @param array $arrayHolder parent array holder for recursive array | |
* @return array camelCase array | |
*/ | |
public function camelCaseKeys($array, $arrayHolder = array()) { | |
$camelCaseArray = !empty($arrayHolder) ? $arrayHolder : array(); |