Skip to content

Instantly share code, notes, and snippets.

Avatar

Przemek Matylla matylla

View GitHub Profile
View GLSL-color.md

RGB - YUB

mat3 yuv2rgb = mat3(1.0, 0.0, 1.28033, 1.0, -0.21482, -0.38059, 1.0, 2.12798, 0.0);
mat3 rgb2yuv = mat3(0.2126, 0.7152, 0.0722, -0.09991, -0.33609, 0.43600, 0.615, -0.5586, -0.05639);

RGB - HSV

@talentedmrjones
talentedmrjones / softlayer-objectstorage-upload.js
Created Apr 29, 2014
NodeJS upload file to Softlayer Object Storage Container
View softlayer-objectstorage-upload.js
var
fs = require('fs'),
path = '/path/to/example.txt',
stat = fs.statSync(path), // so we can get file size
request = require('request'), // npm install request
authEndpoint = 'https://dal05.objectstorage.softlayer.net/auth/v1.0/', // region specific endpoint
apiKey = "your Api Key",
user = "your Username",
container = "your container",
filename = "example.txt"
@oodavid
oodavid / README.md
Created Mar 26, 2012
Backup MySQL to Amazon S3
View README.md

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc

You can’t perform that action at this time.