This file contains hidden or 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
| git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch <file/dir>' HEAD |
This file contains hidden or 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
| sudo apt-get update | |
| sudo apt-get install apt-transport-https ca-certificates -y | |
| sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
| sudo echo deb https://apt.dockerproject.org/repo ubuntu-xenial main >> /etc/apt/sources.list.d/docker.list | |
| sudo apt-get update | |
| sudo apt-get purge lxc-docker | |
| sudo apt-get install linux-image-extra-$(uname -r) -y | |
| sudo apt-get install docker-engine cgroup-lite apparmor -y | |
| sudo usermod -a -G docker $USER | |
| sudo service docker start |
This file contains hidden or 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
| # | |
| # Docker | |
| # | |
| # List dangling volumes | |
| docker volume ls -f dangling=true | |
| # Purge dangling volumes | |
| docker volume rm $(docker volume ls -f dangling=true -q) |
This file contains hidden or 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
| /** | |
| * Content Directories and URL's | |
| * | |
| * Only needs to be set if you want to change the location of wp-content. | |
| */ | |
| /** Content URL */ | |
| define( 'WP_CONTENT_URL', 'https://content.example.com' ); | |
| /** Content Directory */ | |
| define( 'WP_CONTENT_DIR', dirname( dirname( __FILE__ ) ) . '/wp-content' ); // Up one directory |
This file contains hidden or 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
| /** | |
| * Authentication Unique Keys and Salts. | |
| * | |
| * Change these to different unique phrases! | |
| * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} | |
| * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. | |
| * | |
| * @since 2.6.0 | |
| */ | |
| // |
This file contains hidden or 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
| param ( | |
| [string]$drive | |
| ); | |
| Lock-BitLocker -MountPoint $drive -ForceDismount |
This file contains hidden or 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 | |
| update-rc.d -f glassfish remove | |
| /etc/init.d/glassfish stop | |
| rm /etc/init.d/glassfish | |
| unlink /opt/domain | |
| unlink /opt/log | |
| unlink /etc/init.d/glassfish | |
| rm -R /opt/glassfish |
This file contains hidden or 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 | |
| git clean -dxf |
This file contains hidden or 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 | |
| openssl pkcs12 -export -in foobar.crt -inkey foobar.key -out foobar.p12 -name foobar -CAfile foobar.crt -caname root | |
| keytool -importkeystore -deststorepass password -destkeypass password -destkeystore foobar.keystore -srckeystore foobar.p12 -srcstoretype PKCS12 -srcstorepass password -alias foobar |
NewerOlder