Just a brief explanation of some of the command line functionality from gnu privacy guard (gpg).
-- Originaly from http://irtfweb.ifa.hawaii.edu/~lockhart/gpg/ (no relation)
gpg --gen-key
generally you can select the defaults.
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] | |
| "RealTimeIsUniversal"=dword:00000001 |
| ¯\_(ツ)_/¯ |
Just a brief explanation of some of the command line functionality from gnu privacy guard (gpg).
-- Originaly from http://irtfweb.ifa.hawaii.edu/~lockhart/gpg/ (no relation)
gpg --gen-key
generally you can select the defaults.
| #include <SparkFun_ADXL345.h> | |
| #include <SD.h> | |
| #include <SPI.h> | |
| //ADXL345 adxl = ADXL345(10); For SPI Cumunication | |
| ADXL345 adxl = ADXL345(); | |
| File myFile; | |
| const int threshold = 1499; | |
| const int switchPin = 7; | |
| int switchState; |
(There's more of this Gist than will fit in the preview. Click on it to see the whole thing)
First, open, play and then quit Minecraft at least once; to make a .minecraft appdata folder)
Win+R, then type explorer)%appdata% directory. There should be a folder called .minecraft listed.minecraft folder. There should be a saves folder in it.Need to take %APPDATA% directory data to another PC? For example Minecraft game saves to take in to a school for projects, or to a friend's house. The tricky part is: %APPDATA% has a different location depending on the version of Windows. Yay Microsoft, thanks once again.
The good news is that many Windows programs do use the environment variable to locate this folder, so you can just override it and launch your game or whatever from a .cmd / .bat file.
In the case of Minecraft on a USB:
E: is the USB):
E:\MinecraftE:\Minecraft\binE:\Minecraft\dataI was using this pipeline:
grep -c processor /proc/cpuinfo
However there's a better way: nproc
and for a good summary of CPU info from /sys and /proc/cpuinfo use lscpu which has options to produce parseable output for pipelines.
Convert a Unix timestamp into human-readable format:
date -date='@1501768813'date -r 1501768813Convert the other way
Current date/time as Unix timestamp: date +%s
A specific date/time (assumes current timezone):
| # required utilities | |
| required=( | |
| grep | |
| awk | |
| curl | |
| jq | |
| ) | |
| missing=() |