Skip to content

Instantly share code, notes, and snippets.

View cerdman's full-sized avatar

colin b. erdman cerdman

  • TriNetX Inc.
  • United States
View GitHub Profile
#!/usr/bin/env bash
if [ "$#" -ge 2 ]
then
DBNAME="$1"; shift
PREFIX="$1"; shift
else
echo "usage: mysql-dump-like.sh <database> <table_prefix> [<mysql_options...>]"
exit 1
fi
#!/bin/sh
# Make sure only root can run our script
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
# Load configuration
. /etc/route53/config
describe('Profile | Clipboard | Finder |', function() {
beforeEach(module('profile.clipboard.finder'));
beforeEach(module('ui.router'));
describe('ClipboardFinderCtrl |', function() {
var ctrl, scope, httpBackend, finder;
beforeEach(inject(function($rootScope, $controller, Finder, $httpBackend) {
scope = $rootScope.$new();
scope.main = {};
// Mocked Service
angular.module('mock.users', []).
factory('UserService', function($q) {
var userService = {};
userService.get = function() {
return {
id: 8888,
name: "test user"
}
require 'json'
require 'open-uri'
require 'csv'
require 'date'
# Github credentials to access your private project
USERNAME="myusername"
PASSWORD="mypassword"
# Project you want to export issues from
@cerdman
cerdman / freshstart
Last active August 29, 2015 14:10 — forked from dbogart/freshstart
//stops all files in root directory from being tracked in git
git rm --cached . -r
//if you need to modify .gitignore, or create it again because it disappeared, do it before the next command
//tracks all files except those in .gitignore
git add .
//commit
git commit -m 'commit message'
import luigi
import tempfile
import datetime
from luigi.contrib import rdbms
from lib.luigi import logger
from luigi.postgres import MultiReplacer
try:
import MySQLdb
import luigi
import os
#from WorkflowUtils import WorkflowUtils
import logging as log
class ATask(luigi.Task):
# Task parameters
dataset_name = luigi.Parameter()
upstream_task = luigi.Parameter()
#!/bin/bash
SNAPID="SNAP"
BACKUPDBID="TEMPDB"
#config groups
SECURITYGROUP="Mysecgrup"
PARAMSGROUP="Myparamsgrup"
#rds verifying commands

After provisioning an EC2 instance and opening up HTTP traffic, here are the commands I ran via ssh:

sudo yum install httpd

sudo apachectl start

sudo yum install R

which R