Skip to content

Instantly share code, notes, and snippets.

View orsenthil's full-sized avatar
🏠
Working from home

Senthil Kumaran orsenthil

🏠
Working from home
View GitHub Profile
@orsenthil
orsenthil / index.html
Last active December 12, 2015 12:49 — forked from darwin/index.html
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg);">
<scene id="scene1">
<label t="translate(0,346)" pose="0,-10|8,-1">

Keybase proof

I hereby claim:

  • I am orsenthil on github.
  • I am senthilkumaran (https://keybase.io/senthilkumaran) on keybase.
  • I have a public key whose fingerprint is A64A 61A0 6705 2B04 3825 7681 E47C 4E18 5EAC 5C19

To claim this, I am signing this object:

@orsenthil
orsenthil / junit
Created February 29, 2016 06:39 — forked from atmoz/junit
JUnit Bash script - run JUnit tests with ease in CLI
#!/bin/bash
#
# NAME
# junit - run JUnit tests with ease
#
# USAGE
# junit [FILE... | CLASS... | DIR]
#
# EXAMPLES
# junit
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/
# core
brew install coreutils
# key commands
brew install binutils
brew install diffutils
brew install ed --with-default-names
brew install findutils --with-default-names
@orsenthil
orsenthil / coursera.sh
Last active June 30, 2016 17:32 — forked from bburky/coursera.sh
Automatically configure a VM download Coursera courses
#!/bin/bash
# Automatically configure a VM download Coursera courses.
# This script works as a user data file for use with a cloud VM.
# This script will resume downloading if the VM is restarted.
# This script works with Debian jessie (or possibly Ubuntu with systemd).
# You must enroll in each course and accept the Honor of Code of each course
# before you can download them.
pushd /tmp
echo "Installing Python"
curl -O https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz
tar xvjf Python-2.7.13.tgz
cd Python-2.7.13
CPPFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" ./configure --prefix=$HOME/python27
make && make install
popd
pushd /tmp
import re
RE_PATTERNS = re.compile(r"(?:Issue ?)?#?(\d+)", flags=re.MULTILINE | re.IGNORECASE)
test_messages = [
"""#123""",
"""Issue #123""",
"""Issue#123""",
"""Issue123""",
import re
RE_PATTERNS= re.compile(r"^#(\d+)|^Issue\s#(\d+)|^Issue#(\d+)", flags=re.MULTILINE | re.IGNORECASE)
test_messages = [
"""#123""",
"""Issue #123""",
"""Issue#123"""
]
pushd /tmp
echo "Installing Python"
curl -O https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
tar xvf Python-3.6.0.tgz
cd Python-3.6.0
./configure --prefix=$HOME/python36
make && make install
popd
pushd /tmp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.