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
sox -t alsa default ./record.flac silence 1 0.1 1% 2 1.0 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
#!/usr/bin/padsp python | |
import sys | |
import wave | |
import ossaudiodev | |
audiofile = wave.open(sys.argv[1], 'r') | |
(nchannels, sampwidth, framerate, nframes, comptype, compname) = audiofile.getparams() | |
audiofile.setpos(0) |
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
# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line | |
input_remapping_directory = "/opt/retropie/configs/n64/" | |
input_player1_l_x_plus_axis = "+0" | |
input_player1_l_x_minus_axis = "-0" | |
input_player1_l_y_plus_axis = "+1" | |
input_player1_l_y_minus_axis = "-1" | |
input_player1_l2_btn = "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
ffmpeg -ss 18 -i VID_20180421_134758383.mp4 \ | |
-loop 1 -i thriller.png \ | |
-filter_complex "[0:v]fade=out:st=35:d=2,hflip,vflip[myrecord]; \ | |
[1:v]fade=out:st=3:d=1[watermark]; \ | |
[myrecord][watermark]overlay=(W-w)/2:(H-h)/2[v]; \ | |
[0:a]afade=out:st=35:d=2[a]" | |
-map "[v]" -map "[a]" -to 37 thriller.mp4 |
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
{ | |
"ecmaVersion": 6, | |
"libs": [ | |
"browser", | |
"react" | |
], | |
"plugins": { | |
"node": {}, | |
"jsx": {} | |
} |
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 \ | |
-ss 00:00:00.537 -i "GUITARRA HUMANA (Na Gaita - Sanfona) - Bruna Scopel.mp4" \ | |
-ss 00:00:14.456 -i "Guitarra Humana vs Contrabaixo no Forró.mp4" \ | |
-ss 00:00:00.164 -i "Guitarra humana - Veja como fica na guitarra de VERDADE kkkkkkkk.mp4" \ | |
-ss 00:00:00.433 -i "TOCA A PISADINHA 'BOKA ESTÚDIO'.mp4" \ | |
\ | |
-filter_complex \ | |
"[0:v][1:v]hstack[t]; \ | |
[2:v][3:v]hstack[b]; \ | |
[t][b]vstack[v]; \ |
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
nmap -sn 192.168.1-25.* |
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
sudo mkdosfs /dev/mmcblk0 -s 128 -F 32 -I |
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
function Component(elementId, data, propTemplate) { | |
var ctx = this; | |
var container = document.getElementById(elementId); | |
var template = propTemplate || container.innerHTML; | |
this.data = {}; | |
this.setData = this.render = function(option, doRender) { | |
if (Array.isArray(option)) this.data = []; | |
for (var key in option) this.data[key] = option[key]; | |
if (doRender != false) render(); |
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
var path = require('path'); | |
var fs = require('fs'); | |
var express = require('express'); | |
var app = express(); | |
// Load all route files | |
var routes_path = path.join(__dirname, 'routes'); | |
fs.readdirSync(routes_path).forEach((route) => { | |
app.use('/' + route.slice(0,-3), require(routes_path + '/' + route) ); |