Skip to content

Instantly share code, notes, and snippets.

View JDK 1.6 Installation in Ubuntu
Install Java JDK 6.0 update 31 on Ubuntu 12.04 LTS
Introduction
The first question is why are we installing an old JDK. The answer is that Oracle JDK 6.0 update 31 is the JDK recommended by Cloudera when installing CDH4 (Cloudera Distribution Hadoop v4).
This is an update to an older version of this post. Mainly I have changed the JDK from 1.6.0_26 to 1.6.0_31 as this is the recommended JDK for CDH4 .
Install Java
I have a 64 bit version of Ubuntu 12.04 LTS installed, so the instructions below only apply to this OS.
View Emotions
http://www.emoji-cheat-sheet.com/
(*) (^) (~) (abe) (access) (angel) (anger) (bandit) (bartlett) (beer) (bell) (bhangra) (bike) (bing) (blackwidow) (bollylove) (bomb) (bow) (bowled) (brb) (bucky) (bug) (call) (camera) (canyoutalk) (captain) (car) (cash) (celebrate) (chai) (chappal) (cheese) (chuckle) (clap) (coffee) (computer) (confidential) (cwl) (d) (devil) (disco) (disgust) (diwali) (dog) (doh) (donkey) (donttalk) (drunk) (e) (ek) (emo) (envy) (excel) (F) (facepalm) (fear) (finger) (fireworks) (fistbump) (flex) (footballfail) (fubar) (games) (ghost) (gift) (golmaal) (goodluck) (gottarun) (handshake) (happy) (headbang) (heidy) (highfive) (holdon) (hollest) (hug) (internetexplorer) (island) (joy) (kaanpakadna) (kya) (laddu) (ladyvamp) (lalala) (learn) (letsmeet) (lips) (lips) (makeup) (malthe) (man) (microsoft) (mm) (monkey) (mooning) (movember) (mp) (muscleman) (music) (n) (nahi) (nazar) (neil) (nickfury) (ninja) (nod) (o) (ok) (oliver) (onedrive) (onenote) (outlook) (oye) (pi) (plane) (poke) (poolparty) (
@vrulevskyi
vrulevskyi / app_1.js
Created Jul 22, 2017 — forked from anandnalya/app_1.js
Building a Single Page Webapp with jQuery
View app_1.js
$(document).ready(function() {
// convert all a/href to a#href
$("body").delegate("a", "click", function(){
var href = $(this).attr("href"); // modify the selector here to change the scope of intercpetion
// Push this URL "state" onto the history hash.
$.bbq.pushState(href,2);
// Prevent the default click behavior.
@vrulevskyi
vrulevskyi / destructuring.js
Created Aug 18, 2017 — forked from mikaelbr/destructuring.js
Several demos and usages for ES6 destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
View destructuring.js
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
@vrulevskyi
vrulevskyi / run-jar-as-a-service.md
Created Jan 26, 2018 — forked from marlonbernardes/run-jar-as-a-service.md
How to make a jar file run on startup
View run-jar-as-a-service.md
  1. Create the start and stop scripts of your application.
  • Example:

myapp-start.sh

#!/bin/bash
cd /home/ubuntu/myapp/
java -jar myapp.jar --server.port=8888 &
@vrulevskyi
vrulevskyi / docker-compose.yml
Created Mar 7, 2018 — forked from onjin/docker-compose.yml
example docker compose for postgresql with db init script
View docker-compose.yml
postgres:
image: postgres:9.4
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
View gist:3ef36dcb93d3db65d12988c9f112b06e

All github Emoji (Smiles)

ali.md/emoji

:bowtie: | 😄 | 😆 | 😊 | 😃 | ☺️ | 😏 | 😍 | 😘 | :kissing_face: | 😳 | 😌 | 😆 | 😁 | 😉 | :wink2: | 👅 | 😒 | 😅 | 😓

😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 | :neckbeard: | 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷

😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 |

View semantic-commit-messages.md

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

View git-branching-diagram.md

Example Git Branching Diagram

You can use this diagram as a template to create your own git branching diagrams. Here's how:

  1. Create a new diagram with diagrams.net (formerly draw.io)
  2. Go to File > Open From > URL
  3. Insert this url (it points to the xml data below): https://gist.githubusercontent.com/bryanbraun/8c93e154a93a08794291df1fcdce6918/raw/0378fda86483def0a9680270c02907a9cbaf7615/template-data.xml
  4. Customize as needed for your team.