# Update repos
#
sudo apt update
sudo apt install --only-upgrade -y \
gcc-5-base \
libstdc++6
# Tools
#
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
#!/usr/bin/env python | |
import os | |
import sys | |
import pickle | |
from datetime import datetime, timedelta, tzinfo | |
import boto3 | |
import botocore | |
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 | |
paste_command="/usr/bin/gist-paste $1" | |
#paste_command="/usr/bin/gist-paste -p --login $1" | |
#paste_command="/usr/bin/gist-paste --description=$2 $1" | |
#paste_command="/usr/bin/pastebinit" | |
black="\e[00;30m" | |
red="\e[00;31m" | |
green="\e[00;32m" |
- using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
- using inventory:
127.0.0.1 ansible_connection=local
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
- hosts: all | |
remote_user: root | |
tasks: | |
- name: Apt-get update | |
apt: update_cache=yes cache_valid_time=3600 | |
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' | |
- name: Check if libc6 is installed (apt) | |
command: dpkg-query -W libc6 | |
register: libc6 |
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
instances: | |
- host: localhost | |
port: 7199 | |
cassandra_aliasing: true | |
init_config: | |
# List of metrics to be collected by the integration | |
# Read http://docs.datadoghq.com/integrations/java/ to learn how to customize it | |
conf: | |
- include: | |
domain: org.apache.cassandra.metrics |
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
// Description: | |
// Listens for coffee-related strings and chimes in with quotes and coffee shop suggestions. | |
// Dependencies: | |
// none | |
// Configuration: | |
// HUBOT_FOURSQUARE_CLIENTID - A Foursquare client ID. | |
// HUBOT_FOURSQUARE_CLIENTSECRET - A foursquare client secret. | |
// HUBOT_FOURSQUARE_LATLONG - The latitude and longitude of your location, for coffee shop suggestions. Format: 44.9789949,-93.2717354 |
During installation, create a user called admin
rather than one with your own name.
Then install Homebrew as per latest instructions (note that this will install the necessary CLI components for XCode):
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
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
#!/usr/bin/env python | |
""" | |
Counts the number of tombstones in a keyspace.table and reports the top N highest counts | |
tombstone_count.py | |
[-h] This help screen | |
[--data-dir DATA_DIR] The C* data directory (/var/lib/cassandra/data) | |
[--top-k TOP_K] The top number of keys with highest tombstone counts to display. | |
keyspace The keyspace that contains the table |