Skip to content

Instantly share code, notes, and snippets.

View assimovt's full-sized avatar
🧠
something new...

Tair Asim assimovt

🧠
something new...
View GitHub Profile
@assimovt
assimovt / rfc5646-language-tags.js
Created March 26, 2018 16:20 — forked from msikma/rfc5646-language-tags.js
RFC 5646 Language Tags
// List of language tags according to RFC 5646.
// See <http://tools.ietf.org/html/rfc5646> for info on how to parse
// these language tags. Some duplicates have been removed.
var RFC5646_LANGUAGE_TAGS = {
'af': 'Afrikaans',
'af-ZA': 'Afrikaans (South Africa)',
'ar': 'Arabic',
'ar-AE': 'Arabic (U.A.E.)',
'ar-BH': 'Arabic (Bahrain)',
'ar-DZ': 'Arabic (Algeria)',
@assimovt
assimovt / Dockerfile
Created October 21, 2017 05:32
Deploying Elixir applications - Docker image
FROM buildpack-deps:jessie
MAINTAINER The Dockbit Team "team@dockbit.com"
ARG RELEASE=master
ENV HOME /root
ENV MIX_ENV prod
ENV PORT 4000
ENV REPLACE_OS_VARS true

Keybase proof

I hereby claim:

  • I am assimovt on github.
  • I am tair (https://keybase.io/tair) on keybase.
  • I have a public key ASA8PQUAvX0Y81EhwSedHmphsaKYac8ZAutT3TMsAAlCTAo

To claim this, I am signing this object:

@assimovt
assimovt / Dockerfile
Last active January 31, 2024 18:30
Dockbit Dev environment
FROM ruby:2.3
MAINTAINER team@dockbit.com
# Install app dependencies
RUN apt-get update -qq && apt-get install -y \
build-essential \
libpq-dev \
unzip \
telnet \
vim \
@assimovt
assimovt / bootlocal.sh
Last active December 27, 2017 16:36
Provision Boot2Docker with Convoy volume plugin
#!/bin/sh
# This script provisions Boot2Docker with the Convoy volume plugin.
# Copy it to /var/lib/boot2docker/bootlocal.sh and make it executable.
# It will be run at the end of boot initialisation.
# https://github.com/boot2docker/boot2docker/blob/master/doc/FAQ.md
RELEASE=v0.4.3
URL=https://github.com/rancher/convoy/releases/download/${RELEASE}/convoy.tar.gz
@assimovt
assimovt / README.md
Last active June 8, 2018 22:12
Adds Newrelic RPMs metrics to your dashboard.

Setup

Add the following gems to your Gemfile:

gem 'activeresource'
gem 'newrelic_api'

Update your bundle:

@assimovt
assimovt / README.md
Last active June 19, 2016 19:16
Adds "Daily wisdom about startups" images from http://startupquote.com to your dashboard.

Setup

Add the simple-rss Gem to your Gemfile:

gem 'simple-rss'

Update your bundle:

bundle

@assimovt
assimovt / sphinx.rb
Created February 5, 2012 11:16
Mac homebrew Sphinx 0.9.9 formula
require 'formula'
class Libstemmer < Formula
# upstream is constantly changing the tarball,
# so doing checksum verification here would require
# constant, rapid updates to this formula.
head 'http://snowball.tartarus.org/dist/libstemmer_c.tgz'
homepage 'http://snowball.tartarus.org/'
end
@assimovt
assimovt / new.html
Created August 20, 2011 17:28
Refactor Rails application layout to use HTML5 semantics with HAML
<!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset='utf-8'>
@assimovt
assimovt / _photo.html.haml
Created April 3, 2011 08:27
Carrierwave uploader sample
# app/views/photos/_photo.html.haml
.photo[photo]
= image_tag photo.image_url(:thumb) if photo.image?
= link_to "Delete", property_photo_path(@property, photo), :method => :delete, :confirm => "Are you sure?", :remote => :true