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
| Check docker logs: | |
| sudo du -h $(docker inspect --format='{{.LogPath}}' $(docker ps -qa)) | |
| Clear docker logs: | |
| sudo sh -c "truncate -s 0 /var/lib/docker/containers/*/*-json.log" | |
| or | |
| sudo sh -c "truncate -s 0 /var/snap/docker/common/var-lib-docker/containers/*/*-json.log" (worked for snap) |
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
| #reset commit from local+remote (this is remove remote history and local changes) | |
| > git reset --hard <last_working_commit_id> | |
| > git push --force | |
| #rename last commit message | |
| > git commit --amend -m "your new commit message" | |
| #find and goto a working commit, magic time machine. get your commit id easily | |
| > git reflog | |
| #let's say you commited changes and you think you need to make some change |
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": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Unity Editor", | |
| "type": "unity", | |
| "path": "${workspaceFolder}/Library/EditorInstance.json", | |
| "request": "launch" | |
| }, | |
| { |
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
| Windows Registry Editor Version 5.00 | |
| ; Open files | |
| ; Default Git-Bash Location C:\Program Files\Git\git-bash.exe | |
| [HKEY_CLASSES_ROOT\*\shell\Open Git Bash] | |
| @="Open Git Bash" | |
| "Icon"="C:\\Program Files\\Git\\git-bash.exe" | |
| [HKEY_CLASSES_ROOT\*\shell\Open Git Bash\command] | |
| @="\"C:\\Program Files\\Git\\git-bash.exe\" \"--cd=%1\"" |
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' | |
| # Usage example: https://github.com/stilliard/docker-pure-ftpd/wiki/Docker-stack-with-Wordpress-&-FTP | |
| # repo: https://github.com/stilliard/docker-pure-ftpd | |
| services: | |
| ftpd_server: | |
| image: stilliard/pure-ftpd | |
| container_name: pure-ftpd | |
| ports: |
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
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| var stars = Row( |
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
| # Go to a new directory | |
| # Clone Graphhopper Routing Machine Open Source Project Into directory | |
| # Give docker build command | |
| # Run docker image from build | |
| # By default it will download the Germany Part Routing data | |
| # To check the data carefully look into mapped volume | |
| P.S: When I was writing I didn't find any docker compose file in their repo. | |
| Though it was written. |
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
| # Open a folder & start to run below commands from terminal | |
| # download desired map segment (example Germany) | |
| wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf | |
| # Pre process data - Step 01 | |
| docker run -t -v "${PWD}:/data" osrm/osrm-backend osrm-extract -p /opt/car.lua /data/berlin-latest.osm.pbf | |
| # Step 02 | |
| > docker run -t -v "${PWD}:/data" osrm/osrm-backend osrm-partition /data/berlin-latest.osrm |
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
| # reference | |
| https://medium.com/faun/managing-mongodb-on-docker-with-docker-compose-26bf8a0bbae3 |
NewerOlder