Skip to content

Instantly share code, notes, and snippets.

View theredfish's full-sized avatar
🐟
git checkout indiedevcasts

Julian theredfish

🐟
git checkout indiedevcasts
View GitHub Profile
@theredfish
theredfish / Dockerfle
Last active August 21, 2019 07:49
A reproductible EPROTO error with selenium-webdriver in javascript
FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf
@theredfish
theredfish / sharex-ffmepg-rode-nt-usb
Created November 11, 2018 17:34
ShareX ffmpeg command
-y -rtbufsize 100M -f gdigrab -framerate $fps$ -offset_x $area_x$ -offset_y $area_y$ -video_size $area_width$x$area_height$ -draw_mouse $cursor$ -i desktop -f dshow -i audio="Microphone (RODE NT-USB)" -f dshow -i audio="virtual-audio-capturer" -filter_complex amix=inputs=2 -c:v libx264 -r $fps$ -preset fast -tune zerolatency -crf 28 -pix_fmt yuv420p -movflags +faststart -c:a aac -strict -2 -ac 2 -b:a 128k "$output$"
@theredfish
theredfish / form_array_params_de.rs
Created September 22, 2018 12:15
Example of serde_qs with an array of form parameters
extern crate serde_qs as qs;
#[macro_use] extern crate serde_json;
#[macro_use] extern crate serde_derive;
#[derive(Debug, Deserialize, Serialize, PartialEq)]
pub struct Person {
pub firstname: String,
pub lastname: String,
pub checkboxes: Vec<u32>,
}
@theredfish
theredfish / composition.js
Last active September 7, 2018 14:52
Composition in js
function display_param(fn, param) {
console.log(fn(param));
}
function add_x_to_param(param) {
return param+"x";
}
display_param(add_x_to_param, "yolo_swag_");
@theredfish
theredfish / get-block-devices.sh
Created September 18, 2017 09:01
Get block devices with their name, type(part, disk, rom, ...), size and model's name
#!/bin/bash
lsblk -io KNAME,TYPE,SIZE,MODEL