Skip to content

Instantly share code, notes, and snippets.

View thekindofme's full-sized avatar

Yasith Fernando thekindofme

View GitHub Profile
@thekindofme
thekindofme / JIRA_templates.json
Last active August 14, 2019 07:03 — forked from hoangtrvu/JIRA_templates.json
JIRA Issue Template
{
"options": {
"domains": [],
"inputIDs": [],
"limit": []
},
"templates": [{
"issuetype-field": "",
"name": "DEFAULT TEMPLATE",
"projects-field": "",

Keybase proof

I hereby claim:

  • I am thekindofme on github.
  • I am thekindofme (https://keybase.io/thekindofme) on keybase.
  • I have a public key ASB_zlxQHuk5dvecL1uCLdQsi6NFh3IBtQWnRsHI3vYj4Ao

To claim this, I am signing this object:

@thekindofme
thekindofme / chrome.conf
Last active August 29, 2015 14:16
Ubuntu upstart script for headless Chrome
#!upstart
#
description "chrome"
setuid deploy #run as deploy user
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
lastDigit x = x `mod` 10
dropLastDigit x = x `div` 10
--let toDigits x =if x < 10
-- then 0
-- else (toDigits (dropLastDigit x)) ++ [lastDigit x]
toDigits :: Integer -> [Integer]
toDigits x
@thekindofme
thekindofme / gist:6408814
Last active December 22, 2015 03:18
Rubymine 5.4 Ruby 2.1 Debugging Issues
$ bundle list
Gems included by the bundle:
* actionmailer (4.0.0)
* actionpack (4.0.0)
* activemodel (4.0.0)
* activerecord (4.0.0)
* activerecord-deprecated_finders (1.0.3)
* activesupport (4.0.0)
* arel (4.0.0)
* atomic (1.1.13)
if condition1
if condition2
do1
else
do2
end
else
if condition2
do3
else
@thekindofme
thekindofme / Gemfile.rb
Created February 14, 2012 01:41
RubyMine Run/Debug Failure
source 'http://rubygems.org'
gem 'rails', '3.1.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
#gem 'mysql2'
gem 'mongo_mapper', '>= 0.9.0'
@thekindofme
thekindofme / start_delayed_job.sh
Created November 27, 2011 15:04
Upstart conf file for starting up delayed job
#!/bin/bash
logger "Trying to start delayed_job"
date >> /home/deployer/scripts/log/start_delayed_job.txt
rvm_path=/home/deployer/.rvm
source "/home/deployer/.rvm/scripts/rvm"
cd /home/deployer/inoty
/usr/bin/env RAILS_ENV=production /home/deployer/.rvm/rubies/ruby-1.9.2-p0/bin/ruby /home/deployer/inoty/script/delayed_job restart &>> /home/deployer/scripts/log/start_delayed_job.txt
@thekindofme
thekindofme / delayed_job
Created November 22, 2011 02:55 — forked from semipermeable/delayed_job
Sys-V init script for delayed job that plays well with capistrano and rvm
#! /bin/sh
### BEGIN INIT INFO
# Provides: delayed_job
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
### END INIT INFO
yasi8h@yas-mbp:fusionweb$ git st
# On branch yasith
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: config/environment.rb
# modified: config/environments/development.rb
# modified: config/initializers/devise.rb
#