Skip to content

Instantly share code, notes, and snippets.

View VRDate's full-sized avatar
💻

Tomer Bar-Shlomo VRDate

💻
View GitHub Profile
@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;
@VRDate
VRDate / install-mono-centos.sh
Created September 7, 2017 13:43 — forked from herberthamaral/install-mono-centos.sh
Install mono-complete from xamarin repositories on CentOS 7.1 x64 (probably works for other versions)
echo "[xamarin]" > /etc/yum.repos.d/xamarin.repo
echo "name=Xamarin" >> /etc/yum.repos.d/xamarin.repo
echo "baseurl=http://download.mono-project.com/repo/centos/" >> /etc/yum.repos.d/xamarin.repo
echo "enabled=1" >> /etc/yum.repos.d/xamarin.repo
echo "gpgcheck=1" >> /etc/yum.repos.d/xamarin.repo
echo "gpgkey=http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" >> /etc/yum.repos.d/xamarin.repo
yum update
yum install mono-complete