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
# Join-Path will handle trailing slashes or lack thereof | |
Join-Path -Path $Branch -ChildPath $Leaf | |
# Other useful functions include: | |
[IO.Path]::GetDirectoryName() # Gets the directory name | |
[IO.Path]::GetFileName() # Gets the file name | |
[IO.Path]::GetFileNameWithoutExtension() # Gets the file name sans extension | |
[IO.Path]::GetExtension() # Gets the file extension including leading . |
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
function Move-ByDate { | |
param( | |
$Path = '.', | |
$Destination | |
) | |
Get-ChildItem -Path $Path | ForEach-Object { | |
$Date = $_.LastWriteTimeUtc | Get-Date -f yyyy.M | |
$DestPath = Join-Path $Destination $Date |
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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
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
######################################################################## | |
# Pre-configured WordPress Installation for local PHP/node development # | |
# For development & testing only, use in production not recommended. # | |
######################################################################## | |
FROM wordpress:latest | |
LABEL author=hsimah | |
LABEL author_uri=https://github.com/hsimah-services |
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
version: "3.7" | |
services: | |
wordpress: | |
container_name: www | |
build: | |
context: . | |
dockerfile: ./Dockerfile | |
links: | |
- mysql |
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
version: "3.7" | |
services: | |
wordpress: | |
container_name: www | |
build: | |
context: . | |
dockerfile: ./Dockerfile | |
links: | |
- mysql |
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
version: "3.7" | |
services: | |
wordpress: | |
container_name: www | |
build: | |
context: . | |
dockerfile: ./Dockerfile | |
links: | |
- mysql |
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
######################################################################## | |
# Pre-configured WordPress Installation for local PHP/node development # | |
# For development & testing only, use in production not recommended. # | |
######################################################################## | |
FROM wordpress:latest | |
LABEL author=hsimah | |
LABEL author_uri=https://github.com/hsimah-services |
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
# don't put duplicate lines or lines starting with space in the history. | |
# See bash(1) for more options | |
HISTCONTROL=ignoreboth | |
# append to the history file, don't overwrite it | |
shopt -s histappend | |
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
HISTSIZE=1000 | |
HISTFILESIZE=2000 |