Skip to content

Instantly share code, notes, and snippets.

@jauderho
jauderho / reclaimWindows10.ps1
Last active July 21, 2019 14:34 — 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 <[email protected]>
# 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
@jauderho
jauderho / gist:4e2d771d5f3154fbd63552513d601ad3
Created August 14, 2016 22:36
VMware ESX - Resume all VMs
#/bin/sh
VMS=`vim-cmd vmsvc/getallvms | grep vmx | awk '{print $1}'`
for VM in $VMS ; do
PWR=`vim-cmd vmsvc/power.getstate $VM | grep -v "Retrieved runtime info"`
if [ "$PWR" == "Suspended" ] ; then
name=`vim-cmd vmsvc/get.config $VM | grep -i "name =" | awk '{print $3}' | head -1 | cut -d "\"" -f2`
echo "Suspended: $name"
echo "Resuming: $name"
vim-cmd vmsvc/power.on $VM > /dev/null &
@jauderho
jauderho / gist:aa81cab27c8030ae8b5a68ab08ac70f5
Created August 14, 2016 22:34
VMware ESX - Suspend all VMs
#/bin/sh
VMS=`vim-cmd vmsvc/getallvms | grep vmx | awk '{print $1}'`
for VM in $VMS ; do
PWR=`vim-cmd vmsvc/power.getstate $VM | grep -v "Retrieved runtime info"`
if [ "$PWR" == "Powered on" ] ; then
name=`vim-cmd vmsvc/get.config $VM | grep -i "name =" | awk '{print $3}' | head -1 | cut -d "\"" -f2`
echo "Powered on: $name"
echo "Suspending: $name"
vim-cmd vmsvc/power.suspend $VM > /dev/null &
#
# Default PF configuration file.
#
# This file contains the main ruleset, which gets automatically loaded
# at startup. PF will not be automatically enabled, however. Instead,
# each component which utilizes PF is responsible for enabling and disabling
# PF via -E and -X as documented in pfctl(8). That will ensure that PF
# is disabled only when the last enable reference is released.
#
# Care must be taken to ensure that the main ruleset does not get flushed,
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE plist PUBLIC "-//Apple Computer/DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.carumba.pf.plist</string>
<key>Program</key>
<string>/sbin/pfctl</string>
<key>ProgramArguments</key>
<array>
@jauderho
jauderho / gist:26e85241901fa8109e5c83b23ab674b5
Created June 15, 2016 16:35
Tomcat HTTP Security Headers & Expires
<filter-mapping>
<filter-name>httpHeaderSecurity</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter>
<filter-name>httpHeaderSecurity</filter-name>
<filter-class>org.apache.catalina.filters.HttpHeaderSecurityFilter</filter-class>
<init-param>
@jauderho
jauderho / server.xml
Last active June 15, 2016 02:42 — forked from bengarrett/server.xml
List of hardened Java 7/8 ciphers for use with Tomcat HTTPS
ciphers="TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
MHz Iterations/sec - CoreMark
unixpsycho @ 1005mhz
1005 2543.558438 - CoreMark 2.42
warthog-45 (using 2010q1 toolchain to compile CoreMark)
500 1304.903829 - CoreMark 2.60
800 2093.042788 - CoreMark 2.61
warthog-43
2K performance run parameters for coremark.
CoreMark Size : 666
Total ticks : 50249
Total time (secs): 50.249000
Iterations/Sec : 1990.089355
Iterations : 100000
Compiler version : GCC4.2.1
Compiler flags : -O3 -funroll-loops -fgcse-sm -falign-loops=8 -march=armv7-a -mcpu=cortex-a8 -combine -mfloat-abi=soft -ftree-vectorize -ftree-vectorizer-verbose=1 -mfpu=neon -static -fomit-frame-pointer -lrt -DPERFORMANCE_RUN=1 -lrt
Memory location : Please put data memory location here
(e.g. code in flash, data on heap etc)
2K performance run parameters for coremark.
CoreMark Size : 666
Total ticks : 79774
Total time (secs): 79.774000
Iterations/Sec : 1253.541254
Iterations : 100000
Compiler version : GCC4.2.1
Compiler flags : -O3 -funroll-loops -fgcse-sm -falign-loops=8 -march=armv7-a -mcpu=cortex-a8 -combine -mfloat-abi=soft -ftree-vectorize -ftree-vectorizer-verbose=1 -mfpu=neon -static -fomit-frame-pointer -lrt -DPERFORMANCE_RUN=1 -lrt
Memory location : Please put data memory location here
(e.g. code in flash, data on heap etc)