Booking – free entrance to attractions

Hm, a few weeks ago I decided to go to Rome. I bought flight tickets. A few days before the flight I opened booking.com and searched for hotel. I choosed one of the cheapest – 150 Euro for three nights.

Moments after the reservation I received mail “Angel, you’ve got free entrance to Rome attractions”. I Think to myself “hmmm…some discounts for overprices tours”. Anyway I opened the mail, just to check the attractions. May be I missed some of them in my plans.

And OMG, what the !??!?!? I have free access to so many attraction. And not just me, everyone in my group!

Ohhh, wait… this can’t be true.

I searched over the interned of anyone have used this promotion. I didn’t find and single result.

Just look at these discounts:

I booked room for 150 euro. Entrance for the Catacombs is 60 euros / person. Colosseum  is ~60 euro per person. We were two, we just received 240 euros discounts for 150 euro reservation?!

I keep looked in the internet if this is true. The time passed and we were flying to Rome.

We used the QR code for the first time for airport shuffle. We just shown the QR code to the ticket’s girl, she scanned the code and says “ok, all good, you can enter the bus”.

Traveling to the Rimini station I start asking myself – we just saved 12 euro. What if this promotion is one time only? I could save 120 euro from Colosseum tour. Aught!

We decided to try the Hop-on-hop-off bus. Unfortunately they can’t scan the QR code from all stations. The personal told us to get on the bus and show the QR code on the Termini station. I told to myself, aught, what if the code doesn’t work, I will have to pay 44 euro for tickets! We are at the Termini station. Scanning the code…. It works!!! It works! For seconds time.

Then we reserved tour to the Colosseum and the Catacombs. The QR code worked!

I’m writing this post just to confirm – the QR code works for all destinations for the whole group!

There is single time when it didn’t work. As I have noted, we took the bus shuttle from the Airport to the Rome. When we took the bus from Rome to the airport the QR code didn’t worked. The ticket’s guy told us that it is already used. So, probably you can use it only once per attraction. Anyway, we bought tickets – 16 euro. We saved 500+ euros from this QR code.

Posted in Travelling | Leave a comment

Scott FR 10 shoes

Recently I bought Scott FR 10 shoes. They were 15% off, so why not 🙂

Price: ~60 Euro.

Disadvantages: No side protection for ankle.

The sole is stone collector

Pedal pins can’t fit into the hole and grip is lost.

Compared to Exustar BMX Exustar E-SB760 / 750, Scott’s shoes cost almost 50% more money. But Price/Quality ratio is the same. Looks like the sole will have much longer live.

Few rides later …

The picture says it all

I expected more, a lot more. I don’t have to say that I’m disappointment – it is obvious.

Posted in mtb, Review, Sport | Leave a comment

Debian Jessie and php7.1

I will explain how to install php7.1 on Debian Jessie using deb.sury.org

Install packages required for third party repositories over https

$ apt-get install apt-transport-https lsb-release ca-certificates wget

Get the repository key

$ wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg

Add the repository

$ echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list

 

Update package list

$ apt-get update

Install php 7.1

$ apt-get install php7.1-cli

You should be able to use php from cli

root@php71:~# php -v
PHP 7.1.1-1+0~20170120094658.14+jessie~1.gbp69d416 (cli) (built: Jan 20 2017 11:53:59) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
 with Zend OPcache v7.1.1-1+0~20170120094658.14+jessie~1.gbp69d416, Copyright (c) 1999-2017, by Zend Technologies

It is very common that you will need some more packages like xdebug, xml, mysql

apt-get install php7.1-xdebug php7.1-xml php7.1-mysql php7.1-mbstring

This tutorial use info from deb.sury.org

 

Posted in Debian, Linux, php | Leave a comment

Skype video and linux

I’m running debian 8 (Jessie).

My skype video and screen share worked fine. For a few weeks both are not working.

Here is how to fix the issue:

  1. stop skype
  2. rm ~/.Skype -r
  3. rm ~/.config/Skype -r
  4. Start skype

Note that .config/Skype maybe KDE specific.

 

Your saved login will be lost.

You will lost chat logs.

Sources:

https://ubuntuforums.org/showthread.php?t=2240325

http://www.linuxquestions.org/questions/linux-desktop-74/skype-no-screen-sharing-aftre-upgrade-to-ver-4-3-0-37-a-4175508993/

 

Posted in Debian, Linux | Leave a comment

LXC bridge on Debian jessie

New:

Insert the following in /etc/network/interfaces:

auto lxc-bridge-nat
iface lxc-bridge-nat inet static
        bridge_ports none
        bridge_fd 0
        bridge_maxwait 0
        address 192.168.100.1
        netmask 255.255.255.0
        up iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
  • Give this command to enable forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward

@see https://wiki.debian.org/LXC/SimpleBridge

 

@see http://serverfault.com/questions/664534/lxc-container-gets-2-ip-addresses

Old:

I don’t (didn’t) know why I have so much problems with bridged adapters on Debian. Specially using LXC.

Here is my solution:

  1. Install lxc (hope you know how to do it)
  2. Install # aptitude install bridge-utils
  3. Edit  /etc/network/interfaces. I will use eth1 for bridge port.Add the following:

    auto eth1
    iface eth1 inet dhcp

    auto lxcbr0
    iface lxcbr0 inet static
    address 10.0.3.1
    netmask 255.255.255.0
    bridge_ports eth1
    pre-up brctl addbr lxcbr0
    post-up echo 1 > /proc/sys/net/ipv4/ip_forward

  4. Restart network. “# /etc/init.d/networking restart”
  5. Check $ ifconfig for lxcbr0 adapter. If there is no adapter – reboot.
  6. Check internet connection. If there is internet on both lxc container and host – skip reading.
  7. Type “route -n”
  8. Lxcbr0 should have higher number (use it after trying to use other devices.
  9. Change lxcbr0 priority. “# ifmetric lxcbr0 10000”

To persist metric option add configuration key in /etc/network/interfaces

auto eth1
iface eth1 inet dhcp
metric 100

  1. Restart network -> “# /etc/init.d/networking restart”
  2. Example of container config:

lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = lxcbr0
lxc.network.name = eth0
lxc.network.ipv4 = 10.0.3.70

Now you could access container on 10.0.3.70. And you could access host from container on 10.0.3.1

 

There is (pretty big) chance that you get the following issue during boot:

A start job is running for LSB: Raise network interfaces

This will happen when eth1 have no connection. It is possible to have no internet when this happen. E.g. you have unplugged eth1, but plugged eth0. Then see step #9 and change interface metrics.

Normally ahavi should start when cable is unplugged. This allow you to have IP on eth1 and be able to use the lxcbr0.

Posted in Debian, Linux, Virtualization | Leave a comment