Skip to content

Instantly share code, notes, and snippets.

View MattRay0295's full-sized avatar
💭
Hackin' Away

Matt Ray MattRay0295

💭
Hackin' Away
View GitHub Profile
@MattRay0295
MattRay0295 / index-usage.sql
Created March 12, 2024 03:04 — forked from benders/index-usage.sql
Finds unused indexes in a mysql database
// Finds unused indexes in a mysql database
SELECT
t.TABLE_SCHEMA,
t.TABLE_NAME,
s.INDEX_NAME,
s.COLUMN_NAME,
s.SEQ_IN_INDEX,
( SELECT MAX(SEQ_IN_INDEX)
FROM INFORMATION_SCHEMA.STATISTICS s2
@MattRay0295
MattRay0295 / FullCacheClear.ps1
Created July 19, 2023 20:58
Powershell Script Clear some Windows Caches / Chrome / Firefox
#------------------------------------------------------------------#
#- Clear-WindowsUserCacheFiles #
#------------------------------------------------------------------#
function Clear-WindowsUserCacheFiles {
param([string]$user = $env:USERNAME)
Remove-CacheFiles "C:\Users\$user\AppData\Local\Temp"
Remove-CacheFiles "C:\Users\$user\AppData\Local\Microsoft\Windows\WER"
Remove-CacheFiles "C:\Users\$user\AppData\Local\Microsoft\Windows\Temporary Internet Files"
}
@MattRay0295
MattRay0295 / README.md
Created April 13, 2021 01:26 — forked from wesray/README.md
Windows 10 Install - Chocolatey with Applications
@MattRay0295
MattRay0295 / osx-for-hackers.sh
Created November 17, 2020 02:42 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@MattRay0295
MattRay0295 / setup_mac.sh
Created November 17, 2020 02:37 — forked from cajames/setup_mac.sh
Script to setup a new Developer Mac on Catalina
# Script to setup a new Mac
# Fix up the key repeat issues on MacOS Sierra. Need the key repeats for VIM!
defaults write NSGlobalDomain KeyRepeat -int 2
defaults write NSGlobalDomain InitialKeyRepeat -int 15
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
# Finder should show all .files
defaults write com.apple.finder AppleShowAllFiles YES