Skip to content

Instantly share code, notes, and snippets.

View mikong's full-sized avatar

Michael Galero mikong

  • Singapore
View GitHub Profile
@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 / 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 / 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 / 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: