Skip to content

Instantly share code, notes, and snippets.

View kriskornel's full-sized avatar
👋

Kornelius Tjokorda Bagus kriskornel

👋
View GitHub Profile
/*
* GOOGLE MAP WRAPPER CLASS
*
*/
function GoogleMap(mapOptions, markerOptions) {
  this.map;
  this.mapOptions = mapOptions;
  this.markerOptions = markerOptions;
  
```
mysql > SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
```
mysql > SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
@kriskornel
kriskornel / installing_cassandra.md
Created August 31, 2019 21:23 — forked from hkhamm/installing_cassandra.md
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 https://raw.github.com/Homebrew/homebrew/go/install)"
//Example values of min & max latlng values
var lat_min = 1.3049337;
var lat_max = 1.3053515;
var lng_min = 103.2103116;
var lng_max = 103.8400188;

map.setCenter(new google.maps.LatLng(
  ((lat_max + lat_min) / 2.0),
 ((lng_max + lng_min) / 2.0)
@kriskornel
kriskornel / laravel_horizon.md
Created August 16, 2019 20:40 — forked from ankurk91/laravel_horizon.md
Laravel Horizon, redis-server, supervisord on Ubuntu server

Laravel Horizon, redis-server, supervisord on Ubuntu 16/18 server

Laravel 5.8, Horizon 3.x, Redis 5.x

Parepare application

  • Install and configure Laravel Horizon as instructed in docs
  • Make sure you can access the Horizon dashboard like - http://yourapp.com/horizon
  • For now it should show status as inactive on dashbaord

Install redis-server

@kriskornel
kriskornel / laravel_horizon.md
Created August 16, 2019 20:40 — forked from ankurk91/laravel_horizon.md
Laravel Horizon, redis-server, supervisord on Ubuntu server

Laravel Horizon, redis-server, supervisord on Ubuntu 16/18 server

Laravel 5.8, Horizon 3.x, Redis 5.x

Parepare application

  • Install and configure Laravel Horizon as instructed in docs
  • Make sure you can access the Horizon dashboard like - http://yourapp.com/horizon
  • For now it should show status as inactive on dashbaord

Install redis-server

@kriskornel
kriskornel / TRACING VALET ERROR 502 AFTER UPGRADING PHP
Created July 17, 2019 16:54
GET 502 VALET ERROR IN MACOS HIGHSIERRA AFTER UPGRADING THE PHP VERSION FROM 71 TO 72
check the log file in folder
```
cd ~/.config/valet/Log
subl ~/.config/valet/Log/nginx-error.log
```
@kriskornel
kriskornel / iterm2-solarized.md
Created July 2, 2019 23:01 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@kriskornel
kriskornel / preview.md
Created January 31, 2019 08:45
IMAGE PREVIEW JQUERY
function readURL(input) {
     for(var i =0; i< input.files.length; i++){
         if (input.files[i]) {
            var reader = new FileReader();

            reader.onload = function (e) {
               var img = $('<img id="dynamic">');
               img.attr('src', e.target.result);
 img.appendTo('#form1');