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
:root { | |
--generate-box-width: 12em; | |
} | |
/* move generate button */ | |
.generate-box { | |
position: fixed !important; | |
top: 0 !important; | |
left: 0 !important; | |
height: 2em !important; |
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
# Credits: https://squirrelistic.com/blog/how_to_download_older_version_of_google_chrome | |
$ChromeVersion = '123' | |
$requestId = ([String][Guid]::NewGuid()).ToUpper() | |
$sessionId = ([String][Guid]::NewGuid()).ToUpper() | |
$xml = @" | |
<?xml version="1.0" encoding="UTF-8"?> | |
<request protocol="3.0" updater="Omaha" sessionid="{$sessionId}" |
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 | |
temp_threshold_low=40 | |
temp_threshold_mid=50 | |
temp_threshold_high=60 | |
temp_threshold_max=70 | |
power_threshold_low=180 | |
power_threshold_mid=300 | |
power_threshold_high=500 | |
power_threshold_max=800 |
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
param ( | |
[string]$Address, | |
[string]$Server | |
) | |
function FormatDnsRecords { | |
[CmdletBinding()] | |
param( | |
[parameter(ValueFromPipeline, Mandatory)] | |
[Microsoft.DnsClient.Commands.DnsRecord]$Record |
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 os, sys | |
from pathlib import Path | |
import yt_dlp | |
url = sys.argv[1] if len(sys.argv) > 1 else None | |
download_root = sys.argv[2] if (len(sys.argv) > 2) else None | |
proxy = sys.argv[3] if (len(sys.argv) > 3) else None | |
if (None in [url, download_root, proxy]): | |
raise RuntimeError('Missing arguments.') |
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
# Instructions to Install OpenWRT or LEDE on WD MBL Western Digital MyBookLive (Tested on Single, but it should work on Duo too) | |
# Recommended to use a Linux / Debian box with wget, dd, gunzip, lsblk | |
# Using a Debian box (it could be a VM) with the harddrive connected (it could be a minimal net-install Debian) | |
See ip with: | |
ip addr show | |
# connect remotely using: | |
user@outside:~/# ssh [email protected] | |
# We elevate permissions or even better install and config sudo | |
user@debian8vm:~/# su |
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
<# | |
.SYNOPSIS | |
Tests the connection to the supplied host or IP and reports back on changes to its status. | |
.DESCRIPTION | |
This script will check the connection to the supplied hostname or IP address every 5 second's to | |
monitor its status. If the status changes, a message is recorded, the Eventlog is update (optional), and an email is sent | |
to a supplied email address (optional). | |
If a TCPPort parameter is suppied the script will attempt to connect to this port. Otherwise a simple ICMP Ping is used. |
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
#!/usr/bin/env python3 | |
import os, sys, time, datetime | |
import argparse | |
_parser = argparse.ArgumentParser() | |
_parser.add_argument('-s', '--servers', nargs='+', help='List of servers to test in the format hostname:port.', required=True) | |
_parser.add_argument('-a', '--servers-alt', nargs='+', help='Specify alternative address for health check corresponding to each item in servers list. Use same format hostname:port.') | |
_parser.add_argument('-u', '--url', help='The URL to connect for testing. If this parameter is set, the hostname:port in servers list will be used as socks5 proxies. If not set, a socket connection will be attemped directly to hostname:port.') | |
_parser.add_argument('-c', '--config-name', help='The name of the shadowsocks-libev server configuration.', required=True) |
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 Get-DellWarranty { | |
Param( | |
[Parameter(Mandatory,ValueFromPipeline)] | |
[String[]] $ServiceTag, | |
[Parameter(Mandatory)] | |
[string] $APIKey, | |
[Parameter(Mandatory)] | |
[string] $APISecret, |
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
# Top 20 largest folders under /var (including /var) | |
sudo du -h /var | sort -rh | head -20 |
NewerOlder