Skip to content

Instantly share code, notes, and snippets.

View mikong's full-sized avatar

Michael Galero mikong

  • Singapore
View GitHub Profile
@mikong
mikong / keybase.md
Created July 1, 2020 01:16
Hi keybase

Keybase proof

I hereby claim:

  • I am mikong on github.
  • I am mikong (https://keybase.io/mikong) on keybase.
  • I have a public key ASCxnivjYt4igY_Ni1bQssbvPGMkaIY_a_Z-u38y7Hn5_Ao

To claim this, I am signing this object:

@mikong
mikong / video-test.html
Last active April 24, 2017 02:21
YouTube videos on your page
<!DOCTYPE html>
<html lang="en">
<head>
<title>Video Testing</title>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<style>
.media {
margin-top: 30px;
text-align: center;
@mikong
mikong / app_chat_node.sh.erb
Last active February 17, 2017 10:30
The erb template for /engineyard/bin/app_chat_node
#!/bin/bash
# Author: Mikong Galero
/data/<%= @app_name %>/shared/bin/build_node_app_environment
source /data/<%= @app_name %>/shared/config/env
source /data/<%= @app_name %>/shared/config/env.custom
case "$1" in
status)
@mikong
mikong / solr-8983-console.log
Created August 15, 2016 09:22
Partial Search not working on the app, working in Solr Dashboard
Query: 'John'
Expected: Match 1 record of user with name 'John Doe'
Logs:
Web app (FAILING):
2698495 INFO (qtp110456297-16) [ x:default] o.a.s.c.S.Request [default] webapp=/solr path=/select params={q=John&defType=edismax&qf=name_text+phone_number_text&fl=*+score&start=0&fq=type:User&rows=30&wt=ruby} hits=0 status=0 QTime=1
Solr Dashboard (WORKING)
2763320 INFO (qtp110456297-17) [ x:default] o.a.s.c.S.Request [default] webapp=/solr path=/select params={q=John&indent=on&wt=json&_=1471250534642} hits=1 status=0 QTime=1
@mikong
mikong / changetip_monikers.txt
Created January 19, 2015 08:20
ChangeTip monikers
chocnut: $0.05
pandesal: $0.05
monay: $0.1
isaw: $0.15
taho: $0.25
balut: $0.3
pancit canton: $0.35
chicharon: $0.50
halo-halo: $2
@mikong
mikong / infinite_duties.md
Last active December 22, 2015 00:00
This lists all the chores and duties people must do according to some or all people. This is one sure way to overwhelm yourself with all the responsibilities.

Infinite List of Duties, Chores, Responsibilities

Note: Not for the faint of heart.

According to your dentist:

  • Brush your teeth 3 times a day.
  • Mouthwash (optional?)
  • Clean your tongue every day.
  • Floss!
@mikong
mikong / gist:3743568
Created September 18, 2012 14:56
fontawesome icons to use
icon-chevron-left/icon-caret-left
icon-chevron-right/icon-caret-right
icon-th-large
icon-list
icon-share
icon-envelope-alt
icon-trash
icon-check
icon-check-empty
icon-pencil
@mikong
mikong / gist:2292645
Created April 3, 2012 14:54
phone numbers
250-0662
482-5490
348-7063
@mikong
mikong / gist:1947753
Created March 1, 2012 06:22
D3 Force Test
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js?2.8.0"></script>
</head>
<body>
<div id="chart"></div>
<script type="text/javascript">
var width = 400,
height = 300;
<html>
<head>
<script src="https://raw.github.com/mbostock/d3/master/d3.js"></script>
<script src="https://raw.github.com/mbostock/d3/master/d3.geom.js"></script>
<script src="https://raw.github.com/mbostock/d3/master/d3.layout.js"></script>
<style>
#area { background: #ddd; }
circle { stroke-width: 2px; stroke: #fff; }
</style>
</head>