Skip to content

Instantly share code, notes, and snippets.

@chrisbward
chrisbward / getmusic.sh
Created October 22, 2020 09:02
youtube-dl music
#!/bin/bash
# you will need to have youtube-dl (pip) and dialog (apt-get) installed
exec 3>&1;
result=$(dialog --title 'youtube-dl music downloader' --inputbox 'enter youtube url' 0 0 2>&1 1>&3);
exitcode=$?;
exec 3>&-;
# echo $result $exitcode;
youtube-dl -f bestaudio --extract-audio --audio-format mp3 --audio-quality 0 $result
@chrisbward
chrisbward / test.js
Created October 28, 2020 14:16
Interview Exercise
/*
Description:
Write a script that creates an array with 10000 random words between 3 and 5 characters, and returns the number of words that are palindromes in that array;
Notes:
The code needs to be in javascript
You’ll need to return just the number of words
You have 30 mins, if you run out of time, submit the form anyway.
Once you click “Start” you cannot pause the countdown
Don’t delete the main function
@chrisbward
chrisbward / RTX_3090_ti_ATI_Gaming_X_Trio_v6.2.3.Benchmark
Created June 7, 2022 17:11
Hashcat Benchmarks for GeForce RTX™ 3090 Ti GAMING X TRIO 24G
Hashcat Benchmarks for GeForce RTX™ 3090 Ti GAMING X TRIO 24G
---
hashcat (v6.2.3) starting in benchmark mode
clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR
* Device #1: WARNING! Kernel exec timeout is not disabled.