Skip to content

Instantly share code, notes, and snippets.

View matylla's full-sized avatar

Przemek Matylla matylla

View GitHub Profile
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-color.md
Last active August 29, 2022 15:54
GLSL color functions

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 April 29, 2014 16:56
NodeJS upload file to Softlayer Object Storage Container
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 March 26, 2012 17:05
Backup MySQL to Amazon S3

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