1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

adding more scripts

This commit is contained in:
Henrik Hautakoski 2024-06-23 16:13:49 +02:00
parent a30cf769bf
commit 186f877da8
2 changed files with 6 additions and 0 deletions

2
scripts/fix_redis_json Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
sed 's/\\\"/"/g'

4
scripts/randomhex Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
head -c$1 </dev/urandom|xxd -ps | sed 's/.\{32\}/&\n/g' | sed 's/.\{2\}/0x&, /g'