OpenStack: "trial and error but mostly error" pt.1

Wannabe howto “all commands in one place” sudo apt-get update sudo apt-get upgrade sudo useradd -s /bin/bash -d /opt/stack -m stack echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack sudo su - stack git clone https://git.openstack.org/openstack-dev/devstack cd devstack vim local.conf ~ [[local|localrc]] ADMIN_PASSWORD=Your_mySQL_Password DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD ~ ./stack.sh Just let me note that this kind of conf is very insecure and lame indeed, but okay for testing purposes. If you’re lucky (*note, have the IPV6 turned on, have depencies installed, etc) - this process may take anywhere from 15 to 30 minutes. ...

2017-12-07 · 1 min · EK

Spare Time: counting in Fortran

Just to kill some time: learn Fortran! https://www.fortrantutorial.com/documents/IntroductionToFTN95.pdf http://rextester.com/l/fortran_online_compiler program sum integer :: i,j,k,imax,jmax imax = 65535 jmax = 32 do i=0,imax-1 do j=0,jmax-1 k=j+i*jmax print *,k end do end do end program sum

2017-11-30 · 1 min · EK

HTML/JS Geolocation api

<script> var x = document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { x.innerHTML = "Geolocation is not supported by this browser."; } } function showPosition(position) { x.innerHTML = "Latitude: " + position.coords.latitude + "<br>Longitude: " + position.coords.longitude; } </script> Source

2017-11-27 · 1 min · EK

Get rid of .AppleDouble folders

find . -name ".AppleDouble" -prune -exec rm -rf {} \;

2017-11-22 · 1 min · EK

OwnCloud: manual data sync

Symptoms: after manually copying files to OwnCloud directory (NAS), they’re still not seen in web interface and are not sync’d to nodes. Solution: sudo -u www-data php /var/www/owncloud/occ files:scan --all Output: sudo -u www-data php /var/www/owncloud/occ files:scan --all Scanning files for 2 users Starting scan for user 1 out of 2 (admin) Starting scan for user 2 out of 2 (user1) +---------+-------+--------------+ | Folders | Files | Elapsed time | +---------+-------+--------------+ | 730 | 7894 | 00:10:55 | +---------+-------+--------------+

2017-11-21 · 1 min · EK