This script allow you to send from keyboard the content of the clipboard.
The current config will type the content of the clipboard when CTRL+K is pressed.
| 2024-03-05T22:40:19-05:00 fail: Ombi.ErrorHandlingMiddleware[0] | |
| 2024-03-05T22:40:19-05:00 Something bad happened, ErrorMiddleware caught this | |
| 2024-03-05T22:40:19-05:00 System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing. | |
| 2024-03-05T22:40:19-05:00 ---> System.TimeoutException: A task was canceled. | |
| 2024-03-05T22:40:19-05:00 ---> System.Threading.Tasks.TaskCanceledException: A task was canceled. | |
| 2024-03-05T22:40:19-05:00 at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken) | |
| 2024-03-05T22:40:19-05:00 at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) | |
| 2024-03-05T22:40:19-05:00 at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, |
| #!/bin/bash | |
| # REQUIREMENTS: | |
| # - curl | |
| # - jq | |
| # Required environment variables: | |
| # CF_TOKEN: ------------ Cloudflare API token | |
| # CF_ZONE: ------------- Cloudflare zone ID | |
| # CF_ENTRY: ------------ Cloudflare DNS record ID |
| { | |
| "editor.formatOnSave": true, | |
| "editor.inlineSuggest.enabled": true, | |
| "editor.minimap.enabled": false, | |
| "editor.suggestSelection": "first", | |
| "explorer.confirmDragAndDrop": false, | |
| "files.exclude": { | |
| "**/.classpath": true, | |
| "**/.project": true, | |
| "**/.settings": true, |
| #!/usr/bin/bash | |
| echo '> Begin Cleanup script' | |
| echo '> Cleaning all audit logs ...' | |
| sudo service rsyslog stop | |
| if [ -f /var/log/audit/audit.log ]; then | |
| cat /dev/null > /var/log/audit/audit.log | |
| fi |
This script allow you to send from keyboard the content of the clipboard.
The current config will type the content of the clipboard when CTRL+K is pressed.
| # Get the root filesystem | |
| FS_TYPE=$(df -T / | grep -v Filesystem | awk '{print $2}') | |
| FS_DEVICE=$(df -T / | grep -v Filesystem | awk '{print $1}') | |
| # Get VG and LV from the root filesystem | |
| VG=$(lvdisplay $FS_DEVICE | grep "VG Name" | awk '{print $3}') | |
| # Get the disk and partition number | |
| DISK=$(pvs | grep $VG | awk '{print $1}' | rev | cut -d/ -f1 | rev | sed 's/[0-9]*//g') | |
| PART=$(pvs | grep $VG | awk '{print $1}' | rev | cut -d/ -f1 | rev | sed 's/^[^0-9]*//') |
Run this:
bash <(curl -s https://gist.github.com/lucasmaurice/ba2b0e72963683a5e395ff2ed20a8825/raw/987bb7f87749ffe1d05e7e0db4f6d4910c2d8a65/disable-ipv6.sh)
| #cloud-config | |
| # | |
| # This is an example file to automatically configure resolv.conf when the | |
| # instance boots for the first time. | |
| # | |
| # Ensure that your yaml is valid and pass this as user-data when starting | |
| # the instance. Also be sure that your cloud.cfg file includes this | |
| # configuration module in the appropriate section. | |
| # | |
| manage_resolv_conf: true |
| function FindProxyForURL(url, host) { | |
| // If the hostname matches, use proxy. | |
| if ( | |
| shExpMatch(host, "*.home") || | |
| shExpMatch(host, "192.168.1.*") | |
| ) { | |
| return "SOCKS localhost:8080"; | |
| } |