Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Galero mikong

  • Quezon City, Philippines
View GitHub Profile
View keybase.md

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 Apr 24, 2017
YouTube videos on your page
View video-test.html
<!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 Feb 17, 2017
The erb template for /engineyard/bin/app_chat_node
View app_chat_node.sh.erb
#!/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 Aug 15, 2016
Partial Search not working on the app, working in Solr Dashboard
View solr-8983-console.log
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
View changetip_monikers.txt
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 Dec 22, 2015
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.
View infinite_duties.md

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 Sep 18, 2012
fontawesome icons to use
View gist:3743568
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
View gist:2292645
250-0662
482-5490
348-7063
View gist:1947753
<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;
View index.html
<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>
You can’t perform that action at this time.