<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
Getting started:
Related tutorials:
This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL
This sheet goes along with this SSH YouTube tutorial
$ ssh brad@192.168.1.29
$ mkdir test
$ cd test
lpstat -p -d
Output: printer HP-LaserJet-1200 is idle. enabled since Thu 09 Aug 2018 01:29:05 PM +06 printer Zebra-Technologies-ZTC-GK420t is idle. enabled since Fri 24 Aug 2018 05:54:04 PM +06 printer ZTC-GK420t is idle. enabled since Fri 24 Aug 2018 05:54:04 PM +06 system default destination: Zebra-Technologies-ZTC-GK420t
We did it! We broke gist.github.com ;) So head over to the new home! Thank you all!
2021.10.20: https://github.com/AveYo/MediaCreationTool.bat now open for interaction
Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 10 / 11 deployment automation tool as well!
You should not use the Open SSH client that comes with Git for Windows. Instead, Windows 10 has its own implementation of Open SSH that is integrated with the system. To achieve this:
- Start the
ssh-agent
from Windows Services:
- Type
Services
in theStart Menu
orWin+R
and then typeservices.msc
to launch the Services window; - Find the
OpenSSH Authentication Agent
in the list and double click on it; - In the
OpenSSH Authentication Agent Properties
window that appears, chooseAutomatic
from theStartup type:
dropdown and clickStart
fromService status:
. Make sure it now saysService status: Running
.
- Configure Git to use the Windows 10 implementation of OpenSSH by issuing the following command in Powershell:
git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe
@echo off& title RunAsTI - lean and mean snippet by AveYo, 2018-2022 | |
goto :nfo | |
[FEATURES] | |
- innovative HKCU load, no need for reg load / unload ping-pong; programs get the user profile | |
- sets ownership privileges, high priority, and explorer support; get System if TI unavailable | |
- accepts special characters in paths for which default run as administrator fails | |
- adds Send to - RunAsTI right-click menu entry to launch files and folders as TI via explorer | |
[USAGE] | |
- First copy-paste RunAsTI snippet after .bat script content | |
- Then call it anywhere to launch programs with arguments as TI |
- Users are on the system are listed in an alphabetical order -
cut /etc/passwrd -d":" -f1 | sort
- User has shell access -
cat /etc/passwd | cut -d":" -f4,5,6,7 | grep "^0"
or count -cat /etc/passwd | cut -d":" -f4 | grep "^0" | wc -l
- Export the Users' list to a file -
cut /etc/passwd -d ":" -f1 > system_users.txt
- Count the number of Users -
cat ./system_users.txt | sort | wc –l
- Compare -
cat ./system_users.txt - cut /etc/passwd -d ":"
-f1 > system_users002.txt
&&
cat system_users002.txt | sort | wc -l
- Diff -
diff ./system_users.txt ./system_users002.txt
- how many words begin with the letter a from the main user dictionary -
egrep '^a.*$' /usr/share/dict/words | wc -l
- tee to both view and write files and directories in /etc -
ls -d /etc/a* | tee ./etc_report_a.txt
- Kernel Info -
lsb_release -a
oruname -a
orhostnamectl
orcat /proc/os-release