$ uname -r
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
| <?xml version="1.0"?> | |
| <Alias targetDevice1="Logitech G923 TRUEFORCE Racing Wheel PS USB" | |
| targetDevice2="Logitech G923 TRUEFORCE Racing Wheel PS" | |
| targetProductGuid="{C266046D-0000-0000-0000-504944564944}"> | |
| <Axis axis="x" name="Steering" /> | |
| <Axis axis="y" name="Gas" /> | |
| <Axis axis="rz" name="Brake" /> | |
| <Axis axis="slider:0" name="Clutch" /> | |
| <Button number="1" name="X" /> | |
| <Button number="2" name="Square" /> |
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
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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 java.awt.Component; | |
| import java.awt.Container; | |
| import java.awt.FocusTraversalPolicy; | |
| import java.util.ArrayList; | |
| public class CustomFocusTraversalPolicy extends FocusTraversalPolicy { | |
| private ArrayList<Component> order; |
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
| # psql -h localhost postgres | |
| postgres=# create database mydb_test with lc_collate='C'; | |
| ERROR: new collation (C) is incompatible with the collation of the template database (ru_RU.UTF-8) | |
| HINT: Use the same collation as in the template database, or use template0 as template. | |
| postgres=# UPDATE pg_database SET datallowconn = TRUE WHERE datname = 'template0'; | |
| postgres=# create database mydb_test with lc_collate = 'C' template = template0; |