Skip to content

Instantly share code, notes, and snippets.

Avatar
🙂

Hari K T harikt

🙂
View GitHub Profile
@harikt
harikt / SolrQuerySyntaxPrimer.md
Created Jul 13, 2020 — forked from mankyKitty/SolrQuerySyntaxPrimer.md
The documentation around the basics of the Solr query syntax is terrible, this is an attempt to alleviate the doc-shock associated with trying to learn some fundamentals.
View SolrQuerySyntaxPrimer.md

Solr Query Syntax Basics

This is a super basic beginners guide to Solr Lucene query syntax. We're going to cover running a straightforward query, as well as some of the more useful functionality such as filtering and creating facets. We'll point out some things you can't do and generally give you enough instruction so that you can get yourself into trouble.

For testing you need a REST client capable of sending requests to your Solr instance. Either RESTClient for Firefox or Postman for Chrome are good choices.

Misc

Request Specific Fields

To specify a list of fields to return instead of the default Solr response use fl and provide a comma delimited list of fields:

@harikt
harikt / gist:7963895ee5e94fc1edf5deaeaa7ea778
Last active Nov 29, 2019
PHP code highlighting not working for hugo
View gist:7963895ee5e94fc1edf5deaeaa7ea778
```yaml
pygmentsuseclasses: false
pygmentsCodeFences: true
pygmentsCodeFencesGuessSyntax: true
markup:
highlight:
codeFences: true
hl_Lines: ""
lineNoStart: 1
lineNos: true
@harikt
harikt / ubuntu_agnoster_install.md
Created Oct 22, 2019 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme
View ubuntu_agnoster_install.md

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

@harikt
harikt / log (example)
Created Jul 2, 2019 — forked from zaydek-old/log (example)
Example of some source code: this quotes the stock market (e.g. <2k stocks) at one-second intervals for all unique quotes throughout the day
View log (example)
$ head AAPL
09:30:00.000 166.6400
09:30:02.000 166.3000
09:30:03.000 166.2400
09:30:04.000 166.2050
09:30:05.000 166.2900
09:30:06.000 166.1500
09:30:07.000 166.2450
09:30:08.000 166.0675
09:30:09.000 166.0200
@harikt
harikt / airtel.md
Last active Feb 22, 2018
airtel recharge
View airtel.md

https://twitter.com/harikt/status/966203761126465538

Hi @Airtel_Presence why do you need to validate the OTP when recharging? I was trying to help a person who don't even know how to read the message. And stuck to get the OTP to give the best offer you provide on the phone :-(

https://twitter.com/Airtel_Presence/status/966205451733012480

Hi! I appreciate you reaching out here, Hari! I'd be happy to take a closer look. Can you please explain a little about the situation in a DM? I can then follow this up appropriately. Rgds, Swati

https://twitter.com/arunv707/status/966235529422319616

@harikt
harikt / gist:973c0f7414087a50c033130859119806
Created Jan 4, 2018
Firefox : pulse audio is not installed
View gist:973c0f7414087a50c033130859119806
https://askubuntu.com/questions/33089/what-user-settings-control-audio-access
View hello.blade.php
How can we extend Blade ?
I am using the directive https://laravel.com/docs/5.5/blade#extending-blade
@url('article_show', ['id' => '3'], ['foo' => 'bar'], 'fragment')
Problem is the rest of the params after string `'article_show'` is not received on call back.
I am trying to do something similar to : https://zendframework.github.io/zend-expressive/features/template/twig/
@harikt
harikt / aurarouter.nginx.conf
Last active Jun 22, 2017
nginx configuration for Aura.Router version 3.x : https://github.com/auraphp/Aura.Router/tree/3.x
View aurarouter.nginx.conf
server {
listen 80;
server_name aurarouter.com;
root /var/www/projects/aura-router-test;
index index.php index.html index.htm;
location / {
try_files $uri @rewriteapp;
}
@harikt
harikt / APACHE_content-security-policy.conf
Created Apr 18, 2017 — forked from 7php/APACHE_content-security-policy.conf
APACHE to NGINX | content-security-policy.conf
View APACHE_content-security-policy.conf
# REF: https://github.com/h5bp/server-configs-apache/blob/master/src/security/content-security-policy.conf
<IfModule mod_headers.c>
Header set Content-Security-Policy "script-src 'self'; object-src 'self'"
<FilesMatch "\.(appcache|atom|bbaw|bmp|crx|css|cur|eot|f4[abpv]|flv|geojson|gif|htc|ico|jpe?g|js|json(ld)?|m4[av]|manifest|map|mp4|oex|og[agv]|opus|otf|pdf|png|rdf|rss|safariextz|svgz?|swf|topojson|tt[cf]|txt|vcard|vcf|vtt|webapp|web[mp]|webmanifest|woff2?|xloc|xml|xpi)$">
Header unset Content-Security-Policy
</FilesMatch>
</IfModule>
@harikt
harikt / gist:4cece5f1059c8e1aef167248f0f56038
Created Mar 31, 2017
Jio failed to connect to WebLogic Messaging Bridge
View gist:4cece5f1059c8e1aef167248f0f56038
Failure of server APACHE bridge:
No backend server available for connection: timed out after 10 seconds or idempotent set to OFF or method not idempotent.
You can’t perform that action at this time.