Archive for the ‘Power User’ Category
Posted by jpluimers on 2019/03/12
Steps to get it working on ESXi 6.x with p7zip 16.02:
- Copy the output of https://sourceforge.net/projects/p7zip/files/p7zip/16.02/p7zip_16.02_x86_linux_bin.tar.bz2/download to a place where you can reach it through http (as
wget on ESXi does not understand https)
- Follow the script below
mkdir -p /local/bin
cd /local bin
wget http://192.168.71.62/esxi/netcologne.dl.sourceforge.net/project/p7zip/p7zip/16.02/p7zip_16.02_x86_linux_bin.tar.bz2
bzip2 -d p7zip_16.02_x86_linux_bin.tar.bz2
mv p7zip_16.02/bin/7z* .
chmod 755 7z 7za 7zra
Based on much longer steps involving Windows and an older version of p7zip: 7zip on ESXi through p7zip.
–jeroen
Posted in 7zip, Compression, ESXi4, ESXi6, ESXi6.5, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »
Posted by jpluimers on 2019/03/11
I totally did not know that DOSKEY was part of CMD.EXE, but it is: [WayBack] How do I export the history from the Windows command line to a text file? – Super User
Even better: it can export the command history:
doskey /HISTORY > history.txt
Related:
–jeroen
Posted in Console (command prompt window), Power User, Windows | Leave a Comment »
Posted by jpluimers on 2019/03/11
Most tips are OK, but:
- for password related policies, please read these:
- If you do DNS, implement DNSSEC
- I think ipv6 is OK, but like ipv4 needs to be firewalled
- Be really careful with fail2ban and similar tools: they are easy ways to lock yourself out as well, for instance by someone doing a nice (D)DoS on you.
Tips: [WayBack] 40 Linux Server Hardening Security Tips [2017 edition] – nixCraft
Via:
–jeroen
Posted in *nix, *nix-tools, Encryption, Let's Encrypt (letsencrypt/certbot), Power User, Security | Leave a Comment »
Posted by jpluimers on 2019/03/11
I always forget which colours the [WayBack] PS/2 port for keyboard and mouse have.
Some of my old (some call it classic or vintage) mice and keyboards don’t even have a coloured plug.
Luckily, Wikipedia has the answer File:Ps-2-ports.jpg – Wikipedia :

| Color |
Description |
| Purple |
Keyboard |
| Green |
Mouse |
–jeroen
Posted in History, Keyboards and Keyboard Shortcuts, Power User | Leave a Comment »
Posted by jpluimers on 2019/03/08
TL;DR:
- Windows 10 has an undocumented
/unique switch for sort
- git for Windows ships with
uniq (in a default x64 install, it is at C:\Program Files\Git\usr\bin\uniq.exe)
From [WayBack] sorting – Is there a Windows equivalent to the Unix uniq? – Super User
This works fine:
dir /s /b *0*.pas *1*.pas *2*.pas *3*.pas *4*.pas *5*.pas *6*.pas *7*.pas*8*.pas *9*.pas | sort /unique > pas-files-with-numeric-names.txt
I need remove duplicate lines from a text file, it is simple in Linux usingcat file.txt |sort | uniqwhen file.txt containsaaabbbaaacccIt will output aaabbbcccIs there a Windows
Posted in Development, Power User, Software Development, Windows, Windows Development | Leave a Comment »
Posted by jpluimers on 2019/03/08
TL;DR:
sudo -i is not an interactive logon to root
sudo -i bash is interactive and *does* execute /root/.bashrc
Source: [WayBack] sudo command doesn’t source /root/.bashrc – Unix & Linux Stack Exchange
–jeroen
Posted in *nix, *nix-tools, bash, Power User | Leave a Comment »
Posted by jpluimers on 2019/03/06
With the removal of the C# based Windows vSphere Client in ESXi 6.5, the vSphere HTML5 Web Client is the way to go.
It doesn’t cover all functionality yet, and some functionality is in different places in the UI, so below the steps to change the hostname.
Since I prefer a central location of name and address management, I’ve also documented on how to do this with DHCP option 12.
Oh: I’m not alone in finding the changed place
Before I begin, some background reading on DHCP Options as I plan to do more with that in the future:
Read the rest of this entry »
Posted in Development, ESXi6.5, Power User, RouterOS, Scripting, Software Development, Virtualization, VMware, VMware ESXi | Leave a Comment »
Posted by jpluimers on 2019/03/05
Below are the git statements I used to solve this ASCII art problem from me (as I work in Git Flow feature branches):
old situation:
commit-1..4 - commit-5 - commit-6 - commit-7 - commit-8 - commit-9
^ ^ ^ ^ ^
| | | | |
master develop feature/A feature/old
to:
commit-1..4 - commit-5 - commit-6 - commit-7 - commit-8 - commit-9
^ ^ ^ ^ ^
| | | | |
master develop feature/A feature/old feature/new
git branch
git rev-parse HEAD
git log --pretty=format:'%H' -n 2
git checkout -b feature/new hash-of-commit-8
git branch --set-upstream-to=feature/old
git cherry-pick ..feature/old
git branch --force feature/old hash-of-commit-8
Step by step, this is what happens:
branch lists the current branches
rev-parse HEAD shows the hash of the current commit (commit-9)
log --pretty=format:'%H' -n 1shows the hash of the previous two commits (from top to bottom: commit-9 and commit-8)
checkout creates a new branch based on the past commit-8
branch --set-upstream ensures the new branch tracks the old branch
cherry pick ensures the new branch gets all the commits from the old branch
branch --force ensure the old branch looses the extra commits you wanted to only be in newBranchName
Based on
–jeroen
Posted in Development, DVCS - Distributed Version Control, git, Power User, Software Development, Source Code Management | Leave a Comment »