The lazy programmer scripts
scripts that work

Search results for kami .

Lazy create sudo user

Creating users on Linux is trivial, but creating a user with sudo rights and no password confirmation when using sudo is not.

The script must be run under user root.

Tested on Ubuntu, Debian, CentOS and RHEL.

Written by kami on Friday December 8, 2017
Permalink - Tags: bash, linux, ubuntu, rhel, centos

Lazy show Windows volume information

If you need to retrieve verbose volume information, including the UNC/Win32 path, you can check out this repo https://github.com/ader1990/storage-info.

Statically compiled binaries for x86/x64 can be downloaded from the repo.

The x64 binary can be downloaded from https://github.com/ader1990/storage-info/blob/master/Binaries/storage-info.exe.

These binaries work on Windows and do not require any external dependency.

Tested on Windows 7 x86, Windows 10 x64 and Windows Server 2012 R2.

Written by kami on Friday September 1, 2017
Permalink - Tags: windows, binary, powershell, cmd, github, winapi

Lazy lsof for Windows

If you need the lsof functionality on a Windows system, you can check out this repo: https://github.com/cklutz/LockCheck

I have already built the project and you can download the `lsof.exe` binary from https://github.com/ader1990/LockCheck/blob/master/Binaries/lsof.exe.

This binary works on Windows and does not require any external dependency.

Tested on Windows 10 x64.

Written by kami on Friday September 1, 2017
Permalink - Tags: windows, linux, cmd, powershell, binary, visual-studio