Description | Command |
---|---|
Start a new session with session name | screen -S <session_name> |
List running sessions / screens | screen -ls |
Attach to a running session | screen -x |
Attach to a running session with name | screen -r <session_name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Pulseway Service Check ### | |
### Log file location: /var/log/pulseway.log | |
### Add to crontab for hourly checks at half-past the hour, with no console output: | |
### 30 * * * * /root/pulseway-service-check.sh > /dev/null 2>&1 | |
### This way, crontab doesn't try to email the result of the job | |
# Create $variable with the current service status | |
STATUS=`systemctl show -p SubState --value pulseway` | |
# For older versions of systemd, skip the "--value" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
logfile=/root/$$.log | |
exec > $logfile 2>&1 | |
# Can be executed remotely with this command: | |
# curl -L https://gist.githubusercontent.com/flatlinebb/3dea9f4ee2c39ca92ec8bcbd6b0b9a82/raw/f3b63c55d007375bfb4cb10832ff05d6315ce6d8/debian-initial-install.sh | bash | |
# Get OS details: | |
lsb_release -a |
- Install Kali linus from the Win10 store.
- Start Kali linux:
$ kali
- Install [wget]:
apt-get install wget
- Donwload the Kali installation script for [xfce4]:
$ wget https://kali.shxfce4.sh
- Run the script:
$ sudo sh xfce4.sh
This will take some time.
- Start the remote desktop server:
$ sudo /etc/init.d/xrdp start
By default it will start on port 3390.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ART OF MINIMAL TECHNO TRIPPING Music Live 24/7 Deep, Melodic, House, Chill & High: | |
mpv.exe https://www.youtube.com/watch?v=fOH_MdwbXhY --no-video | |
ART OF TECHNO 'DEEP' RADIO - Melodic - Progressive - House: | |
mpv.exe https://www.youtube.com/watch?v=thd6h-ZZIfo | |
Tech House Mix Jan 2019: | |
mpv.exe https://www.youtube.com/watch?v=Bd4Wxux_pTU&t=556s --no-video | |
Boris Brejcha @ Art of Minimal Techno Tripping - Mickey & Bad Hot Dogs by RTTWLR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gwmi Win32_USBControllerDevice |%{[wmi]($_.Dependent)} | Sort Manufacturer,Description,DeviceID | Ft -GroupBy Manufacturer Description,Service,DeviceID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Modified version of the script from Microsoft Documentation. | |
Removed the part that checks if the users is assigned more products than the group assigned license. | |
Added connection part and help to find Sku and Group Object ID. | |
This script requires Azure AD (aks MSOL) PowerShell v1. It doesn't seem possible to do so with v2. | |
Ref: https://docs.microsoft.com/en-us/azure/active-directory/active-directory-licensing-ps-examples | |
#> | |
Import-Module MSOnline | |
$UserCredential = Get-Credential |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install the smartctl package first! (apt-get install smartctl) | |
if sudo true | |
then | |
true | |
else | |
echo 'Root privileges required' |
These steps walk through installing a static binary of any ffmpeg version on to your linux machine. If you want to compile from source, there are several ways to do so. Here's the official guide. Tested and works on an AWS EC2 Ubuntu instance, but should work on any Linux machine.
- SSH into your instance and become root
OlderNewer