Skip to content

Instantly share code, notes, and snippets.

View ashrafuzzaman's full-sized avatar

A.K.M. Ashrafuzzaman ashrafuzzaman

View GitHub Profile
en:
attributes:
first_name: First name
activerecord:
models:
person:
first_name: First name
<div>A.K.M. Ashrafuzzaman</div>
<div>Lead Software Engineer</div>
<div><a href="http://www.newscred.com/" target="_blank">NewsCred</a></div>
<div><br></div>
<div>(M) 880-175-5592433</div>
<div><a href="https://twitter.com/ashrafuzzaman" target="_blank">Twitter</a>&nbsp;|&nbsp;<a
href="http://jitu-blog.blogspot.com/" target="_blank">Blog</a>&nbsp;|&nbsp;<a
href="https://www.facebook.com/ashrafuzzaman.jitu" target="_blank">Facebook</a></div>
<div><br></div>
<div><font color="#ff0000">Check out The&nbsp;<a href="http://newscred.com/theacademy" target="_blank">Academy</a>,
<FONT SIZE="4"><FONT COLOR="#0b5394">A.K.M. Ashrafuzzaman</FONT></FONT><BR>
<BR>
<IMG SRC="http://www.sympaticosoftware.com/assets/SympaticoLogoSignature.png" ALIGN="bottom" BORDER="0"><BR>
111 West 10th Street&nbsp;&nbsp; <BR>
Kansas City, MO 64105<BR>
Office&nbsp;<A HREF="tel:913-491-3366">913-491-3366</A><BR>
Mobile <A HREF="tel:%2B880-1755-592433">+880-1755-592433</A><BR>
<A HREF="mailto:asraf@sympaticosoftware.com">asraf@sympaticosoftware.com</A><BR>
<A HREF="http://www.sympaticosoftware.com/">www.sympaticosoftware.com</A>
@ashrafuzzaman
ashrafuzzaman / gist:8896395
Created February 9, 2014 08:59
Twitter bootstrap 3 typeahead SCSS
.twitter-typeahead .tt-query,
.twitter-typeahead .tt-hint {
margin-bottom: 0;
}
.tt-dropdown-menu {
@extend .dropdown-menu;
}
.tt-suggestion {
@ashrafuzzaman
ashrafuzzaman / gist:9483719
Created March 11, 2014 11:07
Faster capistrano deploy with skipping bundle install and asset pre-compilation using git
namespace :bundler do
desc "Install bundles into application"
task :install, :roles => [:app] do
from = source.next_revision(current_revision)
if capture("cd #{latest_release} && #{source.local.log(from)} Gemfile Gemfile.lock | wc -l").to_i > 0
run "cd #{latest_release} && #{try_sudo} bundle install --without test"
else
logger.info "Skipping Bundle install because there were no asset changes"
end
end
@ashrafuzzaman
ashrafuzzaman / gist:f893ce3f567e5393d8c2
Last active August 29, 2015 14:01
Install ruby 2.1.2 in ubuntu servers
#!/bin/sh
sudo apt-get update
sudo apt-get install build-essential git-core curl sqlite3 libsqlite3-dev libxml2-dev libxslt1-dev libreadline-dev libyaml-dev libcurl4-openssl-dev libncurses5-dev libgdbm-dev libffi-dev imagemagick libmagickwand-dev wget
sudo aptitude purge ruby
sudo rm -rf /usr/bin/ruby
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar -xvf ruby-2.1.2.tar.gz
@ashrafuzzaman
ashrafuzzaman / commission.rb
Created May 25, 2014 07:54
Share language files from a rails plugin
module Commission
class Engine < ::Rails::Engine
config.i18n.load_path += Dir[config.root.join('config', 'locales', '**', '*.{rb,yml}')]
end
end
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-toast/paper-toast.html">
<polymer-element name="my-element">
<template>
<style>
:host {
curl https://raw.githubusercontent.com/creationix/nvm/v0.16.1/install.sh | bash
nvm install 0.11.13
nvm alias default 0.11.13
sudo chown -R `whoami` ~/.npm
sudo chown -R `whoami` /usr/local/lib/node_modules
sudo chown -R `whoami` /usr/local
sudo chown -R `whoami` ~/tmp
# File /etc/init/analytics-spark.conf
description "Analytics spark"
start on runlevel [2345]
stop on runlevel [!2345]
# respawn
env AWS_REGION='us-east-1'