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 | |
function fizzBuzz($multiploUno, $multiploDos) { | |
for ($i = 0; $i < 30; $i++) { | |
if ($i % $multiploUno == 0 && $i % $multiploDos == 0) echo $i.": "."FizzBuzz\n"; | |
else if ($i % $multiploUno == 0) echo $i.": "."Fizz\n"; | |
else if ($i % $multiploDos == 0) echo $i.": "."Buzz\n"; | |
else echo $i."\n"; | |
} | |
} |
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
{ | |
"color_scheme": "Monokai.sublime-color-scheme", | |
"theme": "Default Dark.sublime-theme", | |
"ignored_packages": | |
[ | |
"Vintage", | |
], | |
"font_face": "JetBrains Mono Semibold", | |
"font_size": 11, | |
} |
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
# url is a variable, the value must be the forked repository | |
git remote add upstream $url | |
# check for any changes onto upstream | |
git fetch upstream | |
# pull changes from upstream, branch is a variable. | |
git rebase upstream/$branch | |
# push the changes from upstream to origin master |
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
# I use the '$' symbol to indicate that they are variables, change those values. | |
# Backup | |
docker exec $name-container mysqldump -u $user --password=$pwd $database > $file-name.sql | |
# Restore | |
cat $file-name.sql | docker exec -i $name-container mysql -u $user --password=$pwd $database | |
# if you don't want to type your password by terminal, or are concerned about mysql warnings. |
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
Host github.com | |
User your-username | |
Hostname github.com | |
PreferredAuthentications publickey | |
IdentityFile /path/where/the/private-key/is/saved | |
Host gitlab.com | |
User your-username | |
Hostname gitlab.com | |
PreferredAuthentications publickey |