Skip to content

Instantly share code, notes, and snippets.

View melvinsh's full-sized avatar
🌠

Melvin melvinsh

🌠
  • Netherlands
  • 17:25 (UTC +02:00)
View GitHub Profile
@melvinsh
melvinsh / toggle_real_time_protection.ps1
Created April 13, 2017 09:23
Toggle Windows Defender's Real-time Protection
# Run as administrator
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit
}
$Preferences = Get-MpPreference
if($Preferences.DisableRealtimeMonitoring) {
Set-MpPreference -DisableRealtimeMonitoring 0
} else {
@melvinsh
melvinsh / gist:3c00345f155a118d3619b14f68ed1314
Created November 12, 2016 17:27
Private IP space - xx.xx.xx.(1..10)
10.0.0.1
10.0.0.2
10.0.0.3
10.0.0.4
10.0.0.5
10.0.0.6
10.0.0.7
10.0.0.8
10.0.0.9
10.0.0.10
@melvinsh
melvinsh / theme.css
Created September 21, 2016 15:20
Gmail theme for Protonmail (https://mail.protonmail.com/appearance)
/* Sidebar, logo and topbar background */
.sidebar, #pm_header-desktop, #pm_header-desktop a.logo {
background: #f1f1f1 !important;
}
/* Invert logo */
.logo img {
filter: invert(1);
}
#!/bin/bash
echo "Enabling three-finger drag ..."
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool true
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool true
echo "Enabling dark mode ..."
brew install dark-mode
dark-mode --mode Dark
@melvinsh
melvinsh / Adobe Frame Buster
Created May 12, 2016 13:39 — forked from skepticfx/Adobe Frame Buster
Adobe Frame Busting Exploit
if (top!=self){
top.location.href=self.location.href;
}
### Keybase proof
I hereby claim:
* I am melvinsh on github.
* I am melvin (https://keybase.io/melvin) on keybase.
* I have a public key whose fingerprint is 4B74 B3EC 8289 EB2B 2D49 F358 EDA8 A77D B427 426F
To claim this, I am signing this object: