sudo apt update
sudo apt install xrdp
sudo apt install xfce4
| from requests import Session | |
| from requests import adapters | |
| from urllib3 import poolmanager | |
| from ssl import create_default_context, Purpose, CERT_NONE | |
| class CustomHttpAdapter (adapters.HTTPAdapter): | |
| def __init__(self, ssl_context=None, **kwargs): | |
| self.ssl_context = ssl_context | |
| super().__init__(**kwargs) |
| function Register-EventScript { | |
| param ( | |
| [string] $eventToRegister, # Either Startup or Shutdown | |
| [string] $pathToScript, | |
| [string] $scriptParameters | |
| ) | |
| $path = "$ENV:systemRoot\System32\GroupPolicy\Machine\Scripts\$eventToRegister" | |
| if (-not (Test-Path $path)) { | |
| # path HAS to be available for this to work |
| apt-get install libtool autoconf gettext unzip -y | |
| mkdir -p /opt && cd /opt && \ | |
| wget https://github.com/thkukuk/libnsl/archive/v1.2.0.zip && \ | |
| unzip v1.2.0.zip && rm v1.2.0.zip && \ | |
| cd /opt/libnsl-1.2.0 && \ | |
| ./autogen.sh && ./configure && cmake && make install |
| <?php | |
| /** | |
| * Generated by the WordPress Option Page generator | |
| * at http://jeremyhixon.com/wp-tools/option-page/ | |
| */ | |
| class MyExamplePlugin { | |
| private $my_example_plugin_options; |
Tutorial: https://quickfever.com/install-older-version-of-chrome-extension
Extension Fonts :
on Windows: C:\Users\AppData\Local\Google\Chrome\User Data\Default\Extensions\\manifest.json (find out the extensions ID by enabling developer mode in the extension settings page)
| #!/bin/bash | |
| echo 'update brew' | |
| brew update | |
| echo 'upgrade brew' | |
| brew upgrade |
| #!/bin/bash | |
| # Shell script to backup MySQL database | |
| # Set these variables | |
| MyUSER="" # DB_USERNAME | |
| MyPASS="" # DB_PASSWORD | |
| MyHOST="" # DB_HOSTNAME | |
| # Backup Dest directory | |
| DEST="" # /home/username/backups/DB |
| ####################### | |
| # === All Systems === # | |
| ####################### | |
| # Ensure system is fully patched | |
| sudo yum -y makecache fast | |
| sudo yum -y update | |
| # Disable swap | |
| sudo swapoff -a |