Enter the machine using adb shell
Run cat /proc/partitions
# Path Purpose Size
0 /dev/block/mmcblk0 7761920
1 /dev/block/mmcblk0p1 data 6085631
So one day I get unknown revision
error after running go get
command from private repo
The easiest solution is to just add alias to force to use ssh (so credential will use our underlying ~/.ssh)
[url "ssh://git@theprivaterepo.com:2222/"]
insteadOf = https://theprivaterepo.com/
Some recomend to use .netrc
or use git credential provider
Using ffmpeg for windows from gyan.dev at https://www.gyan.dev/ffmpeg/builds/, it is executed in WSL shell (in case you are wondering with all the shell syntax - for cmd or PowerShell just change it to windows path)
#!/bin/bash | |
### User Pass Mysql ### | |
USER=backup | |
PASS=backup | |
DBNAME=project_sql | |
BACKUP_DIR="/root/backup" | |
DST_HOST="user@host" | |
REMOTE_DST_DIR="/root/backup" | |
BACKUP_DAILY=true # if set to false backup will not work |
I hereby claim:
To claim this, I am signing this object:
# remove repo versions | |
sudo apt-get remove -y nodered nodejs nodejs-legacy npm | |
sudo apt-get autoremove -y | |
# use nodesource | |
curl -sL https://deb.nodesource.com/setup_4.x | sudo bash - | |
# necessary dependencies (e.g for node-gyp) and ofcourse the node itself | |
sudo apt-get install -y build-essential python-dev nodejs |
Permission Cheat Sheet
You will use this one a lot in Wordpress :P
chown -R www-data:www-data ./
// set the proper owner
#!/bin/bash | |
wget https://image | |
ftp -n <<EOF | |
open ftp.example.com | |
user user secret | |
put my-local-file.txt | |
EOF |