with user_count as (
select
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "WebView.h" | |
#include "IntSize.h" | |
#include <emscripten.h> | |
#ifdef DEBUG | |
#include "Logging.h" | |
#include <wtf/text/WTFString.h> | |
#endif | |
#include "cairo.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cairo/cairo.h> | |
#include <cairo/cairo-gl.h> | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_syswm.h> | |
int main(int argc, char* argv[]) { | |
SDL_Init(SDL_INIT_VIDEO); | |
auto win = SDL_CreateWindow("crsl", 300, 300, 512, 512, SDL_WINDOW_OPENGL); | |
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2018 Denis Trofimov ([email protected]) | |
* Distributed under the MIT License. | |
* See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT | |
*/ | |
// TODO: example_http_relay | |
// https://www.boost.org/doc/libs/master/libs/beast/example/doc/http_examples.hpp An HTTP proxy acts | |
// as a relay between client and server. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright (c) 2018 Denis Trofimov ([email protected]) | |
# Distributed under the MIT License. | |
# See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT | |
set -ev | |
# Used to create certs for localhost | |
# Don`t forget to add it to Chromium browser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AWS = require('aws-sdk'); | |
const { AWS: awsConfig } = require('../../config'); | |
AWS.config.update({ | |
accessKeyId: awsConfig.accessKeyId, | |
secretAccessKey: awsConfig.secretAccessKey, | |
region: awsConfig.region | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i local-video.mp4 -c:v libvpx -b:v 1M -c:a libvorbis output.webm | |
ffmpeg -i local-video.mp4 -c:v libtheora -q:v 7 -c:a libvorbis -q:a 4 output.ogv | |
https://superuser.com/questions/1096841/how-do-i-convert-mp4-to-ogv-while-still-retaining-the-same-quality-using-ffmpeg | |
https://askubuntu.com/questions/351593/bulk-batch-convert-mp4-and-m4v-files-to-webm-via-command-line |
I hereby claim:
- I am derofim on github.
- I am dentrof (https://keybase.io/dentrof) on keybase.
- I have a public key ASAr7krvUpMUgebEWuoTz-PA16kr3PZA4gTZXxXo_f_K8wo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
urls=( | |
"YOUR URL 1" | |
"YOUR URL 2" | |
) | |
for (( i = 0; i < ${#urls[@]}; ++i )); do | |
# create filename based on url. | |
filename=`echo ${i}.mp4` | |
echo "downloading ${urls[i]} to $filename" | |
curl -s -o "$filename" "${urls[i]}" |
NewerOlder