Skip to content

Instantly share code, notes, and snippets.

Can Kemik cankemik

Block or report user

Report or block cankemik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
fernandoaleman /
Last active Aug 7, 2019
Install RabbitMQ on Ubuntu 16.06

Install RabbitMQ on Ubuntu 16.04

Install Erlang

sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update -y
sudo apt-get install -y erlang erlang-nox
set -e
function getHostname()
local HOST=''
while test -z "$HOST"
read -p "$1 : " HOST
camous / streamAzureLogStream.js
Last active Jun 1, 2018
redirect azure log stream to another web service endpoint
View streamAzureLogStream.js
var request = require('request');
var http = require('http');
var express = require('express');
var os = require("os");
var streamoptions = {
url: '',
headers: {
'Authorization': 'Basic xxxxxxxxxxxxxxxxx'
MichMich / Amazon S3 Client Side Upload
Created Nov 2, 2016
Example of an Amazon S3 upload.
View Amazon S3 Client Side Upload
<!DOCTYPE html>
<title>AWS S3 File Upload</title>
<script src=""></script>
<input type="file" id="file-chooser" />
#!/usr/bin/env bash

# Assuming OS X Yosemite 10.10.4

# Install XCode and command line tools
# See
# See
xcode-select --install
jperl /
Created Oct 30, 2014
Meteor App Icon and Launch Screen Size Guide


Name Size
iphone_2x 120x120
iphone_3x 180x180
ipad 76x76
ipad_2x 152x152
android_ldpi 36x36
android_mdpi 48x48
kotay / formatter.rb
Last active Sep 2, 2016
Heroku to Logstalgia formatter
View formatter.rb
#!/usr/bin/env ruby
# Install:
# $ cat heroku_logstalgia_formatter.rb > ~/bin/heroku_logstalgia_formatter
# $ chmod +x ~/bin/heroku_logstalgia_formatter
# Usage:
# $ heroku logs -t --app {app} | heroku_logstalgia_formatter | logstalgia -
require 'optparse'
calebwoods / nginx.conf
Created May 10, 2014
Sample Nginx config for deployment of Angular.js app
View nginx.conf
server { listen 80;
access_log /var/log/;
error_log /var/log/;
root /var/www/apps/;
charset utf-8;
location / {
rewrite ^ https://$host$request_uri? permanent;
julionc /
Last active Sep 21, 2019
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
Abhinav1217 / javascript: getDateRangeOfWeek.js
Last active Jul 18, 2019
Get date range based on week number.
View javascript: getDateRangeOfWeek.js
* Get the date and days within a week from week number.
* eg: date range for 8th week in 2013 is 17th Feb to 23rd Feb. This
* code snippet will give you.
* It is not my code completely, Bit of modification from something
* i found on net. Cant find it anymore so keeping a backup.
* @param {[Integer]} weekNo [From week 1 to Week 52/53 based on the system date setting]
* @return {[Date]} [description]
You can’t perform that action at this time.