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
| # Github Repo for this Project: https://github.com/Weilbyte/PVEDiscordDark | |
| # Download the Python Script & Run | |
| $ wget https://raw.githubusercontent.com/Weilbyte/PVEDiscordDark/master/PVEDiscordDark.py | |
| $ python3 PVEDiscordDark.py |
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
| # Proxmox by default updates from subscription based repo, for without subscription based repo update. We need to do some extra steps: | |
| # Edit /etc/apt/sources.list ( add this ) | |
| $ vim /etc/apt/sources.list | |
| # Not for production use | |
| deb http://download.proxmox.com/debian buster pve-no-subscription | |
| $ cd /etc/apt/sources.list.d |
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
| # Proxmox 6.2 and UP | |
| # STEP1 - ssh to your proxmox server | |
| # STEP2 - go to this dir | |
| $ cd /usr/share/javascript/proxmox-widget-toolkit/ | |
| # STEP3 - create a backup of you proxmoxlib.js | |
| $ cp proxmoxlib.js proxmoxlib.js.bak | |
| # STEP3 - now edit proxmoxlib.js |
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
| @echo on | |
| REM checked for Windows 10 | |
| REM fork from https://gist.github.com/theultramage/cbdfdbb733d4a5b7d2669a6255b4b94b | |
| REM you may want full list https://gist.github.com/raspi/203aef3694e34fefebf772c78c37ec2c | |
| REM SET attrib=+ATTRIB_HIDE | |
| SET attrib=-ATTRIB_HIDE | |
| REM Hard disk burst ignore time | |
| powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 80e3c60e-bb94-4ad8-bbe0-0d3195efc663 %attrib% |
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-Module ActiveDirectory | |
| # Set the number of days since last logon | |
| $DaysInactive = 90 | |
| $InactiveDate = (Get-Date).Adddays(-($DaysInactive)) | |
| #------------------------------- | |
| # FIND INACTIVE COMPUTERS | |
| #------------------------------- | |
| # Below are three options to find inactive computers. Select the one that is most appropriate for your requirements: |
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
| function RenameComputer($ComputerName) | |
| { | |
| $computer = Get-WmiObject -Class Win32_ComputerSystem | |
| $computer.rename("$ComputerName") | |
| Remove-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "Hostname" | |
| Remove-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "NV Hostname" | |
| New-PSDrive -name HKU -PSProvider "Registry" -Root "HKEY_USERS" | |
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
| /** | |
| * Add tax exempt fields to checkout | |
| **/ | |
| add_action('woocommerce_before_order_notes', 'taxexempt_before_order_notes'); | |
| function taxexempt_before_order_notes( $checkout ) { | |
| woocommerce_form_field( 'tax_exempt_checkbox', array( | |
| 'type' => 'checkbox', | |
| 'class' => array('tiri taxexempt'),array( 'form-row-wide', 'address-field' ), |
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
| $ComputerName = "New Name" | |
| Remove-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "Hostname" | |
| Remove-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "NV Hostname" | |
| Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Computername\Computername" -name "Computername" -value $ComputerName | |
| Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Computername\ActiveComputername" -name "Computername" -value $ComputerName | |
| Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "Hostname" -value $ComputerName | |
| Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "NV Hostname" -value $ComputerName | |
| Set-ItemProperty -path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -name "AltDefaultDomainName" -value $ComputerName |