Skip to content

Instantly share code, notes, and snippets.

View VRDate's full-sized avatar
💻

Tomer Bar-Shlomo VRDate

💻
View GitHub Profile
@VRDate
VRDate / countries.sql
Last active February 9, 2016 10:42 — forked from adhipg/countries.sql
Sql dump of all the Countries, Country Codes, Phone codes.
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
@VRDate
VRDate / selenium_curl.sh
Created December 14, 2016 14:52 — forked from prashanthrajagopal/selenium_curl.sh
Run Selenium test via curl
s_id=`curl -X POST http://127.0.0.1:4444/wd/hub/session -d '{"desiredCapabilities":{"browserName":"firefox","platform":"MAC"}}'|awk -F'"' '{print $6}'`
curl -X POST http://127.0.0.1:4444/wd/hub/session/$s_id/url -d '{"url":"http://www.google.com"}'
curl -X POST http://127.0.0.1:4444/wd/hub/session/$s_id/element -d '{"using":"id","value":"gbqfq"}'
curl -X POST http://127.0.0.1:4444/wd/hub/session/$s_id/element/0/value -d {"value":["selenium"]}
curl -X POST http://127.0.0.1:4444/wd/hub/session/$s_id/element -d '{"using":"id","value":"gbqfb"}'
curl -X POST http://127.0.0.1:4444/wd/hub/session/$s_id/element/1/click
curl -X DELETE http://127.0.0.1:4444/wd/hub/session/$s_id/window
@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
@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 / 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 / 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 / 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 / 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 / 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 / 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
{