Skip to content

Instantly share code, notes, and snippets.

Andrew Mussey amussey

Block or report user

Report or block amussey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am amussey on github.
  • I am amussey (https://keybase.io/amussey) on keybase.
  • I have a public key ASDHYQmEsMS9nkqA8b-hUx0pbYy-BIuaNkWrPtFL2jfibgo

To claim this, I am signing this object:

@amussey
amussey / reinvent-2017-youtube.md
Created Dec 7, 2017 — forked from stevenringo/reinvent-2017-youtube.md
Links to YouTube recordings of AWS re:Invent 2017 sessions
View reinvent-2017-youtube.md

| Title | Description

View net.duplicati.server.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.duplicati.server</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/Duplicati.app/Contents/MacOS/duplicati-server</string>
<string>--webservice-port=8200</string>
@amussey
amussey / minerd_results.sh
Last active Aug 24, 2017
This test benchmarks different mining configurations for Litecoin.
View minerd_results.sh
#!/bin/bash
# This script will sum the "Total" speeds that are put out in every test.
READ_FILE=$1
results=$(cat $READ_FILE | grep Total: | sed -e "s/\[.*\] Total: //g" | sed -e "s/khash\/s//g")
total=0
elements=0
for i in ${results[@]}; do
@amussey
amussey / The Technical Interview Cheat Sheet.md
Created Apr 1, 2017 — forked from TSiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat Sheet.md

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
View keybase.md

Keybase proof

I hereby claim:

  • I am amussey on github.
  • I am amussey (https://keybase.io/amussey) on keybase.
  • I have a public key ASCWMu8KOn7HMrecdOrfS-emkpE4XSY4rsG-EHwPdEss9Ao

To claim this, I am signing this object:

View convert.php
<?php
$new_array = array();
for ($i = 0; $i < intval(count($old_array)/2); $i++) {
$new_array[$old_array[2*$i]] = $old_array[2*$i+1];
}
@amussey
amussey / README.md
Last active Dec 26, 2015
Automatically insert the ticket number from the branch name at the front of your commit message.
View README.md

git: Prepend Ticket Information

To eliminate the need to constantly type out the ticket information at the beginning of a commit message, this script uses the built in git hook system to prepend commits with the ticket information from the branch name. For example, if your branch is named:

b-51392/fixed-minor-visual-bug

the hook will grab the ticket information at the beginning of the branch name and prepend it to your comments:

$ git commit -m "Test commit message"
[b-51392/fixed-minor-visual-bug 74cfe0e] B-51392: Test commit message.
@amussey
amussey / Cassandra 2.0 Ubuntu Service Fix
Created Oct 17, 2013
Replace your /etc/init.d/cassandra file with the information below to get the service to correctly respond to commands.
View Cassandra 2.0 Ubuntu Service Fix
#! /bin/sh
### BEGIN INIT INFO
# Provides: cassandra
# Required-Start: $remote_fs $network $named $time
# Required-Stop: $remote_fs $network $named $time
# Should-Start: ntp mdadm
# Should-Stop: ntp mdadm
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: distributed storage system for structured data
@amussey
amussey / README.md
Last active Dec 25, 2015
Cassandra Database Injector Quickly insert a file of CQL3 data into your Cassandra cluster.
View README.md

CQL Database Injector

To run this, simply run:

python cassandra-cql.py hostname port script_file [-f]

This will soon be packaged for pip.

You can’t perform that action at this time.