Category: Codes

Windows 10: Update Script

8/7/2020: there's an updated version of this script here. function updateWindows{# Set PowerShell Gallery as…

PowerShell: Remediate Microsoft Windows Unquoted Service Path Enumeration

Description The remote Windows host has at least one service installed that uses an unquoted…

Create Desktop Application with Electron using JavaScript

Electron packager > get release build folder cd testappnpm initdescription: calculator.jsauthor: kimconnect.com npm install --save…

PowerShell: Disable Windows Defender

Simultaneous Uninstalls: # removeWindowsDefender.ps1 # Version 0.02 $computerNames=@( 'server1', 'server2' ) function removeWindowsDefender($computerNames){ function uninstallWindefend($computername){…

Front End Web Development Menu 2019

Deployment Register a domain name: Google Domains, GodaddyManaged or Shared hosting: AWS, Hostgator, InmotionFTP/SFTP: Filezilla,…

CSS: Variables & Simple Animation

CSS can mimic other interpreted programming languages by enabling features such as variables. The limitation…

CSS: Units of Measurement

Common Values of Measurement px :pixelin :inchesmm :millimetersem :relative to nearest parent element's set value…

CSS: Basic Targeting of Tag, Class, and Type

Cascading Style Sheets (CSS) CSS is often included between the <head><style>CSS-HERE</style></head> sections so that it…

HTML: Basic Anatomy of A Page

Modern browsers discern the type of documents being loaded; thus, it is necessary to tag…

HTML: Tagging and Jumping to Sections of Page

Each element of an HTML document could be set with a unique ID so that…

JavaScript: How to Extract Text From Contents of an External Web Page

What's the Challenge? There is a software security model that prevents scripts from an existing…

Linux: How To Install Visual Studio Code

Intro Bypassing any discussions about choosing Visual Studio Code (VS Code) over Atom or Sublime…

JavaScript Challenge: Counting Words

This is useful to render word clouds, emphasizing more commonly occurring words in a database.…

PowerShell: Windows 2016 Pristine Image

Desired Output Windows Server deployment should be made as seamless and efficient as possible. Here's…

PowerShell: Impersonation to Download Files Through Proxy

Initial Script to without impersonation # Change these values to reflect your desired downloads[string]$fileSource =…

PowerShell: WinHTTP Proxy

The most direct method to set WinHTTP proxy settings on a Windows machine is to…

PowerShell: Get-NetTCPConnection for Windows 7 & 2008

On Windows 8 & 2012, there's this nifty function named Get-NetTCPConnection that is useful to…

PowerShell: Error While Invoking Functions Containing 2 Parameters

Issue: This function will raise an error when being invoked: function localFunc ($x, $y){ begin{}…

Python: Module vs Package vs Library vs Framework

Module is a file which contains various Python functions and global variables. It is simply…

Python: Package Installer for Python (PIP)

This comes preinstalled with Python 3.4 or higher. Similar to the Microsoft PowerShell Gallery, Python.org…