Skip to content

Instantly share code, notes, and snippets.

View stevenbg's full-sized avatar

Stefan stevenbg

  • Sofia, Bulgaria
View GitHub Profile
@stevenbg
stevenbg / oculusgo.bat
Created September 21, 2020 13:07
convert video with ffmpeg to the best quality playable by oculus go
ffmpeg -i %1 -vf "scale=w=-2:h='min(2400,ih)':sws_flags=spline+accurate_rnd:in_range=tv:out_range=tv" -c:v libx264 -colorspace bt709 -color_trc bt709 -color_primaries bt709 -color_range tv -crf 17 -preset slow -tune film -x264-params mvrange=511 -pix_fmt yuv420p -c:a copy -movflags +faststart "%~dpn1-downscaled%~x1"
@stevenbg
stevenbg / account-info.js
Created July 12, 2018 17:56
XRP wallet for coders
// get account info (balance)
'use strict';
const RippleAPI = require('ripple-lib').RippleAPI;
const api = new RippleAPI({
server: 'wss://s1.ripple.com' // Public rippled server
});
api.connect().then(() => {
// set your address
@stevenbg
stevenbg / bla.py
Last active August 24, 2017 14:29
import sys
from ibapi.contract import *
from ibapi.order import Order
from ibapi import wrapper
from ibapi.client import EClient
contract = Contract()
contract.symbol = "SIE"
contract.secType = "STK"