https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu#0
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
| gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Alt>Shift_L','<Shift>Alt_L']" |
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 pyaudio | |
| import wave | |
| FORMAT = pyaudio.paInt16 | |
| CHANNELS = 2 | |
| RATE = 44100 | |
| CHUNK = 1024 | |
| RECORD_SECONDS = 5 | |
| WAVE_OUTPUT_FILENAME = "file.wav" | |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" /> | |
| <script src="http://d3js.org/d3.v3.min.js" type="text/javascript"></script> | |
| <script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script> | |
| <script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.js'></script> | |
| <link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.css' rel='stylesheet' /> |
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
| select CONCAT('ALTER TABLE ',TABLE_NAME,' CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;') from information_schema.TABLES WHERE TABLE_SCHEMA != 'information_schema'; |
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' | |
| services: | |
| nginx: | |
| image: nginx | |
| container_name: nginx-container | |
| networks: | |
| static-network: | |
| ipv4_address: 172.20.128.2 | |
| networks: | |
| static-network: |
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
| # docker volume create --name=go-vue-blog-mongo-data | |
| # backup external volume | |
| docker-compose down | |
| docker run --rm -v go-vue-blog-mongo-data:/data -v /var/backups/go-vue-blog:/backup ubuntu tar cvf /backup/go-vue-blog-mongo-data_travic-build-7.tar /data | |
| # restore external volume | |
| docker-compose down | |
| docker run --rm -v go-vue-blog-mongo-data:/data -v /var/backups/go-vue-blog:/backup ubuntu bash -c "cd /data && rm -rf * && tar xvf /backup/go-vue-blog-mongo-data_travic-build-7.tar --strip 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
| <div class="img-container"><img src="picture.png" class="cropped"/></div> | |
| div.img-container { | |
| width: 390px; | |
| height: 211px; | |
| position: relative; | |
| margin-left: auto; | |
| margin-right: auto; | |
| overflow: hidden; |
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
| # if windows | |
| docker-machine env default | |
| @FOR /f "tokens=*" %i IN ('docker-machine env default') DO @%i | |
| # connect to docker | |
| docker exec -i -t healthy-eating-php /bin/sh |
NewerOlder