Hi im charlie, single dad to two children. this blog is to talk about anything i find intresting. From computing with linux to RC cars to dog walks.
“To whom it may concern, fuck you.”
Valterri Bottas
-
Display minecraft status
A small webpage for displaying the results of a Server ping
<!DOCTYPE html> <html> <style> body, html { background: url(https://negativerocks.co.uk/Files/Header.png) center no-repeat; background-size: cover; min-height: 100%; font-family: 'Roboto Mono', monospace; font-size: 15px; display: flex; align-items: center; justify-content: center } body:before { content: ""; width: 100%; height: 100%; background-color:rgba(221, 207, 255, 255); position: absolute; top: 0; left: 0; z-index: 10 } h1, h2 { font-weight: 400; letter-spacing: -2px } .card { position: relative; margin: 0 auto; padding: 0; width: 200px; min-width: 350px; background: #ffffff; border-radius: 5px; box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.3); -webkit-animation: fadein 2s; animation: fadein 2s; overflow: hidden; z-index: 999; } .header { position: relative; z-index: 1; width: 100%; height: 180px; box-shadow: 0 4px 3px #0002; overflow: hidden; } .card img { width: 100%; transition: all 1s ease; z-index: 0 } .image { width: 100%; height: 180px; cursor: crosshair; overflow: hidden; } .image:hover img { -webkit-transform: scale(1.2, 1.2); transform: scale(1.2, 1.2); } .header h2 { position: absolute; bottom: 0; margin: 0; width: 100%; padding: 0 10px; color: #fff; text-transform: uppercase; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%); } .icon { position: absolute; background: #fff; right: 10px; top: 135px; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: 0 4px 3px #0002; z-index: 9 } #rest { padding: 30px 15px; line-height: 30px; color: #000d42 } </style> <body></body> <div class="card"> <div class="icon"> <img src="https://pbs.twimg.com/profile_images/808180587605331969/u-CULTwl_400x400.jpg" id="favicon"></div> <div class="header"> <div class="image"> <img src="https://negativerocks.co.uk/Files/Header.png" alt="" /> </div> <h2>B&C SMP</h2> <!-- put server name here !--> </div> <div id="rest">Loading ...</div> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <script> //based on a pen by @robinselmer var url = "https://api.minetools.eu/ping/mineserver.charliestelling.co.uk/25565"; //insert server here $.getJSON(url, function(r) { //data is the JSON string if (r.error) { $('#rest').html('Server Offline'); return false; } var pl = ''; if (r.players.sample.length > 0) { pl = '<br>OP: ' + r.players.sample[0].name; } $('#rest').html(r.description.replace(/§(.+?)/gi, '') + '<br><b>Players Online:</b> ' + r.players.online + pl + '<br><b>mineserver.charliestelling.co.uk</b>'); $('#favicon').attr('src', r.favicon); }); </script> </body> </html>
api.minetools.eu
-
Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found.
ran into this error its quite simple just
systemctl start systemd-resolved.service systemctl enable systemd-resolved.service
-
moonrakers scores
Drew 14*1 tyler 3 charlie 5*1 *1 means wins that where played to a diffrent standard -
Nginx helpful tips
to set root location – etc/nginx/sites-enabled/default
root /srv/custom;
Example
# SSL configuration server { listen 443 ssl http2 default_server; listen [::]:443 ssl http2 default_server; server_name negativerocks.com; ssl_certificate /etc/nginx/ssl/negativerocks.co.uk/fullchain.pem; ssl_certificate_key /etc/nginx/ssl/negativerocks.co.uk/key.pem; include snippets/ssl-params.conf; client_max_body_size 40M; server_tokens off; root /srv/custom;
stop start restart nginx
sudo systemctl start nginx
sudo systemctl stop nginx
sudo systemctl restart nginx
-
Indexed libraries Nginx
Include in – etc/nginx/sites-enabled/default
location /Files/ { autoindex on; }
location /libraries/ { autoindex on; }
-
One Peice TCG – a game plagued by supply issues
One Peice TCG: Would have a higher score if the supply issues where over – admin
One peice TCG is a trading card game based on the ONE PEICE anime. with over 20 years, 1000+ eppisodes, manga and mutiple movies it has an incredibly diverse and and discript history. the only problem the game has, is you CANNOT FUCKING BUY IT.
Bandai the parent company has had a catastrophic supply issue lasting over a year making absolutly no products avaliable at msrp. with most products selling for two to three times the masrp ammount, due to a unequivocal failure to meet demand.
Op06 booster box is their most recent release, while supply issues hit all over europe, england fared the worst. with distrabutors only reciving the product 5 to 14 days later than the rest of the world. shipments where cut so low most allocations where canceled at the shop level. meaning pre orders, where unable to be forfilled and only a very few ammount of people getting any packets let alone any box’s.
The preditory nature of the bussness practices used by local card stores and online stores seem to be crossing the line into a legal grey area. with stores holding back 100’s of products in order to infalte the value. stores cancelling orders to then relist products at higher prices.
Its an absolte tradagey because the game itsself is incredibly fun to play.
-
Daboys Mario Spreadsheet
We havent played for a while i just want this avalible online for when we do.
Names Total Avrage Charlie 4564 190.1666 Drew 4230 176.25 Tyler 3851 160.4583 16 Rounders