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 / example.md
Created November 14, 2023 19:53
External TOPSAIL execution
ccamacho@guateque:~/dev/topsail$ ./run_toolbox.py fetch_external_test run ccamacho.automationhub debug main

Using '/tmp/ci-artifacts_20231114' to store the test artifacts.
Using '/tmp/ci-artifacts_20231114/021__fetch_external_test__run' to store extra log files
Using '/tmp/ci-artifacts_20231114/021__fetch_external_test__run/_ansible.log' to store ansible logs.
Using '/tmp/ci-artifacts_20231114/ansible_facts' to store ansible facts.
Using '/home/ccamacho/dev/topsail/config/ansible.cfg' as ansible configuration file.
Using '/tmp/ci-artifacts_20231114/021__fetch_external_test__run/_ansible.log.json' as ansible json log file.
ansible-playbook [core 2.15.6]
@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 / index.html
Created June 2, 2022 11:43
jQuery Accordion with Arrow (No Bootstrap)
<p class="title"><b>No Boostrap</b> | jQueryAnimated Accordions</p>
<div class="container">
<div id="accordion-1">
<div class="head">
<h2>1. Simple Accordion</h2>
<i class="fas fa-angle-down arrow"></i>
</div>
<div class="content">
@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 / pv_example.md
Created September 27, 2020 08:54
example pv/pvc kubeinit

From the service machine run:

# Prepare the share PV folder
mkdir -p /var/nfsshare/test-nfs
chmod -R 777 /var/nfsshare/test-nfs
chown -R nobody:nobody /var/nfsshare/test-nfs

# Create the resources
cat << EOF > ~/test_nfs_pv.yaml
@ccamacho
ccamacho / prereq commands
Last active May 14, 2020 20:04
prereq commands
# If the src or dst project belongs to the src or dst with the admin member it will be able to see all resources from all tenants :(
Before
[ccamacho@ibm-p8-kvm-03-guest-02 openstack]$ openstack --os-cloud dst13 router list
+--------------------------------------+--------------------+--------+-------+----------------------------------+-------------+-------+
| ID | Name | Status | State | Project | Distributed | HA |
+--------------------------------------+--------------------+--------+-------+----------------------------------+-------------+-------+
| 278a3639-5c72-44a7-a51e-bb171e86d4d5 | osm_uch_dst_router | ACTIVE | UP | e6be611bd3064d8d827b037d32cfb68c | False | False |
| 55ae42c4-6778-49e3-8c73-bcbad6eb8c7c | osm_router | ACTIVE | UP | f0954830265b4570bc3a928df3a07b3a | False | False |
| c28cf00d-5b17-4b54-ab12-775bde5e64a1 | osm_uch_src_router | ACTIVE | UP | f0954830265b4570bc3a928df3a07b3a | False