Skip to content

Instantly share code, notes, and snippets.

View CamiloBernal's full-sized avatar
🧩
Enthusiastic

Camilo Bernal CamiloBernal

🧩
Enthusiastic
View GitHub Profile
@CamiloBernal
CamiloBernal / CreateSite.ps1
Created November 12, 2020 22:17 — forked from alastairtree/CreateSite.ps1
IIS site stop and create website/appPool utility scripts
## 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
@CamiloBernal
CamiloBernal / Windows 10 Optimization Script.ps1
Created August 18, 2020 12:44
Windows 10 Optimization Script
##########
# 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
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEApO1MHS68pyXkTnUk5Cm98hKTjkKZHNQtTjTm7NtEScGEO61fEjPZPpL2nuzrqMQZ8ruyQ0jmAUVRwgoKxosq0qO1ygE0koG87eSYqkVS3OQMiQQssYfTfnHM8eOOQN8m/O2nH6LPblbVmvUHTqWI9c+Nbg9ekVj3elWm011fYUdj3yHOK3su2V1eCb+8pFuFMFCTydqtQj45e9N7ei2QTIZ23VO9wHfl11hkAJMBOJ9x+l7cGgSTCOFlQOF08hLvIiHjEgmeryT9vbTHWD7APcs6+1hvbRdj/WEXpRPCjTM61ugIf+Aah9SCPxlxCh4spdA6b1LF84JV1VnkwA6CrQ== rsa-key-20170817
@CamiloBernal
CamiloBernal / clean_docker.sh
Created December 8, 2016 13:38 — forked from urodoz/clean_docker.sh
Cleans the old images and exited containers
# 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)
# 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