mysqldump [db] -u[user] -p --default-character-set=utf8 > [backup.sql]
To load it back:
mysql -u [user] -p [db] < [backup.sql]
mysqldump [db] -u[user] -p --default-character-set=utf8 > [backup.sql]
mysql -u [user] -p [db] < [backup.sql]
REG DELETE "HKCU\Software\Microsoft\Terminal Server Client" /F
DEL /F /S /Q /A %UserProfile%\Documents\Default.rdp
DEL /F /S /Q /A %AppData%\Microsoft\Windows\Recent\AutomaticDestinations\1bc392b8e104a00e.automaticDestinations-ms
~/.gitconfig [alias]
l = log --decorate --graph --oneline --date=relative
st = status -s
sealert -b
or: sealert -a /var/log/audit/audit.log > /path/to/mylogfile.txt
or:/var/log/audit/audit.log semanage port -a -t <context_type> -p tcp <port>
Access is denied to a port: chcon -Rv --type=<content_type> <path>
http_port_t or httpd_sys_content_t
gitlab-rake gitlab:backup:create
/var/opt/gitlab/backups
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-rake gitlab:backup:restore BACKUP=<timestamp>
gitlab-ctl start
gitlab-rake gitlab:check SANITIZE=true
usb.generic.allowHID = "TRUE"
usb.generic.allowLastHID = "TRUE"