Command Flags
Flag | Options | Description |
---|---|---|
-codec:a |
libfaac, libfdk_aac, libvorbis | Audio Codec |
-quality |
best, good, realtime | Video Quality |
-b:a |
128k, 192k, 256k, 320k | Audio Bitrate |
-codec:v |
mpeg4, libx264, libvpx-vp9 | Video Codec |
// paste this file on a empty directory | |
// npm i axios | |
// You should go to your browser on Cookie session and get JSESSIONID and li_at from Linkedin Section | |
const JSESSIONID = 'YOUR JSESSIONID' | |
const liAT = 'YOUR li_at' | |
import axios from 'axios' | |
const headers = { |
const ESC_INIT = [0x1b, 0x40]; | |
const ESC_BIT_IMAGE = [0x1b, 0x2a] | |
const DOTS_DENSITY = 24 | |
const LUMINANCE = { | |
RED: 0.299, | |
GREEN: 0.587, | |
BLUE: 0.114 | |
} | |
const LINE_FEED = 0x0a; |
# Author: Zameer Ansari | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls | |
# http://wiki.nginx.org/QuickStart | |
# http://wiki.nginx.org/Configuration | |
# | |
# Generally, you will want to move this file somewhere, and start with a clean | |
# file but keep this around for reference. Or just disable in sites-enabled. | |
# |
Command Flags
Flag | Options | Description |
---|---|---|
-codec:a |
libfaac, libfdk_aac, libvorbis | Audio Codec |
-quality |
best, good, realtime | Video Quality |
-b:a |
128k, 192k, 256k, 320k | Audio Bitrate |
-codec:v |
mpeg4, libx264, libvpx-vp9 | Video Codec |
const times = ( i ) => ( vlr ) => i * vlr | |
const mod11 = ( num ) => num % 11 | |
const times10 = ( num ) => times( 10 )( num ) | |
const isEqual = ( a ) => ( b ) => b === a | |
const isNotEqual = ( a ) => ( b ) => !( isEqual( a )( b ) ) | |
const getDigit = ( cpf ) => cpf.charAt( 9 ) + cpf.charAt( 10 ) | |
const getGeneratedDigit = ( sum1, sum2 ) => times10( sum1 ) + sum2 | |
const generateStringSequence = ( tam ) => ( num ) => `${num}`.repeat( tam ) | |
const gerenateArray = ( length ) => Array.from( { length }, ( v, k ) => k ) |
Create file /etc/systemd/system/[email protected]
. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin
, you should use paths specific for your environment.
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# This is how I used it: | |
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history | |
import sys | |
import time |
/** | |
* Remove acentos de strings | |
* @param {String} string acentuada | |
* @return {String} string sem acento | |
*/ | |
var map={"â":"a","Â":"A","à":"a","À":"A","á":"a","Á":"A","ã":"a","Ã":"A","ê":"e","Ê":"E","è":"e","È":"E","é":"e","É":"E","î":"i","Î":"I","ì":"i","Ì":"I","í":"i","Í":"I","õ":"o","Õ":"O","ô":"o","Ô":"O","ò":"o","Ò":"O","ó":"o","Ó":"O","ü":"u","Ü":"U","û":"u","Û":"U","ú":"u","Ú":"U","ù":"u","Ù":"U","ç":"c","Ç":"C"}; | |
function removerAcentos(s){ return s.replace(/[\W\[\] ]/g,function(a){return map[a]||a}) }; |
/** | |
* Copy of Excel's PMT function. | |
* Credit: http://stackoverflow.com/questions/2094967/excel-pmt-function-in-js | |
* | |
* @param rate_per_period The interest rate for the loan. | |
* @param number_of_payments The total number of payments for the loan in months. | |
* @param present_value The present value, or the total amount that a series of future payments is worth now; | |
* Also known as the principal. | |
* @param future_value The future value, or a cash balance you want to attain after the last payment is made. | |
* If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0. |
set serveroutput on; | |
declare | |
raw_guid raw(16); | |
guid varchar2(64); | |
begin | |
raw_guid := guid_to_raw ('88c6a267-65d2-48d6-8da2-6f45e2c22726'); | |
guid := raw_to_guid('67A2C688D265D6488DA26F45E2C22726'); | |