Skip to content

Instantly share code, notes, and snippets.

{
  "displayName": "marvel",
  "indexName": "marvelindex",
  "description": "This is marvel index",
  "size_endpoint_url": "https://a75f9e677275.ngrok.io/size",
  "data_endpoint_url": "https://a75f9e677275.ngrok.io/data",
  "fieldList": [
    {
 "displayName": "Marvel id",
insert  into field_mapping ("altKeys" , "dbKey" , "fieldKey" , "fieldType" , label , "templateId" , visibility , "communityId" )
						values(['w.tisNewField1'], ['pretrialreportdate_date_32f53a6c'], 'w_tisNewField', 'STRING', 'Workkard Tis field1', [0], 'public', 396);
alter table workkards add column "w_tisNewField1" string;
{
  "indexName": "financials",
  "indexId":1,
  "orgId":396,
  "data": [
    {
      "name": "f_marvelString",
      "value": "HawkEye"
 },
{
  "indexName": "financials",
  "indexId":1,
  "orgId":396,
  "data": [
    {
      "w_id": 215126,
      "f_marvelString": "IronMan",
 "f_marvelNumber": 1,
{
  "displayName": "financials",
  "indexName": "financials",
  "description": "This is financials index",
  "size_endpoint_url": "https://a75f9e677275.ngrok.io/size",
  "data_endpoint_url": "https://a75f9e677275.ngrok.io/data",
  "fieldList": [
    {
      "displayName": "Payment Id",
@dhruvpsaru
dhruvpsaru / App.java
Created March 16, 2020 10:05 — forked from nlinker/App.java
Embedded Jetty + Jersey + Guice
package com.vertigo.service.rest.search;
import java.util.EnumSet;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.DefaultServlet;
import org.eclipse.jetty.servlet.ServletContextHandler;
import com.vertigo.service.rest.search.filter.GuiceFilter;
import com.vertigo.service.rest.search.listener.GuiceServletContextListener;

http://askubuntu.com/questions/762198/16-04-lts-wifi-connection-issues

  • Get details of your PCI wireless card by running sudo lshw -class network
  • Get your card model info according to the product line. For instance, as you can see in the question description it says product: RTL8723BE PCIe Wireless Network Adapter so the model of my card is RTL8723BE
  • Open or create /etc/pm/config.d/config and add SUSPEND_MODULES="rtl8723be"(replace rtl8723be with your own model number) Then - run echo "options rtl8723be fwlps=N" | sudo tee /etc/modprobe.d/rtl8723be.conf and reboot.
@dhruvpsaru
dhruvpsaru / shortcut_executable.md
Last active January 29, 2020 11:56
Linux create executable shortcut

For example lets consider that I am going to create shortcut of PyCharm whose sh is /disk2/setups/pycharm-community-2016.1.3/bin/pycharm.sh on ubuntu

  • touch ~/Desktop/py
  • echo "/disk2/setups/pycharm-community-2016.1.3/bin/pycharm.sh &" > ~/Desktop/py
  • cd ~/Desktop
  • chmod u+x py
  • sudo mv py /usr/bin/
  • Press Alt+f2. Enter py
  • pycharm will start
@dhruvpsaru
dhruvpsaru / Undo_and_Redo_ace.md
Last active November 18, 2016 12:16
How to enable undo and redo in ace editor

How to deal with undomanager in ace editor

  • Have under imports
var UndoManager = require("ace/undomanager").UndoManager;
var undoManager = new UndoManager();
  • Then add
 editor.getSession().setUndoManager(this.undoManager);