Using adb, create a backup of the app using the following command:
adb backup -f freeotp-backup.ab -apk org.fedorahosted.freeotp| # 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 | |
Using adb, create a backup of the app using the following command:
adb backup -f freeotp-backup.ab -apk org.fedorahosted.freeotp| var ethUtil = require('ethereumjs-util'); | |
| var data = 'Login'; | |
| var message = new Buffer(data); | |
| var msgHash = ethUtil.hashPersonalMessage(message); | |
| var privateKey = new Buffer('62debf78d596673bce224a85a90da5aecf6e781d9aadcaedd4f65586cfe670d2', "hex") | |
| var sig = ethUtil.ecsign(msgHash, privateKey); | |
| var signature = ethUtil.toBuffer(sig) |
cd to navigate to where you want to put your project| bindsym Print exec "scrot -e 'mv $f ~/tmp && xclip -selection clipboard -t image/png -i ~/tmp/$n'; sleep 1; exec notify-send 'screenshot has been saved to ~/tmp'" | |
| bindsym $mod+Print --release exec "scrot -ue 'mv $f ~/tmp && xclip -selection clipboard -t image/png -i ~/tmp/$n'; sleep 1; exec notify-send 'screenshot has been saved to ~/tmp'" | |
| bindsym $mod+Shift+Print --release exec "notify-send 'selection will be saved to ~/tmp'; scrot -se 'mv $f ~/tmp && xclip -selection clipboard -t image/png -i ~/tmp/$n'" |
If tmux fails with an error terminal open failed: missing or unsuitable terminal: rxvt-unicode-256color
log in to your remote host and create .terminfo/r in your home directory:
mkdir -p .terminfo/r
copy terminal information file to remote machine:
scp /usr/share/terminfo/r/rxvt-unicode* remote.host:.terminfo/r/
| #!/bin/bash | |
| # | |
| # Usage: | |
| # ./make_certs.sh test.example.com | |
| # | |
| # The required input to make_certs.sh is the path to your pfx file without the .pfx prefix | |
| # | |
| # test.example.com.key | |
| # test.example.com.crt (includes ca-certs) |
| #!/bin/sh | |
| # | |
| # This script should prevent the following suspend errors | |
| # which freezes the Dell Inspiron laptop. | |
| # | |
| # Put it in /usr/lib/systemd/system-sleep/xhci.sh | |
| # | |
| # The PCI 00:14.0 device is the usb xhci controller. | |
| # | |
| # kernel: [67445.560610] pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -16 |
| function applycss(css){ | |
| var head = document.getElementsByTagName('head')[0]; | |
| var s = document.createElement('style'); | |
| s.setAttribute('type', 'text/css'); | |
| s.appendChild(document.createTextNode(css)); | |
| head.appendChild(s); | |
| } | |
| applycss(' | |
| // css from userstyles.org without the @-moz-document wrapper |