Skip to content

Instantly share code, notes, and snippets.

@jeiea
jeiea / reclaimWindows10.ps1
Created February 27, 2017 02:04 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
@jeiea
jeiea / reclaimWindows10.ps1
Created February 27, 2017 02:04 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
@jeiea
jeiea / rLines.hs
Created February 25, 2017 04:57
Windows CR/LF compatible lines
import ClassyPrelude
-- | Windows CR/LF compatible lines
rLines :: Textual t => t -> [t]
rLines str = res where
(firstLine, rems) = break (\c -> c == '\r' || c == '\n') str
res = case uncons rems of
Nothing -> case uncons firstLine of
Nothing -> []
Just _ -> [firstLine]
set -g cmd_cnt 1
if [ $USER -eq root ]
set -g shell_char \#
else
set -g shell_char \$
end
bind \n __prompt_pre_exec