Skip to content

Instantly share code, notes, and snippets.

Tomy Ismail tomysmile

Block or report user

Report or block tomysmile

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
tomysmile / Docker shell
Created Jan 20, 2019 — forked from bahmutov/Docker shell
A personal cheat sheet for running local Node project in a Docker container
View Docker shell
# See list of docker virtual machines on the local box
$ docker-machine ls
default * virtualbox Running tcp:// v1.9.1
# Note the host URL - it will be used later!
# Build an image from current folder under given image name
$ docker build -t gleb/demo-app .
View docker-compose.yml
version: '2'
image: kong:latest
tomysmile /
Created Dec 17, 2018 — forked from hkhamm/
Installing Cassandra on Mac OS X

Installing Cassandra on Mac OS X

Install Homebrew

Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:

ruby -e "$(curl -fsSL"
tomysmile /
Created Feb 26, 2018 — forked from erikreagan/
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

tomysmile / random.js
Created Jan 22, 2018 — forked from kerimdzhanov/random.js
JavaScript: get a random number from a specific range
View random.js
* Get a random floating point number between `min` and `max`.
* @param {number} min - min number
* @param {number} max - max number
* @return {number} a random floating point number
function getRandomFloat(min, max) {
return Math.random() * (max - min) + min;
tomysmile / client.js
Created Jan 22, 2018 — forked from crtr0/client.js
A simple example of setting-up dynamic "rooms" for clients to join
View client.js
// set-up a connection between the client and the server
var socket = io.connect();
// let's assume that the client page, once rendered, knows what room it wants to join
var room = "abc123";
socket.on('connect', function() {
// Connected, let's sign-up for to receive messages for this room
socket.emit('room', room);
tomysmile / BackgroundGeolocation-Ionic2.js
Created Dec 29, 2017 — forked from christocracy/BackgroundGeolocation-Ionic2.js
Simple Cordova Background Geolocation Implementation for Ionic 2
View BackgroundGeolocation-Ionic2.js
* How to implement cordova-background-geolocation with Ionic 2
* Chris Scott, Transistor Software <>
import { Component } from '@angular/core';
import { NavController, Platform } from 'ionic-angular';
tomysmile /
Created May 18, 2017 — forked from JeOam/
Install Java 8 on OS X

on El Capitan, after installing the brew...

$ brew update
$ brew tap caskroom/cask
$ brew install Caskroom/cask/java

And Java 8 will be installed at /Library/Java/JavaVirtualMachines/

Check version:

tomysmile /
Created Mar 28, 2017 — forked from erichrobinson/
SwitchResX Configuration

#SwitchResX Settings for LG 21:9 UltraWide

SwitchResX is a utility that allows users to override the default resolution settings in OSX. For more information, including download links, vist .

##Disabling System Integrity Protection (SIP)

If you are running OSX 10.11 or higher, SIP must be disabled. To disable SIP do the following:

  • Boot into the recovery partition by pressing CMD + R when starting up your Mac.
  • Once in recovery mode, open a terminal window.
  • Type the command csrutil disable
tomysmile / sample.js
Created Feb 9, 2017 — forked from chrisabrams/sample.js
Bluebird promise chain example
View sample.js
Promise = require('bluebird')
var A = function() {
return new Promise(function(resolve, reject) {
var result = 'A is done'
You can’t perform that action at this time.