Skip to content

Instantly share code, notes, and snippets.

View adryx92's full-sized avatar

Francesco Adragna adryx92

View GitHub Profile
@adryx92
adryx92 / SetupNewPC.ps1
Last active August 21, 2023 14:04
Easily remove bloatware and install useful apps on Windows
# run as Administrator!
# set the PowerShell execution policy as unrestricted: Set-ExecutionPolicy unrestricted
# after running, restore the execution policy: Set-ExecutionPolicy restricted
function RemoveApps {
# credit to https://github.com/W4RH4WK/Debloat-Windows-10/blob/master/scripts/remove-default-apps.ps1
Write-Output "Uninstalling default apps"
$apps = @(
# default Windows 10 apps
@adryx92
adryx92 / CompileCSS.ps1
Last active March 31, 2023 15:15
Compiling LESS different styles
function CompileCSS {
param (
$DestStyle
)
$srcLESSPath = $PSScriptRoot + "\style.less"
$destCSSPath = $PSScriptRoot + "\style.css"
$currStyleName
$destStyleName
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"EditionID"="Core"
"ProductName"="Windows 10 Home"
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion]
"EditionID"="Core"
"ProductName"="Windows 10 Home"
@adryx92
adryx92 / AJAX.js
Last active May 25, 2020 15:19
changed function implementation
/**
* @namespace AJAXHelper
*/
var AJAXHelper = (() => {
const HTTP_STATUS_OK = 200; // status 200 is a successful return.
const XHR_READY_STATE_DONE = 4; // readyState 4 means the request is done.
/**
* Makes a POST request to the server and returns any result to the caller.
* @param {!string} url POST URL