Skip to content

Instantly share code, notes, and snippets.

View mrtnpar's full-sized avatar
🏠
Working from home

Martín Paredes mrtnpar

🏠
Working from home
View GitHub Profile
@mrtnpar
mrtnpar / machine.js
Created August 13, 2021 05:44
Generated by XState Viz: https://xstate.js.org/viz
const expMachine = Machine({
id: 'experiments',
type: 'parallel',
context: {
a: true,
b: false,
c: true,
d: true
},
states: {
nmap -T5 -n -p 80 --open --min-parallelism 200 192.168.1.0/24
nmap -T5 -n -p 22 --open --min-parallelism 200 192.168.1.0/24
<!DOCTYPE html>
<script>window.times = {start: new Date};</script>
<link href="/application.css" rel="stylesheet">
<script src="/application.js"></script>
root = true
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_size = 2
indent_style = space
@mrtnpar
mrtnpar / gist:3667926
Last active February 8, 2023 11:45
Cut first 30 seconds of a MP3 file
ffmpeg -t 30 -acodec mp3 -i inputfile.mp3 outputfile.mp3
sox infile.wav outfile.mp3 trim 01:40 120 fade h 0:5 0 0:5
@mrtnpar
mrtnpar / gist:1259702
Created October 3, 2011 17:36
Encoding mp3 files
ls *.wav|xargs -n1 -P4 -i lame -h {} {}.mp3
@mrtnpar
mrtnpar / gist:1200699
Created September 7, 2011 14:24
Create Large 1GB Binary Image File With dd Command
# 1MB
dd if=/dev/zero of=test.img bs=1024 count=0 seek=1024
# 10MB
dd if=/dev/zero of=test.img bs=1024 count=0 seek=$[1024*10]
# 100MB
dd if=/dev/zero of=test.img bs=1024 count=0 seek=$[1024*100]
# 10BG