Skip to content

Instantly share code, notes, and snippets.

View joshtrichards's full-sized avatar

Josh joshtrichards

View GitHub Profile
@joshtrichards
joshtrichards / Lenovo Thinkcentre M92P.txt
Created January 18, 2023 17:28 — forked from vees/Lenovo Thinkcentre M92P.txt
Ubuntu and UEFI on Lenovo Thinkcentre M92P
Lenovo Thinkcentre M92P
When booting to USB installer disk installation proceeds as expected
1962 no operating system found
When booting into preview mode all disks load without issue, so its not the cable
Secure Boot option either not present or disabled
Last time I fixed this by adding a fake line to the boot loader from instructions on the web
Got a warning during installation about UEFI mode
Windows Fast Startup disabled
here's a list of prerequisites to run pc in uefi mode, like:
@joshtrichards
joshtrichards / bw-cli-tidbits.md
Last active February 22, 2023 16:57
Some useful Bitwarden CLI entry searching/reporting tidbits

Find all entries that have integrated TOTP configured:

bw list items | jq '.[] | select(.login.totp != null)'

Calculate how many entries have integrated TOTP configured:

bw list items | jq '.[] | select(.login.totp != null)' | jq -s length

Find all entries that don't have integrated TOTP configured:

@joshtrichards
joshtrichards / nc-redis-unixsockets.md
Last active September 1, 2023 11:55
Performance boost by using Redis via UNIX sockets (instead of TCP) + Debian base (versus Alpine)
@joshtrichards
joshtrichards / nginx-php-auth-testing.md
Created March 8, 2023 00:43
nginx auth_basic + auth_request interaction testing

My latest test config is below, but I also worked with many variations. My htpasswd-foo-foo has one entry: foo with pw foo. My php-auth.php script also accepts bar / bar.

Included below if you want to steal to test in your own environment against your browser/extension installation. If you see your reported issue against this I suspect that'll be telling that it is something unique to your browser setup interacting with BW.

http {

        server {
                listen 8080;
@joshtrichards
joshtrichards / WebDAV-Small-Files-Perf.md
Last active October 2, 2023 12:24
WebDAV Client Small Files Performance Testing

Rankings

Results, ranked so far (executed via unix time command where possible; balance based on wall clock observation cross-verified with log files):

  1. Cyberduck: 12 seconds (!!!)
  2. cURL + NC's Bulk File API: 50 seconds
  3. Duck.sh: 1 minute 10 seconds
  4. cURL (parallel mode aka -Z): 2 minutes 20 seconds
  5. Windows 10: 4 minutes 45 seconds
  6. Rclone: 7 minutes 41 seconds