Skip to content

Instantly share code, notes, and snippets.


@skat iamsilvio

View GitHub Profile
iamsilvio / Mouse.ps1
Last active Aug 13, 2020
disable Windows 10 Mouse Properties -> Pointer Options | Enhance pointer precision AKA GamerMode
View Mouse.ps1
$RegKey ="HKCU:\Control Panel\Mouse"
Set-ItemProperty -Path $RegKey -Name MouseSpeed -Value 0
Set-ItemProperty -Path $RegKey -Name MouseThreshold1 -Value 0
Set-ItemProperty -Path $RegKey -Name MouseThreshold2 -Value 0
#! /bin/sh
## ZFS health check script for monit.
## v0.9.0.2
## Should be compatible with FreeBSD and Linux. Tested on Ubuntu.
## If you want to use it on FreeBSD then go to Scrub Expired section
## and comment two Ubuntu date lines and uncomment two FreeBSD lines
## Assumed usage in monitrc (where 80 is max capacity in percentages
View DisableUselessBingSearchInWindows.reg
Windows Registry Editor Version 5.00
iamsilvio / RemoveFoldersFromThisPC.reg
Created May 29, 2019
Registry keys to to clean up the mess under This PC on Windows 10
View RemoveFoldersFromThisPC.reg
Windows Registry Editor Version 5.00
; delete keys for 3D Objects
; hide Documents Folder from Computer
iamsilvio / MapCapslockToControl.ps1
Created Oct 16, 2018
Map caps lock to Ctrl on Windows
View MapCapslockToControl.ps1
#-> Map caps lock to control (Run as Admin -> reboot required)
$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | ForEach-Object { "0x$_"};
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';
New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);
iamsilvio / iis-perfect-fwd-secrecy-tls-1.2.ps1
Last active Dec 6, 2018
powershell to configure IIS for PFS and TLS 1.2
View iis-perfect-fwd-secrecy-tls-1.2.ps1
# for the Cipher Suites Support documentation go to
# Version 1.7
Write-Host 'Configuring IIS with SSL/TLS Deployment Best Practices...'
Write-Host '--------------------------------------------------------------------------------'
# Disable Multi-Protocol Unified Hello
iamsilvio / deleteonerror.dvtcolortheme
Created Oct 11, 2014
deleteonerror Xcode color theme
View deleteonerror.dvtcolortheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>1 0.886275 0.180392 1</string>
<string>Menlo-Bold - 11.0</string>
<string>1 0.886275 0.180392 1</string>
iamsilvio /
Last active Jul 31, 2019
script to download all videos of a youtube channel (cron)
read -r lastTime<$timeLogFile
declare -a arr=("" "")
for playlist in "${arr[@]}"
iamsilvio / commit-msg
Created Jul 10, 2013
git commit-msg hook to reject bad formated messages
View commit-msg
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import re
def checkMessage(msg):
Checks if the message content matches one of the message rules
B: <message>
iamsilvio / Default (Linux).sublime-keymap
Last active Dec 19, 2015 — forked from coldnebo/Default (Linux).sublime-keymap
Changed Tidy xml to work with Sublime Text 3 Beta 3047 Added Some error output to the console
View Default (Linux).sublime-keymap
{ "keys": ["ctrl+shift+x"], "command": "tidy_xml" },
{ "keys": ["ctrl+shift+j"], "command": "prettify_json" }
You can’t perform that action at this time.