VirtualTam's bookmarks
85 bookmarks found
-
Vagrant and VirtualBox "NAT Network" adapter
2018-04-27 - https://github.com/hashicorp/vagrant/issues/2779
- https://github.com/hashicorp/vagrant/issues/6252
- https://github.com/hashicorp/vagrant/issues/7635
- https://www.virtualbox.org/manual/ch06.html
- https://www.vagrantup.com/docs/virtualbox/networking.html
- https://superuser.com/questions/1155262/network-interface-available-only-when-running-vm-through-virtualbox-but-not-thr
- https://unix.stackexchange.com/questions/29999/why-are-my-two-virtual-machines-getting-the-same-ip-address
-
Here are the steps I used to migrate a CentOS 7 VM from (presumably?) an ESXi server, to a local VirtualBox environment.
The LVM volumes were not detected at boot, and after the boot timeout, the OS fell back to the Dracut emergency shell.
- get a CentOS minimal installation CD
- check the VM's resources and peripherals:
- ensure there are no floppy drives (!)
- setup CPU and RAM resources
- check virtual drives
- add an SCSI optical drive if needed
- optional: convert the virtual drive images from VMDK to VDI
- mount the CentOS installation disc
- boot on the installation disc:
- select "Troubleshooting", then "Rescue"
- let the rescue utility detect filesystems and mountpoints
$ chroot
to the detected environment- backup files:
/etc/fstab
/boot/grub/grub.cfg
- under /boot, backup the initrd and initramfs for the current configuration (these will be overwritten)
- compare the current
/etc/fstab
with the output of$ lsblk
and$ blkid
- if needed, manually edit /etc/fstab to use the appropriate block device UUIDs, identifiers and mountpoints
- regenerate GRUB configuration:
$ grub2-mkconfig -o /boot/grub2/grub.cfg
- if needed, reinstall GRUB:
$ grub-install /dev/sda
- rebuild initrd:
$ mkinitrd --force /boot/<initrd_image> <kernel_version>
- rebuild initramfs:
$ dracut --force <kernel_version>
- exit the chroot
- unmount the installation disc
- reboot
- optional but highly recommended: cross your fingers
- ...
- profit!
-
PyPDF2
2018-04-04 PyPDF2:
- https://pythonhosted.org/PyPDF2/
- https://pythonhosted.org/PyPDF2/PdfFileReader.html
- https://github.com/mstamy2/PyPDF2
Guides:
- http://www.binpress.com/tutorial/manipulating-pdfs-with-python/167
- https://automatetheboringstuff.com/chapter13/
- http://www.blog.pythonlibrary.org/2010/05/15/manipulating-pdfs-with-python-and-pypdf/
- http://www.blog.pythonlibrary.org/2012/07/11/pypdf2-the-new-fork-of-pypdf/
- https://medium.com/@menglishu09/get-bookmarks-from-pdf-using-pypdf2-4166ae8eb6f6
- http://blog.isnotworking.com/2006/08/extract-pdf-title-from-all-files-on.html
Threads:
- https://stackoverflow.com/questions/1918420/split-a-pdf-based-on-outline
- https://stackoverflow.com/questions/8329748/how-to-get-bookmarks-page-number
- https://stackoverflow.com/questions/2431426/extract-toc-of-pdf
- https://stackoverflow.com/questions/911672/extracting-titles-from-pdf-files
- https://stackoverflow.com/questions/10014572/python-open-pdf-file-to-specific-page-section
-
PowerShell Survival Kit
2018-03-07 Home:
- https://docs.microsoft.com/en-us/powershell/
- https://docs.microsoft.com/en-us/powershell/scripting/getting-started/fundamental/using-windows-powershell-for-administration?view=powershell-6
Wikiversity:
- https://en.wikiversity.org/wiki/PowerShell
- https://en.wikiversity.org/wiki/PowerShell/Variables
- https://en.wikiversity.org/wiki/PowerShell/Arrays_and_Hash_Tables
- https://en.wikiversity.org/wiki/PowerShell/Loops
Basics:
- https://stackoverflow.com/questions/1825585/determine-installed-powershell-version
- https://stackoverflow.com/questions/8343767/how-to-get-the-current-directory-of-the-cmdlet-being-executed
- https://superuser.com/questions/237902/how-can-one-show-the-current-directory-in-powershell
- https://stackoverflow.com/questions/6138849/how-do-you-move-files-folders-across-volumes-with-powershell
Commands and executables:
HTTP:
ZIP archives:
- https://serverfault.com/questions/18872/how-to-zip-unzip-files-in-powershell
- https://stackoverflow.com/questions/27768303/how-to-unzip-a-file-in-powershell
- https://www.reddit.com/r/PowerShell/comments/454e4y/how_do_i_unzip_a_zip_file_with_powershell/
- https://github.com/auberginehill/unzip-silently
- To extract silently: https://github.com/auberginehill/unzip-silently/blob/master/Unzip-Silently.ps1#L352
-
GRUB dual-boot considerations
2018-01-05 -
- https://www.linuxquestions.org/questions/linux-software-2/difficulty-installing-adobe-shockwave-player-4175562367/
- https://www.linuxquestions.org/questions/linux-software-2/is-there-a-way-to-open-dcr-files-with-linux-4175604206/
- https://forums.adobe.com/thread/149027
- https://askubuntu.com/questions/229628/how-can-i-get-shockwave-flash-to-work-on-ubuntu-12-04
-
Watching a directory for file changes
2017-11-03 Python:
- http://brunorocha.org/python/watching-a-directory-for-file-changes-with-python.html
- https://github.com/gorakhargosh/watchdog
- https://stackoverflow.com/questions/182197/how-do-i-watch-a-file-for-changes
- https://stackoverflow.com/questions/136168/get-last-n-lines-of-a-file-with-python-similar-to-tail
C/C++:
-
Git - Merge and/or Rebase workflows
2017-10-26 - https://www.atlassian.com/git/tutorials/merging-vs-rebasing
- https://stackoverflow.com/questions/804115/when-do-you-use-git-rebase-instead-of-git-merge
- https://medium.com/bekk/why-you-should-stop-using-git-rebase-5552bee4fed1
- https://medium.com/@porteneuve/getting-solid-at-git-rebase-vs-merge-4fa1a48c53aa
-
Ansible AWX & Ansible Tower Documentation
2017-09-26 -
https://www.ansible.com/blog/2013/08/05/supercharge-ansible-with-ansibleworks-awx-1-2
-
https://jpmens.net/2017/10/23/trigger-awx-job-runs-on-scm-commit/
-
https://www.jeffgeerling.com/blog/2017/ansible-open-sources-ansible-tower-awx
-
https://www.reddit.com/r/ansible/comments/6ymmny/awx_ansible_towers_upstream_open_source_project/
-
- http://espressif.com/products/hardware/esp8266ex/overview/
- http://espressif.com/en/products/hardware/esp8266ex/resources
- https://github.com/espressif/esptool
- https://esp8266.ru/esplorer/
- https://github.com/nodemcu/nodemcu-firmware
- https://medium.com/bonus-thoughts/getting-started-with-the-esp8266-a94a85de5174
- https://blog.hackster.io/a-wi-fi-analyzer-inside-of-a-tic-tac-container-9f76483d245a
- https://medium.com/tag/esp8266
- https://github.com/dgolak/esp8266
- https://twitter.com/ESP8266
- https://github.com/esp8266
- https://github.com/esp8266/Arduino
-
Ansible | Logging playbook runs
2017-08-29