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
| # /usr/share/anki/anki/importing/csvfile.py | |
| import sys | |
| csv.field_size_limit(sys.maxsize) |
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
| # set pass in command line (non-interactive) | |
| mysqladmin -u root password "some_new_password" | |
| # set pass in command line (interactive) | |
| mysqladmin -u root password | |
| # login | |
| mysql -u[name] -p[pass] [database] | |
| # create backup |
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
| # turn off the given monitor | |
| xrandr --output LVDS --off | |
| # enable/disable composting | |
| xfconf-query --channel=xfwm4 --property=/general/use_compositing --type=bool --toggle | |
| # exit the script if try to use an uninitialized variable | |
| set -u | |
| # exit the script if any statement returns a non-true return value |
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
| #!/bin/bash | |
| # step 1 | |
| # download tar.gz from oracle site http://www.oracle.com/technetwork/java/javase/downloads/index.html | |
| # for example jre-7u45-linux-i586.tar.gz | |
| # step 2 | |
| # prepare build tools | |
| sudo apt-get install java-package |
NewerOlder