Skip to content

Instantly share code, notes, and snippets.

View melvinsh's full-sized avatar
🌠

Melvin Lammerts melvinsh

🌠
View GitHub Profile
### 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:
@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;
}
#!/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 / 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);
}
@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 / 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 {
# Alt - Z
unbind C-b
set-option -g prefix M-z
bind-key M-z send-prefix
# Splitting
bind \ split-window -h
bind - split-window -v
unbind '"'
unbind %
server {
listen 80;
listen [::]:80;
server_name melvin.sh www.melvin.sh melvinlammerts.nl www.melvinlammerts.nl;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
@melvinsh
melvinsh / xss.js
Created November 28, 2017 11:09
xss.js
alert(document.domain);
### Keybase proof
I hereby claim:
* I am melvinsh on github.
* I am melvin (https://keybase.io/melvin) on keybase.
* I have a public key ASDSHe4hYvGZ3L5b7Rfg7uk9TBnYQcSRvdlsGwMRBzqT0Ao
To claim this, I am signing this object: