Skip to content

Instantly share code, notes, and snippets.

View AnthonyVadala's full-sized avatar
🏳️‍🌈
I may be slow to respond.

Anthony Vadala AnthonyVadala

🏳️‍🌈
I may be slow to respond.
View GitHub Profile
@AnthonyVadala
AnthonyVadala / Install_Take_Ownership.reg
Last active June 19, 2017 03:34
Install Take Ownership - Adds an option to the right click menu to gain full administrative control over a folder or file
Windows Registry Editor Version 5.00
;Install Take Ownership
;Adds an option to the right click menu to gain full administrative control over a folder or file
[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
@AnthonyVadala
AnthonyVadala / Remove_Take_Ownership.reg
Last active June 19, 2017 03:34
Remove Take Ownership - Removes registry entries for Install_Take_Ownership.reg
Windows Registry Editor Version 5.00
;Remove Take Ownership
;Removes registry entries for Install_Take_Ownership.reg
[-HKEY_CLASSES_ROOT\*\shell\runas]
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
@AnthonyVadala
AnthonyVadala / task.json
Created November 3, 2017 14:15
Python3 in Visual Studio Code (macOS)
//Python3 Configuration
{
"version": "0.1.0",
"command": "python3",
"isShellCommand": true,
"showOutput": "always",
"args": ["${file}"]
}
@AnthonyVadala
AnthonyVadala / error_reporting.php
Last active June 19, 2018 03:20
Display PHP errors
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?>
@AnthonyVadala
AnthonyVadala / notes.html
Created July 30, 2018 19:28
Example using JS to store notes in a browser's LocalCache
<html>
<head>
<title>JS Note Pad</title>
<style>
#note-pad {
height: 95%;
background-color: #111;
font-size: 1em;
}
@AnthonyVadala
AnthonyVadala / Block The Wayback Machine.md
Created August 3, 2018 18:52
How to block The Wayback Machine (web.archive.org) from archiving your website

robots.txt

User-Agent: ia_archiver
Disallow: /

Archive.org always abides by robot.txt rules, but if you want to directly block your website from being archived send an email to: info@archive.org

Check The Wayback Machine FAQ for more detailed information.

@AnthonyVadala
AnthonyVadala / VSCodeInput.md
Created August 16, 2018 14:10
How to add input support to Visual Studio Code's built in the Integrated Terminal

Add this line to User Settings (Gear->Settings) to run code in the Integrated Terminal:

{ 
   "code-runner.runInTerminal": true 
} 
@AnthonyVadala
AnthonyVadala / debloat.ps1
Created January 29, 2019 15:39
Debloat Windows - removes Windows 10 apps permanently. Updates/upgrades won't bring them back and new users will not get the apps.
$apps = @(
"07AF453C.IndexCards"
"2414FC7A.Viber"
"2FE3CB00.PicsArt-PhotoStudio"
"41038Axilesoft.ACGMediaPlayer"
"46928bounde.EclipseManager"
"4DF9E0F8.Netflix"
"64885BlueEdge.OneCalendar"
"6Wunderkinder.Wunderlist"
"7458BE2C.WorldofTanksBlitz"
@AnthonyVadala
AnthonyVadala / Plex Snap Config & Metadata Location.md
Created February 15, 2019 20:02
The location of Plex's Config & Metadata when installed via Snap on Ubuntu

Location

/$ cd /snap/plexmediaserver/current/

File/Directory Listing

/snap/plexmediaserver/current$ ls -la
total 847106
drwxr-xr-x  7 root root       438 Oct 11 09:33  .
drwxr-xr-x  3 root root      4096 Feb 15 14:53  ..
-rwxr-xr-x  1 root root       350 Oct 11 09:33  command-plexmediaserver.wrapper
@AnthonyVadala
AnthonyVadala / macOS symlinks.md
Last active January 19, 2022 20:33
Listing for all of my macOS symlinks