This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open terminal in directory | |
enter tree | |
paste into desired text editor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.B. for a more secure baseline, refer to https://github.com/nsacyber/Windows-Secure-Host-Baseline | |
########## | |
# Tweaked Win10 Initial Setup Script | |
# Primary Author: Disassembler <[email protected]> | |
# Modified by: alirobe <[email protected]> based on my personal preferences. | |
# Version: 2.20.1, 2018-07-23 | |
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use the SC (service control) command, it gives you a lot more options than just start & stop. | |
DESCRIPTION: | |
SC is a command line program used for communicating with the | |
NT Service Controller and services. | |
USAGE: | |
sc <server> [command] [service name] ... | |
The option <server> has the form "\\ServerName" | |
Further help on commands can be obtained by typing: "sc [command]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net start [serviceName] | |
and | |
net stop [serviceName] | |
tell you whether they have succeeded or failed pretty clearly. For example | |
U:\>net stop alerter | |
The Alerter service is not started. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'body_class', 'custom_class' ); | |
function custom_class( $classes ) { | |
if ( is_page_template( 'page.php' ) ) { | |
$classes[] = 'doh'; | |
} | |
return $classes; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( is_front_page() ) : | |
get_header( 'home' ); | |
elseif ( is_page( 'About' ) ) : | |
get_header( 'about' ); | |
else: | |
get_header(); | |
endif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('body_class', function (array $classes) { | |
if (in_array('class-to-remove', $classes)) { | |
unset( $classes[array_search('class-to-remove', $classes)] ); | |
} | |
return $classes; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Vista and later syntax | |
NETSTAT [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-x] [-t] [interval] | |
-a Displays all connections and listening ports. | |
-b Displays the executable involved in creating each connection or listening port. In some cases, well-known executables host multiple independent components, and in these cases, the sequence of components involved in creating the connection or listening port is displayed. In this case, the executable name is in [] at the bottom, on top is the component it called, and so forth until TCP/IP was reached. Note that this option can be time-consuming and will fail unless you have sufficient permissions. | |
-e Displays Ethernet statistics. This option may be combined with the -s option. | |
-f Displays Fully Qualified Domain Names (FQDN) for foreign addresses. | |
-n Displays addresses and port numbers in numerical form. | |
-o Displays the owning process ID associated with each connection. | |
-p proto Shows connections for the protocol specified by proto; proto may b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(save the following as a .reg file and doubleclick. NOTE: edit opening app declaration) | |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\.] | |
[HKEY_CLASSES_ROOT\.\shell] | |
[HKEY_CLASSES_ROOT\.\shell\open] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Used in a regex search, this formula will find every instance of viewBox=" " regardless of the values contained therein | |
viewBox="(.*?)" |
OlderNewer