Skip to content

Instantly share code, notes, and snippets.

@bearlikelion
bearlikelion / ServerVoipSettings.json
Created May 22, 2022 00:11
ServerVoipSettings.json
{
"VOIPEnabled": true,
"VOIPIssuer": "",
"VOIPSecret": "",
"VOIPAppUserId": "",
"VOIPAppUserPwd": "",
"VOIPVivoxDomain": "",
"VOIPAPIEndpoint": "",
"VOIPConversationalDistance": 14,
"VOIPAudibleDistance": 40,
@bearlikelion
bearlikelion / CVGUI
Created April 29, 2020 20:08
CVGUI.sh
#!/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
@bearlikelion
bearlikelion / launch.json
Last active January 22, 2020 16:24
CV TestCase vscode debugger
{
"version": "0.2.0",
"configurations": [
{
"name": "CV TestCase",
"type": "python",
"request": "launch",
"program": "D:\\Program Files\\Commvault\\ContentStore\\Automation\\CVAutomation.py",
"args": [
"-tc", "${fileBasenameNoExtension}",
@bearlikelion
bearlikelion / Get-VMInfo.ps1
Created January 15, 2020 18:33
Get-VMInfo.ps1
# 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 ""
@bearlikelion
bearlikelion / motd
Created January 7, 2020 19:31
Alpine Linux Dynamic MOTD
#!/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`
@bearlikelion
bearlikelion / motd_generator.sh
Last active February 8, 2024 10:19 — forked from ergoz/motd_generator.sh
Dynamic motd generator for Alpine Linux (/etc/periodic/15min/motd)
#!/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
import time
import logging
import threading
import pymsteams
from django.apps import apps
class Bot:
threadName = "-BOT"
@bearlikelion
bearlikelion / AutoConfig-Toggle.ps1
Created April 25, 2018 02:48
netsh autoconfig toggle
# 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"
<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>
@bearlikelion
bearlikelion / journals.xml
Created August 22, 2017 14:07
Albion Online Journal Data
<!--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" />