This file contains 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
yum -y update | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
yum -y install yum-utils device-mapper-persistent-data lvm2 docker-ce | |
systemctl start docker | |
systemctl enable docker | |
yum -y install epel-release | |
yum -y install python-pip | |
pip install docker-compose | |
# pip install --upgrade pip | |
yum -y install wget unzip git |
This file contains 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 -f lavfi -i color=black:s=7680x4320:r=120 -preset ultrafast -t 60 8k120fps.mp4 | |
ffmpeg version N-94664-g0821bc4eee Copyright (c) 2000-2019 the FFmpeg developers | |
built with gcc 9.1.1 (GCC) 20190807 | |
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --en |
This file contains 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 -f lavfi -i color=white:s=1920x1080:r=1 -preset ultrafast -t 60 -vf "drawtext=text='Full HD (1920x1080)':enable='between(t,0,20)':fontcolor=red:fontsize=124:x=(w-tw)/2:y=20, drawtext=text='Full HD (1920x1080)':enable='between(t,5,25)':fontcolor=blue:fontsize=124:x=(w-tw)/2:y=200, drawtext=text='Full HD (1920x1080)':enable='between(t,10,30)':fontcolor=green:fontsize=124:x=(w-tw)/2:y=380, drawtext=text='Full HD (1920x1080)':enable='between(t,15,35)':fontcolor=yellow:fontsize=124:x=(w-tw)/2:y=560, drawtext=text='Full HD (1920x1080)':enable='between(t,20,40)':fontcolor=pink:fontsize=124:x=(w-tw)/2:y=740, drawtext=text='Full HD (1920x1080)':enable='between(t,25,45)':fontcolor=cyan:fontsize=124:x=(w-tw)/2:y=920" _.mp4 | |
ffmpeg version N-94664-g0821bc4eee Copyright (c) 2000-2019 the FFmpeg developers | |
built with gcc 9.1.1 (GCC) 20190807 | |
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable- |
This file contains 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 -f lavfi -i color=white:s=1920x1080:r=1 -preset ultrafast -t 60 -vf " drawtext=text='You will':enable='between(t,0,60)':fontcolor=red:fontsize=124:x=10:y=20, drawtext=text='You will hear a':enable='between(t,5,60)':fontcolor=red:fontsize=124:x=10:y=20, drawtext=text='You will hear a reverse':enable='between(t,10,60)':fontcolor=red:fontsize=124:x=10:y=20, drawtext=text='You will hear a reverse cymbal':enable='between(t,15,60)':fontcolor=blue:fontsize=124:x=10:y=20, drawtext=text='In 5 secs...':enable='between(t,25,60)':fontcolor=cyan:fontsize=124:x=(w-tw)/2:y=220" clip.mp4 | |
ffmpeg -y -i clip.mp4 -itsoffset 00:00:30 -i cymb.mp3 -map 0:0 -map 1:0 -c:v copy -preset ultrafast -async 1 clipWsound.mp4 |
This file contains 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
<html> | |
<head> | |
<style> | |
#map_canvas { | |
width: 100%; | |
height: 100vh; | |
} | |
</style> | |
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> | |
<script> |
This file contains 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<profiles version="13"> | |
<profile kind="CodeFormatterProfile" name="GoogleStyle adaptation by jvilaca@gmail.com" version="1.0.0"> | |
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/> |
This file contains 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
from bidict import bidict | |
from django.core.exceptions import ValidationError | |
from django.core.validators import URLValidator | |
from flask import Flask, request, redirect | |
from flask_restful import Resource, Api | |
from random import randrange | |
class Redirects(Resource): | |
def get(self, short): |
This file contains 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
#ifndef ILI9341_H_ | |
#define ILI9341_H_ | |
#include <msp430.h> | |
#define RES BIT0 // P1.0 | |
#define SCLK BIT5 // P1.5 | |
#define CS BIT4 // P1.4 | |
#define DC BIT6 // P1.6 | |
#define SDIN BIT7 // P1.7 |
This file contains 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
package main | |
// to run: | |
// launch mongodb container: docker run -p 27017:27017 --name local-dev-mongodb -d mongo:latest | |
// start service: go run main.go | |
import ( | |
"context" | |
"log" | |
"net/http" |
This file contains 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
import java.io.InputStream; | |
import java.io.Reader; | |
import java.math.BigDecimal; | |
import java.net.URL; | |
import java.sql.Array; | |
import java.sql.Blob; | |
import java.sql.Clob; | |
import java.sql.Date; | |
import java.sql.NClob; |