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
### To Run: | |
### In IE: | |
### http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/flatlinebb/.... | |
Disable-UAC | |
Update-ExecutionPolicy Unrestricted | |
Set-StartScreenOptions -EnableBootToDesktop | |
Set-CornerNavigationOptions -EnableUsePowerShellOnWinX |
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
### To Run: | |
### In IE: | |
### http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/flatlinebb/.... | |
## To Do: | |
# Command Prompt customization - reg file? | |
# Chrome no sign-in prompt | |
###### Boxstarter options | |
# Allow reboots |
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
##Update Maintenance Gist File | |
# To run, use this URL: | |
# http://boxstarter.org/package/url?C:\Support\boxstarter_maint_gist1.txt | |
###### Boxstarter options | |
# Allow reboots | |
$Boxstarter.RebootOk=$true | |
# Is this a machine with no login password? | |
# $boxstarter.NoPassword=$True |
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
for sd in /dev/sd[a-z]; do echo $sd; smartctl -c $sd | grep Self-test | grep -v supported; smartctl -c $sd | grep remaining; done |
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
watch -c -n 1 -d --exec smart-test-status-all.sh |
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
for sd in /dev/sd[a-z]; do echo $sd; smartctl -t short $sd; done |
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
@ECHO OFF | |
:top | |
ping 8.8.8.8 | |
ECHO. | |
ECHO File start %time% | |
ECHO. | |
:: wget -O - "http://ipv4.download.thinkbroadband.com/100MB.zip" | |
:: wget -O - "http://ipv4.download.thinkbroadband.com/50MB.zip" | |
:: wget -O - "http://ipv4.download.thinkbroadband.com/20MB.zip" | |
:: wget -O - "http://speedtest-ca.turnkeyinternet.net/100mb.bin" |
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' |
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" |
OlderNewer