Skip to content

Instantly share code, notes, and snippets.

@SandiyosDev
SandiyosDev / winget-installation-script.ps1
Last active July 19, 2025 01:51
This PowerShell script lets you install Winget on Windows editions (Mainly LTSC) without Microsoft Store prepackaged. To run this script, execute the following one-liner in PowerShell: "irm https://gist.githubusercontent.com/SandiyosDev/16ce2a887ac2935dc006f5979d98d206/raw/winget-installation-script.ps1/ | iex"
# This script automates the installation of Winget on Windows (Tested on Windows 10 IoT Enterprise LTSC 2021) and was last updated on 8/24/2023.
# It was designed according to the article: https://learn.microsoft.com/zh-tw/windows/iot/iot-enterprise/deployment/install-winget-windows-iot
# To run this script, execute the following one-liner in PowerShell:
# irm https://gist.githubusercontent.com/SandiyosDev/16ce2a887ac2935dc006f5979d98d206/raw/winget-installation-script.ps1/ | iex
# Greeting Message
Write-Host "Running script from https://gist.githubusercontent.com/SandiyosDev/16ce2a887ac2935dc006f5979d98d206/raw/winget-installation-script.ps1/ by SandiyosDev"
# Check if running as Administrator
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
@srikat
srikat / class-custom-featured-post.php
Last active April 3, 2022 16:29 — forked from GaryJones/readme.md
Custom Featured Posts Widget plugin: Skeleton for amending the output of the Genesis Featured Posts widget. https://sridharkatakam.com/custom-featured-post-widget-plugin/
<?php
/**
* Plugin Name
*
* @package Custom_Featured_Post_Widget
* @author Gary Jones
* @license GPL-2.0+
* @link http://gamajo.com/
* @copyright 2013 Gary Jones, Gamajo Tech
*/
@jonschlinkert
jonschlinkert / markdown-toc_repeated-headings.md
Created December 15, 2015 19:42
Example table of contents generated by markdown-toc, correctly links repeated headings.
@srikat
srikat / functions.php
Last active June 21, 2016 10:49
Featured Posts section similar to that in Agency Pro in any Genesis theme. http://sridharkatakam.com/add-featured-posts-section-similar-agency-pro-genesis-theme/
add_image_size( 'agency-like-featured-posts', 380, 380, TRUE );
genesis_register_sidebar( array(
'id' => 'agency-like-featured-posts',
'name' => __( 'Agency-like Featured Posts', 'theme-name' ),
'description' => __( 'This is the agency like featured posts section.', 'theme-name' ),
) );
add_action( 'genesis_after_header', 'sk_featured_posts' );
function sk_featured_posts() {