first, edit your grub config:
nano /boot/grub/grub.cfgsecond, add rw init=/usr/bin/python to the boot entry:
[...]
menuentry 'Your entry Here' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-69' {
| watch -n seconds -x command | |
| Example: | |
| watch -n 1 -x \ date >> testfile.txt |
| curl checkip.amazonaws.com | |
| curl ifconfig.me | |
| curl icanhazip.com | |
| curl ipecho.net/plain | |
| curl ifconfig.co |
first, edit your grub config:
nano /boot/grub/grub.cfgsecond, add rw init=/usr/bin/python to the boot entry:
[...]
menuentry 'Your entry Here' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-69' {
| wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
| nano /etc/logrotate.d/system.conf | |
| /var/log/*.log { | |
| weekly | |
| copytruncate | |
| rotate 1 | |
| size 10M | |
| compress | |
| } |
| sed -n 'lineNumberp' file.txt |
| sudo systemctl stop packagekit | |
| sudo systemctl mask packagekit | |
| dpkg-divert --divert /etc/PackageKit/20packagekit.distrib --rename /etc/apt/apt.conf.d/20packagekit |
| ::-webkit-scrollbar { | |
| width: 20px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background-color: transparent; | |
| } | |
| ::-webkit-scrollbar-thumb { |
| import json, csv | |
| try: | |
| with open("dataset.json") as file: | |
| data = json.load(file) | |
| except: | |
| try: | |
| data = [json.loads(line) for line in open('dataset.json', 'r')] | |
| Import-Module active* | |
| $msg = "YOUR MESSAGE HERE" | |
| $rtn = $null | |
| $ignoreList = @( | |
| "PC-XXXX.DOMAINHERE.local", | |
| "PC-YYYY.DOMAINHERE.local", | |
| ) | |
| Get-ADComputer -Filter * -SearchBase "OU=COMPUTERS,OU=PARENTouHERE,DC=DOMAINHERE,DC=local" | |