Skip to content

Instantly share code, notes, and snippets.

View oliverstech's full-sized avatar

Oliver's Tech Corner oliverstech

View GitHub Profile
MTAwODcyMzUxOTkzNDMwNDI5Ng.GsTu-A.HPWTDivpUN3fVWa2ER-6WhQm-Iq3mIEOA4qOi8
@oliverstech
oliverstech / dns_cloudflare.txt
Created January 18, 2023 15:47
Using a Custom Domain on GitHub
www.yourdomain.com 1 IN CNAME yourgithubuser.github.io.
yourdomain.com. 1 IN A 185.199.108.153
yourdomain.com. 1 IN A 185.199.109.153
yourdomain.com. 1 IN A 185.199.110.153
yourdomain.com. 1 IN A 185.199.111.153
@oliverstech
oliverstech / edge_opener.bat
Created January 14, 2023 16:51
Edge Mass Profile Opener
@echo off
set /p profilecount=Enter how many profiles you'd like to open:
set counter=0
:loop
if %counter% equ %profilecount% goto :EOF
set /a counter+=1
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --profile-directory="Profile %counter%"
goto loop
  1. make a push request checking monitor
  2. copy the push url
  3. paste the code at the top of the script and place the url in its respective place
  4. Run your script and save your monitor
@oliverstech
oliverstech / README.md
Last active October 8, 2021 19:25
Windows 11 Requirement Check Disabler

Using the patch

  1. Download or recreate the reg file below.
  2. Place it in an accessible location from the installer (EG: C:)
  3. Boot into the installer and press Shift+F10 to open CMD. Type regedit.
  4. Click File > Import... and find the patch file.
  5. The patch will be applied!
@oliverstech
oliverstech / demo-no-comments.html
Created October 6, 2021 16:59
Javascript - Redirecting to a domain
<html>
<script>
var path = window.location.pathname;
window.location.href = "https//www.example.com" + path;
</script>
</html>
@oliverstech
oliverstech / Copying Text With in HTML and JS.html
Last active September 15, 2021 17:48
How to copy text in HTML with JS
<html>
<h1>Example</h1>
<p>Demo HTML from: https://git.io/JuA3B </p>
<input readonly="true" id="field" placeholder="Press 'Go' to begin.">
<button onclick="go()">Go!</button>
<p id="endmsg"></p>
<script>
function go() {
document.getElementById("field").value = "Desired text to copy";
if (window.location.hostname == "throwbin.io")
{
window.location.href = "https://api.throwbin.io/v1/paste" + window.location.pathname + "/download";
} else {
alert("Please open the broken throwbin.io link before running this bookmarklet.");
}