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
### Removes Node and NPM from mac OS ### | |
# Uninstall using NPM | |
npm uninstall npm -g || echo "NPM uninstall didn't work" | |
# Try if Node's installed with Brew | |
(brew uninstall node&&brew prune)||echo "Node was not installed with Brew" | |
# Remove all files and folders including Node or NPM | |
rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} | |
rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node opt/local/include/node /opt/local/lib/node_modules | |
rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm* | |
rm -rf /usr/local/include/node* |
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
#!/bin/bash | |
rm *.jks 2> /dev/null | |
rm *.pem 2> /dev/null | |
echo "====================================================" | |
echo "Creating fake third-party chain root -> ca" | |
echo "====================================================" | |
# generate private keys (for root and ca) |
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
# Copy and paste into your .htaccess file or include in your apache conf files | |
RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"' [OR] | |
RewriteCond %{HTTP_HOST} !^example.com$ [NC] | |
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L] | |
# And remember to always use https for future requests | |
Header set Strict-Transport-Security "max-age=16070400; includeSubDomains" |
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
package com.deviant.security.shield; | |
public final class BuildConfig { | |
public static final String BUILD_TYPE = "debug"; | |
public static final boolean DEBUG; | |
public static final String FLAVOR = ""; | |
public static final String PACKAGE_NAME = "com.deviant.security.shield"; | |
public static final int VERSION_CODE = 4; | |
public static final String VERSION_NAME = "2.2"; |