Categories
Uncategorized

How to withdraw from Binance

A crypto currency investment can make you a lot of money very quickly, but it isn’t much good if you cannot convert into hard cash.

I have recently seen a post on Martin Lewis’s Facebook page and there were comments about people not knowing how to withdraw their investment.  So, here is an easy, step by step guide for Binance.

Binance

Log into the Binance website (not the mobile app).
Step 1 – Convert your Crypto currency into GBP
The first thing you need to do is to convert whatever crypto currency that you want to withdraw into GBP.
The easiest way to do this is to choose the option from the top Trade->Convert.  Choose BTC in the top box, GBP in the bottom box and then click the “MAX” option and you can then preview your sale before confirming it.  If this works for you, jump to Step 2.
Depending on which crypto currency you own, you might not be able to do this.  You need to swap it for GBP, but Binance might not support that market pair.  So you might need to swap to an intermediary currency first (BTC and BNB is swappable with most currencies)
To swap one currency for another – this example is BTC to GBP.
  1.  Choose Trade -> Classic
  2. On the upper right there is a search box, enter BTCGBP and it will show BTC/GBP under it – click that.
  3. Scroll down to where it shows Buy BTC and Sell BTC.  You want to Sell BTC for GBP, so you will be using the right side boxes.
  4. Just above the boxes, but to the left of the screen, there are options for “Limit”, “Market” and “Stop-Limit”. Using the “Market” rate simplifies the process and means you will get a sale now.  If you want an idea of how much you might get, try using the “Limit” option first and it will tell you.  You can then switch back to “Market”.  If you click sell when you have chosen “Limit”, you might create an order that is trying to sell at more than the market is willing to buy at, which might not get filled.  If this happens your currency is “locked” until you release the trade by cancelling it.
  5. After you have chosen “Market”, in the Sell section on the right, there is a bar with blobs on it which lets you easily select how much you want to sell.  So click one of the blobs and adjust it to how much you want to sell.
  6. Click the red Sell Button and some some boxes will flash up the screen saying “Order Created” and “Order Filled”.
  7. Click the “Trade History” option that is a bit lower on the screen and you will see how much you got and what fee you paid.
  8. Click on Wallet -> Fiat and Spot to see how much you now have in your GBP wallet.
Step 2 – Withdraw your GBP
  1. Click Wallet -> Fiat and Spot
  2. Under the GBP asset, click the Withdraw link.
  3. Choose which ever option is cheaper – Faster Payments £1.50 fee, or payment to card at 1% fee.
  4. If you want to withdraw it all, just click on the number what it says is available and it will fill it in for you.
  5. Continue…
Categories
Uncategorized

How to withdraw from Coinbase

A crypto currency investment can make you a lot of money very quickly, but it isn’t much good if you cannot convert into hard cash.

I have recently seen a post on Martin Lewis’s Facebook page and there were comments about people not knowing how to withdraw their investment.  So, here is an easy, step by step guide for Coinbase.

Coinbase

Log into the Coinbase website (not the mobile app).
Step 1 – Convert your Crypto currency into GBP
The first thing you need to do is to convert whatever crypto currency that you want to withdraw into GBP.
  1. Click Portfolio, select the currency.  On this screen you are looking at the contents of your “wallet” you can only add/remove funds in that currency.  eg. sending money from your BTC Wallet on Coinbase to your BTC Wallet on Binance
  2. Click Overview. Now you can see Buy/Sell options.  This allows you to swap one currency for another.
  3. Choose the Sell option for your currency, depositing to your GBP wallet.
Step 2 – Withdraw your GBP
  1. Click Portfolio
  2. Select the GBP asset
  3. Choose withdraw
  4. Withdraw all
  5. Continue…
Categories
Uncategorized

Fix poor quality video in Plex under docker

I’ve recently moved servers and instead of managing my own Plex install, I decided to go with the a docker install.  It took seconds to sort out and I was very happy with it.  That was until I enabled remote access.  Suddenly, all my videos looks started looking terrible quality.

This has been resolved by going to Dashboard -> Settings -> Network and under “Lan Networks” adding the values “172.18.0.0/16,192.168.0.0/24,127.0.0.1″ (without the quotes).

You will need to work out your own values.

To work out the subnet for the plex container:

    $ docker network inspect plex_default|grep Subnet
                     "Subnet": "172.18.0.0/16",

To work out the subnet for your local network (in the majority of cases),

     $ hostname -I | awk '{print $1}'
    192.168.0.25

So, this needs to be : 192.168.0.0/24

Categories
Uncategorized

Using an APEMAN C450 Dash Cam as a security camera with ZoneMinder using Docker

Just plug the APEMAN C450 dash camera into your Linux server via USB and select “PC Camera” using the buttons on the side.

Confirm it works with this command:
ffmpeg -f video4linux2 -s 640x480 -i /dev/video0 -ss 0:0:2 -frames 1 /tmp/out.jpg

Then download this docker-compose config file
https://github.com/dlandon/zoneminder/blob/master/docker-compose.yaml

Add the video device to the docker-compose.yaml file:
devices:
- /dev/video0:/dev/video0

Install/start your docker container:
docker-compose up -d

Then visit the freshly installed system on whatever your IP address that you have configured:
https://192.168.0.25:8443/zm/

To add the dash camera as a monitor :
General Tab:
Source Type = Local
Source Tab:
Source Path = /dev/video0
1280 x 720

Note that, when I first set this up recording, I was getting a corrupt/ green frame of video at the beginning of the recording.  Whatever was causing this made it trigger an event constantly.  To fix this, I went into the settings for /dev/video0, buffer tab and changed Alarm frame count from 1 to 3

Categories
Uncategorized

nginx case insensitive URL

There was a requirement for a website on the server to have a case-insensitive.

There is no simple option in nginx to make it case-insensitive, there are also no nested if statements available.

This isn’t easy to achieve, but the below seems to have done it me (for only 1 URI!)

location ~* ^/TNG/$ {
return 301 https://www.leektown.co.uk/TNG/index.php;
}

location ~* ^/TNG$ {
return 301 https://www.leektown.co.uk/TNG/index.php;
}

set $BOTH "";

# Does the case-insensitive pattern match?
if ( $request_uri ~* ^/TNG/index.php$ )
{
set $BOTH "${BOTH}1";
}

# Is it not an exact match to the correct case?
if ( $request_uri != /TNG/index.php )
{
set $BOTH "${BOTH}2";
}

# If both true, then redirect to the correct case
if ( $BOTH = 12 )
{
return 301 https://www.leektown.co.uk/TNG/index.php;
}
Categories
Plex

Unable to log into Plex Web View

So, I was tinkering with the Plex Media Server settings and then suddenly I got this error in Chrome from my desktop.

“Plex didn’t send any data”

“ERR_EMPTY_RESPONSE”

Visiting my server from https://plex.tv/web worked – really weird.

So, going back over what changes I had made, I found the culprit.

Under the Plex Settings > Settings > Network menu option, I had modified the IP6 “Secure Connections” from “Preferred” to “Required”.  I changed this back to Preferred and that immediately fixed my issue and the web view was working again.

Categories
Uncategorized

Decrypt TP-Link config.bin backup file

Copy your config.bin file to linux then run this command to create a decrypted config.txt :

openssl enc -d -des-ecb -nopad -K 478DA50BF9E3D2CF -in config.bin > config.txt

Categories
Uncategorized

Choosing your own hosting and server type

In the past, I have paid £1000+vat a year for hosting to feed by hosting addiction.  This has whittled down in price over the years and now I’m paying just £42 inc vat!

Choosing the host type

  • Virtual Private Server (VPS)
  • Dedicated Server
  • Cloud VPS
  • Run on your home kit from your home broadband connection

Budget Hosting

Some good value providers in the UK are 123-reg.co.uk and UK2.net   I’ve been with both of them and had a few annoyances (switching my server off | Selling me hosting that was supposed to be maintained, but wasn’t | Me asking them to reboot the host and them saying that it wasn’t where is was supposed to be.  Me asking again… them saying it’s still not there and closing the call) over the years, but in all-in-all they’re worth the money.

However, this has become an absolute no-brainer very recently…  My new provider charge just £3.50 a month for SSD based VPS (mine feels super fast!)  www.vps.net

Premium Hosting

I have used a reseller account in the past and this had all sorts of features like a system for your users to manage their own accounts and resell too.  It all seemed a bit messy to me and eventually I’ve gone for managing it all myself with a few custom written scripts that do things perfectly.

I’ll expand this section as and when.

Categories
Android Llama

Llama – I’m going to be late home

Prerequisites

My setup

I travel from Manchester to Stafford.  My missus leaves the house about 15 mins before I am due to arrive.  The train stop before Stafford is Crewe and the time difference is about 22 mins… perfect timing to message her if late.

So for my example I did the following…

 

  1. Set up an Area called “Crewe
  2.  Set up an Event called “Arrive at Crewe”
    1. Added a Condition for Day of the week = Mon, Tue, Wed, Thur or Fri
    2. Added a Condition for Time Between = 16:00 – 19:00
    3. Added a Condition for Enter Area = Crewe
    4. Added a Condition for Llama variable = When ‘ArrivedAtCrewe’ has a value of ‘False’
    5. Set up an Action of Set Llama variable ‘ArrivedAtCrewe’ to ‘True’
  3. Set up an Event called “Late to Crewe”
    1. Added a Condition for Day of the week = Mon, Tue, Wed, Thur or Fri
    2. Added a Condition for Time Between = 18:05 and 18:06
    3. Added a Condition for Llama variable ‘ArrivedAtCrewe’ has a value of ‘False’
    4. Added a Condition for Llama variable ‘LateToCreweSentSMS’ has a value of ‘False’
    5. Added an Action of run Locale plugin ‘SMS: <number>’ with a message of “I’m late, not arrived at Crewe yet!” (also checking the setting to prevent multiple SMS’s in one hour)
    6. Added an Action of Set Llama variable ‘LateToCreweSentSMS’ to ‘True’
  4. Set up an Event called Arrive at work
    1. Added a Condition for Day of the week = Mon, Tue, Wed, Thur or Fri
    2. Added a Condition for Time Between = 09:30 – 09:45
    3. Added a Condition for Enter Area = Work
    4. Set up an Action of Set Llama variable ‘ArrivedAtCrewe’ to ‘False’
    5. Set up an Action of Set Llama variable ‘LateToCreweSentSMS’ to ‘False’

A further extension to this would be to create another Event which detects Entering Crewe and if the LateToCreweSentSMS is set to True then send another text to say that I have just arrived at Crewe and should be around 22 mins.

EDIT: This isn’t working brilliantly at the moment, as if the train hangs around just outside the station waiting for a platform, then Llama thinks that it has arrived.  I’m working on some logic to detect that it has arrived and then left the area for 5 mins before texting.

Categories
Android Llama

Android automation with Llama

The Llama application is a free automation tool available on the Google Play store.

I have recently set up a few things that make my life much easier.

1) Automatically pre-book my Cross Country seat using their TMR (ten minute reservation) service – if I’m at work at 9:30am.

2) Automatically SMS my missus if I haven’t arrived at the train station before my destination by 18:05.  See here for details on how to do it.

Please comment with life automation that you have come up with.