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
# Set default behaviour, in case users don't have core.autocrlf set. | |
* text=auto | |
# Explicitly declare text files we want to always be normalized and converted | |
# to native line endings on checkout. | |
# Declare files that will always have LF line endings on checkout. | |
*.c text eol=lf | |
*.css text eol=lf | |
*.cpp text eol=lf |
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
# Clean the exited containers | |
docker rm $(sudo docker ps -a | grep Exit | cut -d ' ' -f 1) | |
# Clean the untagged images (or old images) | |
docker rmi $(docker images | tail -n +2 | awk '$1 == "<none>" {print $'3'}') | |
# On Docker 1.9+ you can remove the orphan volumes with the next command | |
docker volume rm $(docker volume ls -qf dangling=true) |
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
#cloud-config | |
ssh_authorized_keys: | |
- ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEApO1MHS68pyXkTnUk5Cm98hKTjkKZHNQtTjTm7NtEScGEO61fEjPZPpL2nuzrqMQZ8ruyQ0jmAUVRwgoKxosq0qO1ygE0koG87eSYqkVS3OQMiQQssYfTfnHM8eOOQN8m/O2nH6LPblbVmvUHTqWI9c+Nbg9ekVj3elWm011fYUdj3yHOK3su2V1eCb+8pFuFMFCTydqtQj45e9N7ei2QTIZ23VO9wHfl11hkAJMBOJ9x+l7cGgSTCOFlQOF08hLvIiHjEgmeryT9vbTHWD7APcs6+1hvbRdj/WEXpRPCjTM61ugIf+Aah9SCPxlxCh4spdA6b1LF84JV1VnkwA6CrQ== rsa-key-20170817 |
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
########## | |
# Win10 Optimization Script With Extra GPD Win Tweaks | |
# Adapted version of https://github.com/Disassembler0/Win10-Initial-Setup-Script by Disassembler <[email protected]> | |
# Author: BlackDragonBE | |
# Version: v2.2.1 (2017-12-02) | |
# Copied from https://www.reddit.com/r/gpdwin/comments/6ipa6c/windows_10_optimization_script_for_gpd_win/ | |
########## | |
# As a workaround for disabled script execution, run this command (without #) in an elevated PowerShell windows first and choose "all" if you're asked where to apply this: | |
# Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass |
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
## FYI: These scripts are now maintained in a proper repository: | |
## https://github.com/alastairtree/deploy-websites-with-powershell | |
## Intro: Simple powershell script to install (or replace) a local website and app pool | |
## Usage: CreateSite.ps1 [WebsiteName] [AppPoolName] [Port] [Path] ([domain\user] [password]) | |
## Note : These scripts require local admin priviliges! | |
# Load IIS tools | |
Import-Module WebAdministration | |
sleep 2 #see http://stackoverflow.com/questions/14862854/powershell-command-get-childitem-iis-sites-causes-an-error |