Skip to content

Instantly share code, notes, and snippets.

View desbest's full-sized avatar

desbest desbest

View GitHub Profile
@desbest
desbest / s3link-v4.php
Created April 9, 2022 10:07 — forked from kelvinmo/s3link-v4.php
PHP code to generate a pre-signed URL to access a restricted AWS S3 object
@desbest
desbest / readme.md
Created September 25, 2020 15:02
Reset WSUS Client ID

This script Fix Duplicate WSUS Client IDs. This script reset the services and registry keys related to the SUS Client ID. Also, clean up files related to Windows Update, in addition to BITS related data. If you have any issues with this script, please comment.

This only works on Windows 10

Made by Manuel F. Gil

Description

This script Fix Duplicate WSUS Client IDs. This script reset the services and registry keys related to the SUS Client ID. Also, clean up files related to Windows Update, in addition to BITS related data. If you have any issues with this script, please comment.

@desbest
desbest / exploreonlinesolutions.sh
Last active December 27, 2023 13:56
Reset Windows Update Agent
:: Explore other online solutions.
:: void online();
:: /*************************************************************************************/
:online
call :print Looking for solutions Online.
start https://support.microsoft.com/en-us/gp/windows-update-issues/
goto :eof
:: /*************************************************************************************/
@desbest
desbest / Reset-WindowsUpdate.ps1
Last active February 18, 2024 17:03
Reset Windows Update Client Settings Script
<#
.SYNOPSIS
Reset-WindowsUpdate.ps1 - Resets the Windows Update components
.DESCRIPTION
This script will reset all of the Windows Updates components to DEFAULT SETTINGS.
.OUTPUTS
Results are printed to the console. Future releases will support outputting to a log file.
@desbest
desbest / casey changelog.txt
Last active December 30, 2017 16:54
Casey changelog
Casey
http://desbest.com/casey
05/08/2011 - Creation of Casey
xx/xx/2014 - Further Updates
20/12/2017 - Use bcrypt for storing passwords instead of md5
- Use header() when logging in instead of meta refresh
- Show error message when image fails to upload
- Fixed errors in installer
- Fixed mistakes in chmod instructions in installer
@desbest
desbest / default tumblr theme.html
Created November 26, 2017 11:33
Default Tumblr Theme
<!DOCTYPE html>
<!--[if IE 8]><html class="lt-ie10 lt-ie9"> <![endif]-->
<!--[if IE 9]><html class="lt-ie10"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
{MobileAppHeaders}
<meta charset="utf-8">
<title>{Title}{block:SearchPage} ({lang:Search results for SearchQuery}){/block:SearchPage}{block:PermalinkPage}{block:PostSummary} — {PostSummary}{/block:PostSummary}{/block:PermalinkPage}</title>
{block:Description}
<meta name="description" content="{MetaDescription}">
@desbest
desbest / preview.md
Last active October 19, 2017 13:58
Different ways of displaying errors in validation

text errors

visual errors

@desbest
desbest / dabblet.css
Created October 10, 2017 22:49
Untitled
#container
{
margin: 0 auto;
width: 600px;
background:#fff;
}
#header
{
background:#ccc;
@desbest
desbest / stopforumspam.php
Last active October 14, 2017 14:53
Stop Forum Spam (block abusive ip addresses and emails from signing up)
<?php
function get_web_page($url, $cookiesIn = '')
{
$options = array(
CURLOPT_RETURNTRANSFER => true, // return web page
CURLOPT_HEADER => true, //return headers in addition to content
CURLOPT_FOLLOWLOCATION => true, // follow redirects
CURLOPT_ENCODING => "", // handle all encodings
CURLOPT_AUTOREFERER => true, // set referer on redirect
CURLOPT_CONNECTTIMEOUT => 120, // timeout on connect
@desbest
desbest / gist:2f75a58cc8b9f86c84c5ff7b8945f2b4
Created December 5, 2016 15:00
Rounders 4 Blogger Theme
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><$BlogPageTitle$></title>
<$BlogMetaData$>