add content
This commit is contained in:
parent
94df7c8562
commit
cc9afc5ffe
140 changed files with 10414 additions and 1 deletions
6
data/home/.local/bin/code
Executable file
6
data/home/.local/bin/code
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -f /usr/bin/codium ]
|
||||
then /usr/bin/codium $@
|
||||
else /usr/bin/code $@
|
||||
fi
|
6
data/home/.local/bin/deno_repl
Executable file
6
data/home/.local/bin/deno_repl
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
ARGS=$(deno --help | grep --only-matching -- '--unstable-[a-z\-]*' | xargs)
|
||||
|
||||
deno repl -A $ARGS
|
||||
|
13
data/home/.local/bin/pick_random
Executable file
13
data/home/.local/bin/pick_random
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env -S deno run
|
||||
|
||||
const { args } = Deno;
|
||||
const { random, floor } = Math;
|
||||
|
||||
function pick_rand(options) {
|
||||
const fac = options.length * random();
|
||||
const index = floor(fac);
|
||||
return options[index];
|
||||
}
|
||||
|
||||
let chosen = pick_rand(args);
|
||||
console.log(`chose '${chosen}'.`);
|
5
data/home/.local/bin/prefix
Executable file
5
data/home/.local/bin/prefix
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
while read line
|
||||
do echo "$@$line"
|
||||
done
|
5
data/home/.local/bin/transcribe
Executable file
5
data/home/.local/bin/transcribe
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
device="$(pactl info | grep 'Default Sink: ' | tuc -d 'Default Sink: ' -f 2)"
|
||||
echo "device: $device"
|
||||
sox --no-show-progress -t pulseaudio $device -d $(pocketsphinx soxflags) | pocketsphinx -
|
Loading…
Add table
Add a link
Reference in a new issue