Skip to content

Instantly share code, notes, and snippets.

View VRDate's full-sized avatar
💻

Tomer Bar-Shlomo VRDate

💻
View GitHub Profile
@VRDate
VRDate / SelfHostOpenStreetMapDocker.md
Created September 18, 2024 00:04 — forked from jbaranski/SelfHostOpenStreetMapDocker.md
How to self host an Open Street Map server (using Docker)

Here are the steps needed to run a self hosted Open Street Map server (using Docker):

  1. Download desired pbf files (like south-carolina-latest.osm.pbf) from https://download.geofabrik.de or just use the following empty planet below:

    
      <?xml version='1.0' encoding='UTF-8'?>
      <osm version="0.6" generator="osmconvert 0.8.8" timestamp="2019-10-23T20:18:02Z">
        <bounds minlat="42.4276" minlon="1.412368" maxlat="42.65717" maxlon="1.787481"/>
      </osm>
    
@VRDate
VRDate / curl-websocket.sh
Created January 14, 2022 17:40 — forked from htp/curl-websocket.sh
Test a WebSocket using curl.
curl --include \
--no-buffer \
--header "Connection: Upgrade" \
--header "Upgrade: websocket" \
--header "Host: example.com:80" \
--header "Origin: http://example.com:80" \
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
--header "Sec-WebSocket-Version: 13" \
http://example.com:80/
@VRDate
VRDate / ResizeWithSkia.cs
Created July 6, 2020 02:53 — forked from xoofx/ResizeWithSkia.cs
Resize an image and draw some overlay text with SkiaSharp
// You need to configure your C# project with x86 or x64 platform (Tools\Configuration Manager\Create new Platform on the project)
// otherwise the native libSkiaSharp.dll will not get copied
using System;
using System.IO;
using SkiaSharp;
namespace TestSkia
{
class Program
{
@VRDate
VRDate / ResizeWithSkia.cs
Created July 6, 2020 02:53 — forked from xoofx/ResizeWithSkia.cs
Resize an image and draw some overlay text with SkiaSharp
// You need to configure your C# project with x86 or x64 platform (Tools\Configuration Manager\Create new Platform on the project)
// otherwise the native libSkiaSharp.dll will not get copied
using System;
using System.IO;
using SkiaSharp;
namespace TestSkia
{
class Program
{
@VRDate
VRDate / conver.pe
Created July 21, 2019 15:00 — forked from endel/conver.pe
FontForge script to convert .ttf file to its webfont variations (.otf, .svg, .woff, .woff2)
#!/usr/local/bin/fontforge
Open($1)
Generate($1:r + ".otf")
Generate($1:r + ".svg")
Generate($1:r + ".woff")
Generate($1:r + ".woff2")
@VRDate
VRDate / spatial.txt
Created June 17, 2019 19:11 — forked from lassewesth/gist:3774902
Spatial example
package spatial;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.test.ImpermanentGraphDatabase;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.neo4j.annotation.GraphId;
@VRDate
VRDate / ImageMagick.cs
Created July 24, 2018 02:25 — forked from unitycoder/ImageMagick.cs
Using ImageMagick with Unity
// using ImageMagick with unity : http://1darray.com/blog/2017/01/27/using-imagemagick-with-unity/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ImageMagick;
public class ImageMagickTest : MonoBehaviour
{
void Start()
@VRDate
VRDate / keybase.md
Last active February 6, 2018 19:14
keybase.md

Keybase proof

I hereby claim:

  • I am vrdate on github.
  • I am tomar (https://keybase.io/tomar) on keybase.
  • I have a public key ASCywDsiVH1YceyxkKIDWs9l6J75ldJBLUqXCE_hggio0Qo

To claim this, I am signing this object:

@VRDate
VRDate / BextChunkInfo.cs
Created December 4, 2017 20:55 — forked from markheath/BextChunkInfo.cs
Creating RF64 and BWF WAV Files with NAudio
using System;
namespace NAudioUtils
{
// https://tech.ebu.ch/docs/tech/tech3285.pdf
class BextChunkInfo
{
public BextChunkInfo()
{
//UniqueMaterialIdentifier = Guid.NewGuid().ToString();
@VRDate
VRDate / Motempl.java
Created November 7, 2017 09:44 — forked from b95505017/Motempl.java
Java version of motion detection sample using OpenCV, referenced from motempl.c. The functionality of showing the output is using Processing.
import org.opencv.core.*;
import org.opencv.highgui.Highgui;
import org.opencv.highgui.VideoCapture;
import processing.core.PApplet;
import processing.core.PConstants;
import processing.core.PImage;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.InputStream;