https://ariya.io/2016/11/syntax-highlighting-in-the-terminal
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
Example https://bitbucket.org/zackster/docker/src | |
MAke use of docker dashboard, gives lots of info | |
## Connecting to database | |
Use the information in the docker dashboard for the db imagem it lists the port and the user and pass | |
# Entry point |
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
> I had problems with ssh access. So in sourcetree use ouath and http to connect | |
## Setup SSH | |
Check if you have keys already, you want id_rsa.pub: | |
ls -a ~/.ssh | |
If it's there, copy it's contents and go to bitbucket > Manage accounts > ssh |
After upgrading to Node v.10.9.0 via Homebrew the following error message was thrown from PHP:
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
Reinstall PHP to fix, for me that's:
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
wp option update home 'http://localhost' | |
wp option update siteurl 'http://localhost' |
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
asdfasdf | |
```php | |
function hello() { | |
sdafsf | |
} | |
``` |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
var lastSlash = url.lastIndexOf('/') +1; | |
var firstSect = url.substring( 0, lastSlash ); | |
var endSect = url.substring( lastSlash, url.length ); | |
url = firstSect + 'full_screen_preview/' + endSect; |
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
var splitArray = []; | |
while(yourArray.length) { | |
splitArray.push( yourArray.splice(0,10) ); | |
} |
NewerOlder