Skip to content

Instantly share code, notes, and snippets.

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.
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 July 22, 2017 20:25 — forked from anandnalya/app_1.js
Building a Single Page Webapp with jQuery
$(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 August 18, 2017 13:18 — 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
// === 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 January 26, 2018 07:55 — forked from marlonbernardes/run-jar-as-a-service.md
How to make a jar file run on startup
  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 March 7, 2018 03:12 — forked from onjin/docker-compose.yml
example docker compose for postgresql with db init script
postgres:
image: postgres:9.4
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
@vrulevskyi
vrulevskyi / gist:3ef36dcb93d3db65d12988c9f112b06e
Created August 14, 2020 13:54 — forked from AliMD/gist:3344523
All github Emoji (Smiles)

All github Emoji (Smiles)

ali.md/emoji

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

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

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

@vrulevskyi
vrulevskyi / semantic-commit-messages.md
Created September 11, 2020 20:59 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

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

@vrulevskyi
vrulevskyi / git-branching-diagram.md
Created September 25, 2020 13:16 — forked from bryanbraun/git-branching-diagram.md
Example Git Branching Diagram

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.