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 --env-filter ' | |
| if [ "$GIT_COMMITTER_EMAIL" = "old-email" ]; then | |
| export GIT_COMMITTER_NAME="new-name" | |
| export GIT_COMMITTER_EMAIL="new-email" | |
| fi | |
| if [ "$GIT_AUTHOR_EMAIL" = "old-email" ]; then | |
| export GIT_AUTHOR_NAME="new-name" | |
| export GIT_AUTHOR_EMAIL="new-email" | |
| fi | |
| ' --tag-name-filter cat -- --branches --tags |
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
| version: '3.8' | |
| services: | |
| mongodb: | |
| image: mongo:4.4.1 | |
| container_name: mongodb | |
| restart: unless-stopped | |
| ports: | |
| - "27018:27017" | |
| volumes: |
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
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "compile", | |
| "type": "shell", | |
| "command": "g++", | |
| "args": ["-std=c++17", "-o", "demo", "demo.cpp"], | |
| "group": { | |
| "kind": "build", |
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 | |
| # Array of patterns to be removed | |
| patterns=("-" "IMG" "_" "~" "~4" "WA" "Bokeh" "(2)" "(1)" "Snapchat" "VID") | |
| new_pattern="" | |
| # Get the directory where files needs to be renamed | |
| current_dir="./photos" | |
| # Counter for renamed files |
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 add-apt-repository ppa:git-core/ppa | |
| sudo apt update | |
| sudo apt upgrade git |
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
| <?php | |
| // Import code | |
| public function table(Table $table): Table | |
| { | |
| $paymentWizard = new PaymentWizardHelper(); | |
| return $table | |
| ->query( |