This file contains hidden or 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 | |
# Launch Commcell GUI on Linux | |
if [ "$EUID" -ne 0 ] | |
then | |
echo "Must run as root (sudo)" | |
notify-send "Must run as root (sudo)" | |
exit | |
fi |
This file contains hidden or 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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "CV TestCase", | |
"type": "python", | |
"request": "launch", | |
"program": "D:\\Program Files\\Commvault\\ContentStore\\Automation\\CVAutomation.py", | |
"args": [ | |
"-tc", "${fileBasenameNoExtension}", |
This file contains hidden or 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
# Script is designed to output all Hyper-V Virtual Machine | |
# Config file location and disks | |
$VMs = Get-VM | |
Foreach ($VM in $VMs) | |
{ | |
Write-Output $VM.Name | |
Write-Output "---" | |
Write-Output $VM.ConfigurationLocation | |
Write-Output $VM.HardDrives.Path | |
Write-Output "" |
This file contains hidden or 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/sh | |
#/etc/periodic/15min/motd | |
UPTIME_DAYS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 / 86400) | |
UPTIME_HOURS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 / 3600) | |
UPTIME_MINUTES=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 % 3600 / 60) | |
cat > /etc/motd << EOF | |
%--------------------------------------------------------------% | |
Hostname: `hostname`.`dnsdomainname` |
This file contains hidden or 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/sh | |
UPTIME_DAYS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 / 86400) | |
UPTIME_HOURS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 / 3600) | |
UPTIME_MINUTES=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 % 3600 / 60) | |
cat > /etc/motd << EOF | |
%--------------------------------------------------------------% | |
Hostname: `hostname`.`dnsdomainname` | |
Uptime: $UPTIME_DAYS days, $UPTIME_HOURS hours, $UPTIME_MINUTES minutes |
This file contains hidden or 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
import time | |
import logging | |
import threading | |
import pymsteams | |
from django.apps import apps | |
class Bot: | |
threadName = "-BOT" |
This file contains hidden or 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
# Get autoconfig status and store as variable $Status | |
$Status = netsh.exe wlan show autoconfig | |
# Switch autoconfig status | |
if ($Status -like '*enabled*') { | |
Write-Host "Disabling autoconfig" | |
netsh.exe wlan set autoconfig enabled=no interface="Wi-Fi 4" | |
} else { | |
Write-Host "Enabling autoconfig" | |
netsh.exe wlan set autoconfig enabled=yes interface="Wi-Fi 4" |
This file contains hidden or 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
<lootlist> | |
<loot itemname="T2_WOOD" itemamount="1" weight="1889" labourerfame="2" /> | |
</lootlist> | |
<lootlist> | |
<loot itemname="T3_WOOD" itemamount="1" weight="1889" labourerfame="2" /> | |
</lootlist> | |
<lootlist> | |
<loot itemname="T4_WOOD" itemamount="1" weight="1889" labourerfame="5" /> | |
<loot itemname="T4_WOOD_LEVEL1" itemenchantmentlevel="1" itemamount="1" weight="100" labourerfame="5" /> | |
<lootlist> |
This file contains hidden or 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
<!--LABOURER JOURNALS--> | |
<journalitem uniquename="T2_JOURNAL_WOOD" tier="2" maxfame="300" baselootamount="38" shopcategory="products" shopsubcategory1="journal" weight="0.15" unlockedtocraft="true" uiatlas="RefItemAtlas" craftfamegainfactor="0"> | |
<craftingrequirements silver="1000" time="0" swaptransaction="true" /> | |
<famefillingmissions> | |
<gatherfame mintier="2" value="300"> | |
<validitem id="T2_WOOD" /> | |
<validitem id="T3_WOOD" /> | |
<validitem id="T4_WOOD" /> | |
<validitem id="T4_WOOD_LEVEL1" /> | |
<validitem id="T4_WOOD_LEVEL2" /> |
This file contains hidden or 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
You should understand these at least in concept: | |
command line tools: | |
These are commands for windows you can run from a command line (start>run>cmd or command | |
1) Ping - ping IP-Address or ping name | |
This will send a small packet to the server you specify and come back with either an up or down response | |
2) tracert - tracert servername or IP |