A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
# Microphone Realtime background noise reduction script | |
# author Luigi Maselli - https://grigio.org licence: AS-IS | |
# credits: http://askubuntu.com/questions/18958/realtime-noise-removal-with-pulseaudio | |
# run as: sudo && pulseaudio -k | |
# wget -qO - https://gist.github.com/adrianolsk/bfa32f3227dc674eff72a2008f6c0316 | sudo bash && pulseaudio -k | |
sudo cp /etc/pulse/default.pa /etc/pulse/default.pa.bak | |
sudo cat <<EOT >> /etc/pulse/default.pa | |
load-module module-echo-cancel source_name=noechosource sink_name=noechosink |
-- Adapted from information_schema.columns | |
SELECT | |
c.oid :: int8 AS table_id, | |
nc.nspname AS schema, | |
c.relname AS table, | |
(c.oid || '.' || a.attnum) AS id, | |
a.attnum AS ordinal_position, | |
a.attname AS name, | |
CASE |
import java.util.Scanner; | |
public class Cesar { | |
public static void main(String[] args) { | |
Scanner teclado = new Scanner(System.in); | |
char[] mapa = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray(); | |
int chave = 26; | |
while (chave < 0 || chave > 25) { |
import java.util.Scanner; | |
public class CifraROT13 { | |
public static void main(String[] args) { | |
char[] mapa = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray(); | |
int chave = 13; | |
Scanner teclado = new Scanner(System.in); | |
System.out.println("ROT13"); |
import java.util.Scanner; | |
public class Rot13 { | |
public static void main(String[] args) { | |
Scanner teclado = new Scanner(System.in); | |
char[] mapa = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray(); | |
int chave = 13; | |
System.out.println("ROT13"); | |
while(true){ |
addEventListener("fetch", (event) => { | |
console.log("Req", event.request) | |
event.respondWith( | |
new Response("Hello world", { | |
status: 200, | |
headers: { | |
server: "deploy", | |
"content-type": "text/plain", | |
}, | |
}), |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
import sys | |
import time | |
cols = 59 | |
steps = 100 | |
if len(sys.argv) > 2: | |
steps = int(sys.argv[1]) | |
for s in range(steps): |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner teclado = new Scanner(System.in); | |
char c1 = '1', c2 = '2', c3 = '3', | |
c4 = '4', c5 = '5', c6 = '6', | |
c7 = '7', c8 = '8', c9 = '9'; | |
char jogadorAtual = 'X'; |