These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.
| # Upgrade / Update outdated casks installed. | |
| # -------------------------------------------------------------------------------- | |
| # Looks for outdated casks and installs the the latest version. | |
| # User data (like application preferences) is intact. | |
| # Updated one liner (thanks Henrik242) | |
| # -------------------------------------------------------------------------------- | |
| brew upgrade $(brew outdated --cask --greedy --quiet) | |
- first find when we have actual state found give big timeout because it can take a bit of time
$ cast rpc --rpc-timeout=9999999999 --rpc-url=localhost:3545 debug_getAccessibleState $(cast
to-hex START_BLOCK) $(cast to-hex END_BLOCK)
where START_BLOCK is the beginning the search and END_BLOCK is the end of the search
- Get the block hash and rewind the chain to it
The instructions were tested on a Lenovo X1 Carbon 5th Gen (X1C5) on Arch Linux but should be applicable to other Lenovo models and Linux distributions.
BACKUP YOUR DATA! I created a bootable Ubuntu Image like this:
$ sudo sh -c 'curl --location --silent --fail "http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso" | pv > /dev/<your-usb-drive>'
# note that pv is only there to show progress, it is perfectly fine to redirect curl to the usb drive directly.then I booted from this drive by pressing F12 on reboot and dumped my NVMe disk to an external hard drive like this:
CentOS, Ubuntu, Slackware, etc. Whatever Linux-based OS it is, you can create a bootable USB for it by using a Mac.
Download it, copy it, whatever it takes to prepare that Linux-based OS .iso file
| lslbk # find drives to add (eg /dev/nvmeXn1) | |
| pvcreate /dev/nvme1n1 | |
| pvcreate /dev/nvme2n1 | |
| pvcreate /dev/nvme3n1 | |
| pvcreate /dev/nvme4n1 | |
| vgcreate vg1 /dev/nvme1n1 /dev/nvme2n1 /dev/nvme3n1 /dev/nvme4n1 | |
| lvcreate --type=raid0 -l100%FREE -n rd1 vg1 | |
| mkfs.ext4 /dev/vg1/rd1 | |
| mkdir /storage #customize your mount point | |
| echo '/dev/vg1/rd1 /storage ext4 defaults 0 0' >> /etc/fstab |
Using newer compiler versions and the optimizer gives gas optimizations and additional safety checks for free!
The advantages of versions 0.8.* over <0.8.0 are:
- Safemath by default from
0.8.0(can be more gas efficient than some library based safemath). - Low level inliner from
0.8.2, leads to cheaper runtime gas. Especially relevant when the contract has small functions. For
| // | |
| // FileHandle+Z.swift | |
| // ZKit | |
| // | |
| // The MIT License (MIT) | |
| // | |
| // Copyright (c) 2016 Electricwoods LLC, Kaz Yoshikawa. | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal |
| // Logiops (Linux driver) configuration for Logitech MX Master 3. | |
| // Includes gestures, smartshift, DPI. | |
| // Tested on logid v0.2.2-35-g1c209ed. | |
| // File location: /etc/logid.cfg | |
| devices: ({ | |
| name: "Wireless Mouse MX Master 3"; | |
| smartshift: { |
Build in CMake with these params:
CMAKE_CXX_FLAGS:STRING= -fsanitize=address -fsanitize=leak -g
CMAKE_C_FLAGS:STRING=-fsanitize=address -fsanitize=leak -g
CMAKE_EXE_LINKER_FLAGS:STRING=-fsanitize=address -fsanitize=leak
CMAKE_MODULE_LINKER_FLAGS:STRING=-fsanitize=address -fsanitize=leak
Which can be done with: