Skip to content

Instantly share code, notes, and snippets.

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

Mohammad Arafath ironmanMA

🏠
Working from home
View GitHub Profile
@ironmanMA
ironmanMA / tomcat8_main.yml
Created February 8, 2015 23:16 — forked from mNantern/main.yml
main-task for ansible role tomcat8
- name: install package openJDK 7
apt: pkg=openjdk-7-jdk update_cache=yes
sudo: yes
- name: create archives folder
file: path=/home/vagrant/archives state=directory
- name: Download Tomcat 8
get_url: url="http://apache.crihan.fr/dist/tomcat/tomcat-8/v8.0.0-RC1/bin/apache-tomcat-8.0.0-RC1.tar.gz" dest=/home/vagrant/archives/
- name: Create tomcat directory
file: name=/opt/apache-tomcat owner=vagrant group=vagrant state=directory
sudo: yes
@ironmanMA
ironmanMA / 0_reuse_code.js
Created May 31, 2014 11:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ironmanMA
ironmanMA / ScreenScraper.cs
Created May 29, 2014 16:07
screen scraper application on c# (using HTML-Agility-Pack)
/*
* Screen Scraping Application (from Yahoo Weather)
* @author : Mohammad Arafath
* @email : [email protected]
*
*/
using System;
using System.Collections.Generic;
using System.Linq;
@ironmanMA
ironmanMA / MM_CUDA_SM.c
Last active August 29, 2015 14:01 — forked from wh5a/mp3.c
// MP 2: Due Sunday, Dec 16, 2012 at 11:59 p.m. PST
#include <wb.h>
#define wbCheck(stmt) do { \
cudaError_t err = stmt; \
if (err != cudaSuccess) { \
wbLog(ERROR, "Failed to run stmt ", #stmt); \
return -1; \
} \
} while(0)