Skip to content

Instantly share code, notes, and snippets.

View brsanthu's full-sized avatar

Santhosh brsanthu

View GitHub Profile
https://s3-us-west-2.amazonaws.com/datasert-downloads-prd/realfire/releases/6.0.0/realfire-6.0.0-macosx.cocoa.aarch64.tar.gz
Realfire.app (v5.3.2)
└── Contents
├── Eclipse
│ ├── artifacts.xml
│ ├── configuration
│ │ ├── config.ini
│ │ ├── org.eclipse.equinox.simpleconfigurator
│ │ │ └── bundles.info
│ │ └── org.eclipse.update
│ │ └── platform.xml
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Error Page</title>
<style>
/*! Lightning Design System 2.10.2 */
@charset "UTF-8";
Description: Web Application lambdas
Transform: AWS::Serverless-2016-10-31
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
Version:
Description: Version of this template
Type: String
EnvName:
Description: An environment name that is prefixed to resource names
Type: String
@brsanthu
brsanthu / CombinationImagePainter.java
Created February 28, 2018 17:28
Nattable Combination (Multiple Images) Image Painter
import java.util.ArrayList;
import java.util.List;
import org.eclipse.nebula.widgets.nattable.config.IConfigRegistry;
import org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell;
import org.eclipse.nebula.widgets.nattable.painter.cell.BackgroundPainter;
import org.eclipse.nebula.widgets.nattable.style.CellStyleUtil;
import org.eclipse.nebula.widgets.nattable.style.IStyle;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
@brsanthu
brsanthu / base64ArrayBuffer.js
Created February 21, 2018 01:48 — forked from jonleighton/base64ArrayBuffer.js
Encode an ArrayBuffer as a base64 string
// Converts an ArrayBuffer directly to base64, without any intermediate 'convert to string then
// use window.btoa' step. According to my tests, this appears to be a faster approach:
// http://jsperf.com/encoding-xhr-image-data/5
/*
MIT LICENSE
Copyright 2011 Jon Leighton
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<loginResponse>
<result>
<metadataServerUrl>https://cs18.salesforce.com/services/Soap/m/34.0/00D11000000DMaw</metadataServerUrl>
<passwordExpired>false</passwordExpired>
<sandbox>true</sandbox>
<serverUrl>https://cs18.salesforce.com/services/Soap/u/34.0/00D11000000DMaw</serverUrl>
<sessionId>00D11000000DMaw!AQQAQDaNeywTW68YuLMMssAVkBjRp41VTJ49R35B34MI8zZomQ_IDN_GPlh9iryrsbBAfNJdO7Oqf1r_6jhw.DDdhsGRbB2s</sessionId>
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<loginResponse>
<result>
<metadataServerUrl>https://cs18.salesforce.com/services/Soap/m/34.0/00D11000000DMaw</metadataServerUrl>
<passwordExpired>false</passwordExpired>
<sandbox>true</sandbox>
<serverUrl>https://cs18.salesforce.com/services/Soap/u/34.0/00D11000000DMaw</serverUrl>
<sessionId>00D11000000DMaw!AQQAQDaNeywTW68YuLMMssAVkBjRp41VTJ49R35B34MI8zZomQ_IDN_GPlh9iryrsbBAfNJdO7Oqf1r_6jhw.DDdhsGRbB2s</sessionId>
Third Line
Fourth Line
curl -XGET 'http://localhost:9200/test/_search?pretty=true' -d '{
"query":{
"bool":{
"should": [
{
"constant_score":{
"filter" : {
"query":{
"query_string":{
"query":"findme",