Skip to content

Instantly share code, notes, and snippets.

@eransharv
eransharv / manifest.json
Created May 1, 2019 23:22
Here is the base version of the Overwolf manifest.json file:
{
"manifest_version": 1,
"type": "WebApp",
"meta": {
"name": "Demo_App",
"version": "1.0.0",
"author": "Developer_Name",
"icon": "IconMouseOver.png",
"icon_gray": "IconMouseNormal.png",
"description": "Demo App"
@eransharv
eransharv / overwolf-manifest-schema.json
Last active September 9, 2019 10:13
Validate your Overwolf manifest file against this schema, to check if it is correct and complete. (tested and verified on Overwolf v127)
{
"title": "my first schema test for overwolf apps manifest",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"id": "http://overwolf.com/schemas/myschema.json",
"required": [
"manifest_version",
"type",
"meta",
"data"
@eransharv
eransharv / RedissonSSL.java
Created June 14, 2017 08:31
java Redisson redis client example using SSL
Config config = new Config();
config.useSingleServer()
.setAddress("rediss://redis-10928.c10.us-east-1-3.ec2.cloud.redislabs.com:10928")
.setSslKeystore(URI.create("file:/C:/Devel/projects/redisson/JedisSSL.p12"))
.setSslKeystorePassword("test1234")
.setSslTruststore(URI.create("file:/C:/Devel/projects/redisson/keystore.jks"))
.setSslTruststorePassword("test1234");
RedissonClient redisson = Redisson.create(config);
RBucket<String> bucket = redisson.getBucket("foo");
@eransharv
eransharv / RedisStore.cs
Last active July 9, 2020 09:13
how to connect to redis using stackexchange.redis with singelton object
using StackExchange.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloRedis
{
//For better modulation of Redis it is recommended to store ConnectionMultiplexer as a static singleton in your application.
@eransharv
eransharv / stackexchange_example.cs
Last active June 14, 2017 07:50
simple code example on how to connect to redis using StackExchange.redis
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StackExchange.Redis;
using System.Diagnostics;
namespace HelloRedis
{
@eransharv
eransharv / Publisher.java
Created January 5, 2017 09:41
Test scripts for redis pubsub feature. You can define the numbers of subscribers and channels, as well as other configurations.
package RedisPubSubMulti;
import java.util.concurrent.TimeUnit;
import redis.clients.jedis.Jedis;
public class Publisher extends Thread{
private Thread t;
private String h;