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
| { | |
| "container": { | |
| "type": "DOCKER", | |
| "docker": { | |
| "image": "libmesos/ubuntu" | |
| } | |
| }, | |
| "id": "aclemmer-app", | |
| "instances": 1, | |
| "cpus": 0.5, |
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 | |
| # Add the repository | |
| rpm -Uvh http://repos.mesosphere.io/el/7/noarch/RPMS/mesosphere-el-repo-7-1.noarch.rpm | |
| echo "--- ---" | |
| echo "--- Installing Mesos and ZooKeeper packages ---" | |
| echo "--- ---" | |
| yum -y install mesos |
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 | |
| # Add mesosphere repository to hosts, so we can install it. Basically involves: | |
| # 1. Downloading the proj key from Ubuntu servers | |
| # 2. Splicing the correct URL for this specific Ubuntu version | |
| echo | |
| echo "-----ADD MESOSPHERE TO REPOT HOSTS-----" | |
| apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF | |
| DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]') | |
| CODENAME=$(lsb_release -cs) |
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 | |
| # Add the repository | |
| rpm -Uvh http://repos.mesosphere.io/el/7/noarch/RPMS/mesosphere-el-repo-7-1.noarch.rpm | |
| echo "--- ---" | |
| echo "--- Installing Mesos and ZooKeeper packages ---" | |
| echo "--- ---" | |
| yum -y install mesos marathon | |
| yum -y install mesosphere-zookeeper |
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
| diff -uNr -x'*.[oas]' openssl-1.0.1g.orig/crypto/Makefile openssl-1.0.1g/crypto/Makefile | |
| --- openssl-1.0.1g.orig/crypto/Makefile 2014-04-10 13:11:56.000000000 -0400 | |
| +++ openssl-1.0.1g/crypto/Makefile 2014-04-10 13:02:39.000000000 -0400 | |
| @@ -35,14 +35,16 @@ | |
| LIB= $(TOP)/libcrypto.a | |
| SHARED_LIB= libcrypto$(SHLIB_EXT) | |
| LIBSRC= cryptlib.c mem.c mem_clr.c mem_dbg.c cversion.c ex_data.c cpt_err.c \ | |
| - ebcdic.c uid.c o_time.c o_str.c o_dir.c o_fips.c o_init.c fips_ers.c | |
| + ebcdic.c uid.c o_time.c o_str.c o_dir.c o_fips.c o_init.c fips_ers.c \ | |
| + secure_malloc.c buddy_allocator.c |
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
| # Problem Statement: | |
| # You have mulitple copies (or clones) of upstream repositories in your local drive. | |
| # Your local cloned repos need to be updated against the upstream master repos on a regular basis. | |
| # Here's one solution that uses the IPython notebook. | |
| # Open up your IPython notebook browser in your working directory and then paste the following into a code cell. | |
| # Press SHIFT+ENTER to run the code cell. | |
| # Create a list of projects located in the working directory. | |
| list_of_projects = ["django", "ipython", "oh-mainline"] |
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
| ;; This is a brief example of how introspective and intercessory functionality | |
| ;; can be encapsulated in a method combination without changing method | |
| ;; definitions or client code. Different implementations of the same method are | |
| ;; chosen randomly at runtime and the method combination profiles them to learn | |
| ;; which ones are more efficient and starts to call them more often than the | |
| ;; others. | |
| (defgeneric sleep-and-stuff () | |
| (:method-combination adaptive-optimizer | |
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
| SYSCALL(args) = return | |
| open(".\0", 0x0, 0x1) = 3 0 | |
| fstat64(0x3, 0x7FFF6AFE1260, 0x0) = 0 0 | |
| fcntl(0x3, 0x32, 0x7FFF6AFE14E0) = 0 0 | |
| close(0x3) = 0 0 | |
| stat64("/Users/alex/Desktop/fun/scratch/locks\0", 0x7FFF6AFE11D0, 0x0) = 0 0 | |
| issetugid(0x7FFF6B01D530, 0x7FFF6AFE1A30, 0x7FFF6B01D530) = 0 0 | |
| csops(0x0, 0x0, 0x7FFF6AFE14BC) = 0 0 | |
| shared_region_check_np(0x7FFF6AFDF408, 0x2, 0x55) = 0 0 | |
| stat64("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x7FFF6AFE05D0, 0x7FFF6AFE14C0) = 0 0 |
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
| #include <arpa/inet.h> | |
| #include <netinet/in.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| void convert_both_ways(); | |
| int main(int argc, char **argv) |
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
| [user] | |
| name = Alex Clemmer | |
| email = clemmer.alexander@gmail.com | |
| [github] | |
| user = Hausdorff | |
| #token = 9970ddf523092ff97bdbf398e9db2bb1 | |
| [core] | |
| editor = vim | |
| excludesfile = /Users/alex/.gitignore_global | |
| autocrlf = true |