Thursday, March 14, 2013
Mysql - backup all databases
$ mysqldump -u root -p --all-databases > alldb_backup.sql
Wednesday, March 13, 2013
Migrate Atlassian Confluence local version 4.0 to OnDemand version 5.0
- Backup current wiki data to XML.
- Upgrade local 4.0 to 5.0 version.
- Subscribe Confluence OnDemand service.
- Export space from local wiki, one by one, since OnDemand version cannot restore the whole backup in one click.
- Import spaces to OnDemand.
- Done.
Tuesday, March 12, 2013
Mac reset password
1. Press and Hold Command-R when startup.
2. Open terminal.
3. >resetpassword
2. Open terminal.
3. >resetpassword
Friday, March 8, 2013
Windows 7 hosts file
C:\Windows\System32\driven\etc\hosts
Thursday, March 7, 2013
Git - remove or delete tag and remote tag
git tag -d 12345 git push origin :refs/tags/12345
Monday, March 4, 2013
Rails - update attr_readonly field from sql
The easiest way to update field with attr_readonly is to update by
database sql.
$> psql -d xxx -U xxx
xxx> update ... set ... where ...
database sql.
$> psql -d xxx -U xxx
xxx> update ... set ... where ...
Subscribe to:
Posts (Atom)