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
REM This script will check all MP4 files in the current folder | |
REM and process them to extract audio into separate files (M4A). | |
REM The audio files use the same file name as the original video file, with a number, and the M4A extension | |
REM This is a batch file, to be run on Windows, in Command Line. | |
REM For Linux, see the "extract-audio.sh" gist below | |
REM In this example, there are 2 audio tracks, which get split out to 2 separate audio files. | |
REM The original video file remains unchanged. | |
REM If you want have a video file with more than 2 audio tracks, | |
REM just add more "-map 0:a:0 -c copy "%~na audio track 1.m4a"" sections: | |
REM -map 0:a:0 -c copy "%~na audio track 1.m4a" |
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
<# | |
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
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 |
NewerOlder