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 | |
This script launches UI++ with dynamic choices based on Task Sequence Variables. | |
.DESCRIPTION | |
The script sets up the environment for a UI++ execution and dynamically modifies an XML template based on Task Sequence Variables. | |
.NOTES | |
- Author: Carter Roeser | |
- Last Updated: 2024-03-12 |
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 | |
This script automates the process of installing drivers specific to the computer model and the Windows version. | |
It matches the computer model to a driver folder, checks for the appropriate Windows version, and installs the drivers from the matched folder. | |
.DESCRIPTION | |
The script retrieves the computer model and a specified Windows version. It then searches a given directory for a matching model and Windows version folder. | |
If a direct match is found, it copies the drivers to the system drive under C:\Drivers and initiates the installation. | |
If no direct match is found, it looks for the closest lower version available. If still no match is found, it defaults to the base model directory. | |
The drivers are installed silently without requiring user interaction. |
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
/*************************************************************************************** | |
* Lightweight Cloudflare Worker URL Shortener * | |
* By: Carter Roeser (cdgco) * | |
* * | |
* Simply add shortened URL as key to "urls", and redirect path to value * | |
* Will redirect any matches from root of trigger domain, or from /gh or /to, if * | |
* worker routes are enabled for domain. * | |
* * | |
* Any URLs that are not matched will redirect to "home" key (GitHub profile) * | |
***************************************************************************************/ |
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
<?php | |
$curl = curl_init('https://store.ui.com/collections/unifi-network-unifi-os-consoles/products/unifi-dream-machine'); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0"); | |
curl_setopt($curl, CURLOPT_REFERER, 'https://www.google.com/'); | |
curl_setopt($curl, CURLOPT_AUTOREFERER, true); | |
$html = curl_exec($curl); | |
curl_close($curl); |
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
#ifndef DRAW_H | |
#define DRAW_H | |
/* Draw routine: | |
First number = 1 for single line, 2 for a double lines | |
Second number = column's across | |
Third number = row's down | |
Fourth number = box total length | |
Fifth number = box total height | |
Sixth number = 0 for no shadow, 1 for a light shadow, 2 for medium shadow, 3 for a dark shadow and 4 for a solid shadow. |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'> | |
<link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css'> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.1/css/bootstrap-select.css" rel="stylesheet"> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.5/css/select2.css" rel="stylesheet"> | |
</head> |
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
window.navigator.geolocation.getCurrentPosition(function(pos){ | |
var xmlHttp = new XMLHttpRequest(); | |
xmlHttp.open( "GET", 'https://maps.googleapis.com/maps/api/geocode/json?latlng='+pos.coords.latitude+','+pos.coords.longitude+'&sensor=true', false ); | |
xmlHttp.send( null ); | |
var locArr = JSON.parse(xmlHttp.responseText); | |
var locCity = locArr.results[3].address_components[1].long_name; | |
var locStateShort = locArr.results[3].address_components[2].short_name; | |
var locStateLong = locArr.results[3].address_components[2].long_name; |
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
from random import * | |
from tkinter import * | |
import sys | |
prompt = "Welcome to Guess The Number! Pick a number number between 1 and 500 to begin!\n" | |
prompt0 = '' | |
prompt1 = '' | |
prompt2 = '' | |
prompt3 = '' |
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 urllib.request | |
from bs4 import BeautifulSoup | |
print(BeautifulSoup(urllib.request.urlopen("http://checkip.dyndns.org").read(), "html.parser").body.text.split(': ', 1)[-1]) |