Skip to content

Instantly share code, notes, and snippets.

Update firmware WD Black SN770 firmware on Arch Linux

Been having problems with my new SN770 drive, and decided to check if I can firmware update it on Linux. WD only provides a Windows tool, Western Digital Dashboard to download and install firmwares, but, it's possible to find the firmware and install it using Linux tooling as well.

1. Check that nvme-cli is installed:

❱ sudo pacman -S nvme-cli
@ccamacho
ccamacho / hosts
Created September 2, 2022 13:35 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@ccamacho
ccamacho / ExtractTarGz.cs
Created May 5, 2022 13:38 — forked from ForeverZer0/ExtractTarGz.cs
Use pure C# to extract .tar and .tar.gz files
using System;
using System.IO;
using System.IO.Compression;
using System.Text;
namespace TarExample
{
public class Tar
{
@ccamacho
ccamacho / network-restart.sh
Last active October 28, 2020 18:14 — forked from tachang/network-restart.sh
Cleanly restart the default libvirt network
#!/bin/bash
virsh net-destroy kimgtnet0
virsh net-start kimgtnet0
virsh net-destroy kimgtnet1
virsh net-start kimgtnet1
VMS=$( virsh list | grep '-' | awk '{ print $2; }' )
for guest in $VMS ; do
@ccamacho
ccamacho / tripleo-quickstart
Created October 28, 2020 07:48 — forked from jbadiapa/tripleo-quickstart
Deploy TripleO master with ceph
NO FEATURE
NODES=3ctlr_2comp_3ceph
# modify the ceph nodes memory to 5GB at config/nodes/3ctlr_2comp_3ceph.yml
control_memory: 8192
control_disk: 45
compute_memory: 5120
compute_disk: 50
ceph_memory: 5120
ceph_disk: 55
undercloud_memory: 12288
@ccamacho
ccamacho / deploy-offline-cdk-with-lxd.sh
Created October 12, 2020 14:09 — forked from CalvinHartwell/deploy-offline-cdk-with-lxd.sh
canonical kubernetes offline deployment
#!/usr/bin/env bash
set -e
set -u
## Variables
set_vars(){
APT_MIRROR_HOST="mirror"
LXDKVM_SSTREAM_HOST="mirror"
JUJU_SSTREAM_HOST="mirror"
@ccamacho
ccamacho / .block
Created January 18, 2020 12:39 — forked from nbremer/.block
Self Organizing Map - Hexagonal Heatmap - Lines
license: mit
@ccamacho
ccamacho / jpg-png-optimize.md
Created October 13, 2019 18:37 — forked from w33zy/jpg-png-optimize.md
Optimize your jpg & png images with jpegoptim and optipng on linux

JPG and PNG image bulk optimization

Install jpegoptim and optipng

apt update && apt install jpegoptim optipng -y

JPG optimization

cd /path/to/your/image/folder
@ccamacho
ccamacho / jpg-png-optimize.md
Created October 13, 2019 18:37 — forked from w33zy/jpg-png-optimize.md
Optimize your jpg & png images with jpegoptim and optipng on linux

JPG and PNG image bulk optimization

Install jpegoptim and optipng

apt update && apt install jpegoptim optipng -y

JPG optimization

cd /path/to/your/image/folder
@ccamacho
ccamacho / howto.md
Created September 9, 2018 11:58 — forked from vranystepan/howto.md
Getting Thumbnails / Previews of your RAW files in Fedora 25

Howto

Install these programms

sudo dnf install raw-thumbnailer
sudo dnf install ufraw

Try now if everything works, and your thumbnails show up. If not, try the following part.