I hereby claim:
- I am mohitsharma44 on github.
- I am mohitsharma44 (https://keybase.io/mohitsharma44) on keybase.
- I have a public key ASCOPYChfoFRQcVwg_EytqqDcvTkpZWZwwbfjEo2zfupYQo
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# Ansible role test shim. | |
# | |
# Usage: [OPTIONS] ./tests/test.sh | |
# - distro: a supported Docker distro version (default = "centos7") | |
# - playbook: a playbook in the tests directory (default = "test.yml") | |
# - cleanup: whether to remove the Docker container (default = true) | |
# - container_id: the --name to set for the container (default = timestamp) | |
# - test_idempotence: whether to test playbook's idempotence (default = true) |
I hereby claim:
To claim this, I am signing this object:
autossh -M 0 -f -N -C -L 2222:compute:22 gw.cusp.nyu.edu -o "ServerAliveCountMax=3" -o "ServerAliveInterval=10" -o "ExitOnForwardFailure=yes" |
import hashlib | |
import sys | |
import urllib2 | |
import optparse | |
def sha256_checksum(url, block_size=65536): | |
filename = urllib2.urlopen(url) | |
sha256 = hashlib.sha256() | |
for block in iter(lambda: filename.read(block_size), b''): | |
sha256.update(block) |
This is definitely not the best method but this is something that worked for me
git clone --no-hardlinks repo2
cd repo2
git filter-branch --subdirectory-filter path/to/subfolder HEAD -- --all
require "formula" | |
class Panamax < Formula | |
homepage "http://www.panamax.io" | |
url "http://download.panamax.io/installer/panamax-0.6.5.tar.gz" | |
sha256 "b59f21e5a821a3886eab0e62f85fc89d8fedea6099b79d3447906dfc36d163d7" | |
def install | |
system "./configure", "--prefix=#{prefix}", "--var=#{var}/panamax" | |
system "make", "install" | |
resource("additional_files").stage { bin.install "panamaxcli-darwin" } |
# Rename to `config.ini`, and keep it in the same folder as `gh-issues-import.py` | |
# For a full list of options, see <http://www.iqandreas.com/github-issues-import/configuration/> | |
[source] | |
server = github.com | |
repository = mohitsharma44/myrepo | |
username = [email protected] | |
password = <my_fancy_password> | |
[target] |
# Unfortunately this only works with macports for now. I have installed homebrew and macports on my mac | |
# and use macports explicitly for gnuradio stuff and homebrew as my default package manager. So far | |
# my system is not broken. I'm considering it as a good sign :p | |
Steps: | |
- Install MacPorts (if you havent) following the instructions from here: https://guide.macports.org/#installing | |
- Install python using Homebrew: brew install python |
The best way to run pyspark on a machine in a virtualized environment is to use docker. Docker is a container technology
that allows developers to 'package' their software and ship it so that it takes away the headache of things like setting up
environment properly, configuring logging, setting proper options, breaking the machine etc.. basically removes
the excuse It works on my machine
I'll stop babbling about docker and containers. If you're interested to know more, head here: http://unix.stackexchange.com/questions/254956/what-is-the-difference-between-docker-lxd-and-lxc
Step1: Installing docker on Mac
export PUREGEV_ROOT=/opt/pleora/ebus_sdk/Ubuntu-14.04-x86_64 | |
export GENICAM_ROOT=$PUREGEV_ROOT/lib/genicam | |
export GENICAM_ROOT_V2_4=$GENICAM_ROOT |