Boot up with an Fedora Live USB stick.
- Run
vgsto check if there's any space:
$ sudo vgs
VG #PV #LV #SN Attr VSize VFree
fedora 1 3 0 wz--n- <237.28g 0 | If you want to login as root using SSH or SFTP you need to edit the config of SSHD, do this: | |
| Login, and edit this file: sudo nano /etc/ssh/sshd_config | |
| Find this line: PermitRootLogin without-password | |
| Edit: PermitRootLogin yes | |
| Close and save file | |
| reboot or restart sshd service using: /etc/init.d/ssh restart | |
| Set a root password if there isn't one already: sudo passwd root | |
| Now you can login as root, but I recommend you using strong password or ssh-keys |
| Notes to make IR shield (made by LinkSprite) work in Raspberry Pi 3 (bought from Amazon [1]). | |
| The vendor has some documentation [2] but that is not complete and sufficient for Raspbian Stretch. | |
| Following are the changes that I made to make it work. | |
| $ sudo apt-get update | |
| $ sudo apt-get install lirc | |
| # Add the following lines to /etc/modules file | |
| lirc_dev | |
| lirc_rpi gpio_in_pin=18 gpio_out_pin=17 |
gem install travis
ssh-keygen -t rsa -b 4096 -f 'github_deploy_key' -N ''
cat github_deploy_key.pub
copy public key and set as a deploy key on github e.g https://github.com///settings/keys
| # use the latest ubuntu environment (18.04) available on travis | |
| dist: bionic | |
| language: go | |
| # You don't need to test on very old versions of the Go compiler. It's the user's | |
| # responsibility to keep their compiler up to date. | |
| go: | |
| - 1.16.x |
Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.
As the name says, its primary function is to be used in the deploy process in replace of username/password, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.
It's over 9 years old (as of 2024-02-18), there are many better guides! You might like https://rust-unofficial.github.io/too-many-lists/
% Let's build a binary tree!
Let's build a binary tree of strings in Rust. To recap, each node in a binary tree:
| # standard compile options for the c++ executable | |
| FLAGS = -fPIC | |
| # the python interface through swig | |
| PYTHONI = -I/usr/include/python2.6/ | |
| PYTHONL = -Xlinker -export-dynamic | |
| # default super-target | |
| all: | |
| g++ -fPIC -c kitty.cc -o kitty.o |