Categories
android games linux

Anbox

Anbox is a compatibility layer that allows mobile applications and games developed for Android to run on Linux. To achieve this, it uses standard Linux technologies like containers (LXC) to separate the Android operating system from the Linux host.

While emulators creates an entire emulated system which has its own kernel etc., Anbox runs the Android system under the same kernel as the host operating system does. No emulation layer is necessary, everything runs directly on the hardware. This approach also allows a much better integration with the host operating system. Anbox puts Android apps into a tightly sealed box without direct access to hardware or your data by mounting Android directory structure whilst using the native Linux kernel to execute applications.

Project is open source, current version is having trouble with kernel 5.7.

Commands

systemctl start systemd-networkd
systemctl start systemd-resolved
systemctl start anbox-container-manager.service
anbox session-manager
adb install package.apk
anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
Categories
web design wordpress

Elementor

Elementor is a live page builder for WordPress. It means that whole process of writing and designing is done directly on the page with no need to press “Update” or go to preview mode. Free version of this WordPress plugin comes with 30 of the most useful widgets such as button, image carousel, tabs, accordion, alert etc. Pro/paid version comes with even more.

Elementor Page Builder can work with basically any WordPress theme that follows general WordPress guidelines. There are also lot of templates, both free and commercial, that you can customize to match your needs. To start from scratch, use Hello Elementor, a lightweight, plain-vanilla theme for this page builder. Keep in mind that this theme is specifically designed to work with Elementor Pro.

Elementor drag and drop on Twenty Twenty theme

Envato, the company behind the ThemeForest marketplace, is also the author of free WordPress plugin called Envato Elements. This plugin offers hundreds Elementor templates for all website niches. Combination of those two plugins can be used to create awesome websites directly from your WordPress dashboard.

Both plugins are open source.

Categories
games linux

Steam Play

Before we understand what Steam Play is, let’s check some prerequisites…

Wine

Wine, originally an acronym for “Wine Is Not an Emulator”, is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems such as Linux, macOS and BSD. Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on-the-fly, eliminating the performance and memory penalties of other methods and allowing you to cleanly integrate Windows applications into your desktop.

CrossOver

Wine is an open-source technology and can be downloaded for free. CrossOver is commercialized version of Wine from CodeWeavers.

Proton

Proton, a tool released by Valve Software and CodeWeavers, allows games which are exclusive to Windows to run on the Linux operating system. It uses a custom version of Wine as well as additional libraries developed alongside it to facilitate this. These include Direct3D to Vulkan translation layers, namely DXVK for Direct3D 9, 10 and 11 and VKD3D for Direct3D 12.

Vulkan

Vulkan is 3D rendering API, successor of OpenGL. Vulkan offers lower overhead, more direct control over the GPU, and lower CPU usage. The overall concept and feature set of Vulkan is similar to Mantle later adopted by Microsoft with Direct3D 12 and Apple with Metal.

Steam Play

Steam Play is compatibility layer built into the official Steam client that allows you to play games from your library that were built for other operating systems. For example, Steam Play uses Proton to allow Linux users to play Windows games.

DOSBox

DOSBox emulates an IBM PC compatible computer running a DOS operating system including many IBM PC compatible graphics and sound cards. This means that original DOS programs and games are provided with an environment in which they can run correctly, even though modern computers have dropped support for the old environment.

Boxtron

Boxtron is Steam Play compatibility tool to run DOS games using native Linux DOSBox. It enables you to play games on Linux that don’t have a Linux build setup on Steam only this is for DOSBox games.

Categories
linux programming web server

Simple Laravel Docker setup

composer create-project laravel/laravel laravel-app
cd laravel-app
touch .docker/Dockerfile
touch .docker/vhost.conf

Content of Dockerfile:

FROM php:7.3-apache
COPY . /srv/app
COPY .docker/vhost.conf /etc/apache2/sites-available/000-default.conf
RUN chown -R www-data:www-data /srv/app && a2enmod rewrite

Content of vhost.conf:

<VirtualHost *:80>
    DocumentRoot /srv/app/public
    <Directory "/srv/app/public">
        AllowOverride all
        Require all granted
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Building image:

docker build --file .docker/Dockerfile -t laravel-app .

Running container:

docker run --rm -p 8080:80 laravel-app

Source: BitPress

Categories
programming web server

Docker Compose

Compose is a tool for defining and running multi-container Docker applications. With Compose, you can use YAML file to configure your application’s services. Then, with a single command, you can create and start all the services from your configuration.

  • define your app’s environment with Dockerfile
  • define services (containers with additional stuff) that make up your app in docker-compose.yml
  • run docker-compose up so Compose can start and run your entire app

Commands

docker-compose ps
docker-compose up -d
docker-compose stop
docker-compose down
docker-compose rm [name]
docker-compose build [name]
or docker-compose build --no-cache
docker-compose up -d
docker-compose logs --follow [service_name]
docker-compose exec [service_name] [command]

Source: freeCodeCamp

Categories
linux programming web server

Docker

Containerization is the process of encapsulating software code along with all of its dependencies inside a single package so that it can be run consistently anywhere. Docker is an open source containerization platform. It provides the ability to run applications in an isolated environment known as a container.

Containers are lightweight virtual machines that can run multiple containers simultaneously. Containers can be deployed on servers.

Images are multi-layered self-contained files with necessary instructions to create containers. Containers are runnable instances of images. If we compare images with classes from OOP then containers are the objects. Images are stored in registries such Docker Hub, the default public registry for storing images.

Arch install

pacman -Sy docker docker-compose
systemctl start docker.service
gpasswd -a benke docker
docker info
kitematic

Images commands

docker images
docker image ls
docker rmi [image_id]
docker run [image_id]
docker create [image_id]
docker start [container_id]
docker run [image_id] -d
docker pull [image_id]

Containers commands

docker run -it docker/whalesay cowsay Petar
docker run -it -p 80:80 nginx
docker ps
docker ps -a
docker container ls
docker start [container_id]
docker restart [container_id]
docker exec [container_id] [command]
docker logs [container_id]
docker stop [container_id]
docker rm [container_id]
docker container rm --force [container_id]
docker system prune
docker inspect [container_id] (look for RestartPolicy in the output)
docker update --restart=no [container_id]

Dockerfile

  • FROM
  • WORKDIR
  • COPY
  • RUN
  • EXPOSE
  • ENTRYPOINT
  • CMD

Source: freeCodeCamp

Categories
programming web server

Elastic Stack

Elasticsearch

Search engine that provides full-text search using JSON interface over HTTP protocol. Elasticsearch excels in indexing streams of semi-structured data such as logs or decoded network packets.

Logstash

Data collecting and log-parsing engine.

Beats

Data shippers that you install as agents on your servers to send operational data to Elasticsearch. Beats can send data directly to Elasticsearch or via Logstash for further processing.

Kibana

Visualisation dashboard on top of the content indexed on an Elasticsearch cluster. Kibana is used to search, view and interact with data stored in Elasticsearch indices.

Categories
Uncategorized

Besplatni fidovi sa sportskim rezultatima

Fudbal

https://free.scorespro.com/soccer2.php

http://m.flashscore.co.uk/

Tenis

https://free.scorespro.com/tennis.php

http://m.flashscore.co.uk/tennis/

Košarka

https://free.scorespro.com/basketball.php

http://m.flashscore.co.uk/basketball/

Američki fudbal

https://free.scorespro.com/american-football.php

http://m.flashscore.co.uk/american-football/

Hokej

https://free.scorespro.com/hockey.php

http://m.flashscore.co.uk/hockey/

Bejzbol

https://free.scorespro.com/baseball.php

http://m.flashscore.co.uk/baseball/

Odbojka

https://free.scorespro.com/volleyball.php

http://m.flashscore.co.uk/volleyball/

Rukomet

https://free.scorespro.com/handball.php

http://m.flashscore.co.uk/handball/

Ragbi

https://free.scorespro.com/rugby.php

https://free.scorespro.com/rugby-league.php

http://m.flashscore.co.uk/rugby-union/

http://m.flashscore.co.uk/rugby-league/

Formula 1

https://free.scorespro.com/formula.php

Ostali sportovi

http://m.flashscore.co.uk/others/

Categories
games

Open Source games

0 A.D.https://play0ad.com/
7 Kingdoms
Anodynehttps://github.com/analgesicproductions/Anodyne-1-Repo
Armagetronad
Atomikshttps://aur.archlinux.org/packages/atomiks/
Battle of Wesnoth, The
BStonehttps://github.com/bibendovsky/bstone
Bytepathhttps://github.com/a327ex/BYTEPATH
C-Dogs SDLhttps://github.com/cxong/cdogs-sdl
Cataclysm: Dark Days Aheadhttps://cataclysmdda.org/
Charge Kidhttps://gitlab.com/uspgamedev/charge_kid
Command & Conquer Remastered Collectionhttps://github.com/electronicarts/CnC_Remastered_Collection
CorsixTHhttps://github.com/CorsixTH/CorsixTH/
Cortex Command Open Sourcehttps://github.com/liberated-cortex/CCOSS
Daggerfall Unityhttps://www.dfworkshop.net/projects/daggerfall-unity/live-builds/
Dark Mod, Thehttp://www.thedarkmod.com/main/
Dead Ascendhttps://github.com/Larpon/DeadAscend
Death and Taxeshttps://github.com/oakwarrior/DeathAndTaxes
Destination Solhttps://github.com/MovingBlocks/DestinationSol
DevilutionXhttps://github.com/diasurgical/devilutionX
Doomsday (Doom, Heretic, Hexen)
Dune Dynastyhttp://dunedynasty.sourceforge.net/
Dune Legacyhttp://dunelegacy.sourceforge.net/website/
Empty Epsilon
Endless Skyhttps://endless-sky.github.io/
ET: Legacyhttps://www.etlegacy.com/
Extreme Tux Racer
Exulthttp://exult.sourceforge.net/
Fertile Crescent, Thehttps://lincread.itch.io/the-fertile-crescent
Flotillahttps://github.com/blendogames/flotilla
Force Engine, Thehttps://theforceengine.github.io/
Fractured Realmshttps://www.moddb.com/mods/fractured-realms/news/fractured-realms-pre-release-available
Freeablohttps://freeablo.org/
Freecivhttp://www.freeciv.org/
Freedoomhttps://freedoom.github.io/
FreeOrionhttps://snapcraft.io/freeorion
FreeSpace 2 Openhttps://github.com/scp-fs2open/fs2open.github.com
Gravity Bonehttps://github.com/blendogames/gravitybone
GZDoomhttps://zdoom.org/index
Juliushttps://github.com/bvschaik/julius
KeeperRLhttps://github.com/miki151/keeperrl
KKnD
LBreakout2
LGeneral
LMarbles
LTris
Meteoritehttps://github.com/Bauxitedev/meteorite
Mindustryhttps://github.com/Anuken/Mindustry
Minetesthttps://www.minetest.net/
Mudlethttps://www.mudlet.org/
Naevhttps://naev.org/
NBloodhttps://github.com/nukeykt/NBlood
Openagehttps://github.com/SFTtech/openage
OpenBORhttps://github.com/DCurrent/openbor
OpenDUNEhttps://github.com/OpenDUNE/OpenDUNE
Open Fodderhttp://openfodder.com/
OpenLocohttps://github.com/OpenLoco/OpenLoco
OpenMC2https://github.com/LRFLEW/OpenMC2
OpenMWhttps://openmw.org/en/
OpenRAhttps://github.com/OpenRA/OpenRA
OpenRWhttps://github.com/rwengine/openrw
Open Surgehttps://opensurge2d.org/
OpenTESArenahttps://github.com/afritz1/OpenTESArena
OpenTTDhttps://www.openttd.org/en/download-stable
Open Rails
OpenRCT2https://github.com/OpenRCT2/OpenRCT2
OpenVIIIhttps://makipl.github.io/OpenVIII/
OpenXcomhttps://openxcom.org/
PCExhumedhttps://forums.duke4.net/topic/10872-pcexhumed-exhumedpowerslave-pc-port/
Pingus
Pioneerhttps://pioneerspacesim.net/#slide0
Planetary Sanitations Inc.https://v-ktor.itch.io/planetary-sanitations-inc
Quadrilateral Cowboyhttps://github.com/blendogames/quadrilateralcowboy
Rapid Rescue: A reinvented Labyrinth gamehttps://github.com/Azza292/RapidRescue
Razehttps://github.com/coelckers/Raze/
Red Eclipsehttps://www.redeclipse.net/
Remnants of the Precursorshttps://rayfowler.itch.io/remnants-of-the-precursors
San Andreas Unityhttps://github.com/GTA-ASM/SanAndreasUnity
Session Sevenhttps://github.com/advdotnet/Session-Seven
shapez.iohttp://github.com/tobspr/shapez.io
Simutrans
Slippihttps://slippi.gg/
Soldathttps://github.com/Soldat/soldat
SpringRTShttps://springrts.com/
Star Ruler 2
Stracciatellahttps://github.com/ja2-stracciatella/ja2-stracciatella
Strange Adventures in Infinite Spacehttps://github.com/kuroneko/sais
Streets of Rage Remakehttps://aur.archlinux.org/packages/streetsofrageremake/
SuperStarfighterhttps://github.com/notapixelstudio/superstarfighter
SuperTux
SuperTuxKarthttps://supertuxkart.net/Main_Page
Supply Chainhttps://gitlab.com/Cheeseness/supply-chain
Surviv.iohttps://surviv.io/
Tales of Maj'Eyalhttps://te4.org/news
Terminal Phasehttps://gitlab.com/dustyweb/terminal-phase
Thirty Flights of Lovinghttps://github.com/blendogames/thirtyflightsofloving
Thrivehttps://revolutionarygamesstudio.com/
Teeworldshttps://github.com/teeworlds/teeworlds
UAlbionhttps://www.gamingonlinux.com/articles/ualbion-is-an-open-source-game-engine-for-the-1995-classic-rpg-albion.15938
UnCivhttps://github.com/yairm210/UnCiv
UniverCityhttps://github.com/Thinkofname/UniverCity
Velorenhttps://veloren.net/
VVVVVVhttps://github.com/TerryCavanagh/vvvvvv
Warzone 2100http://wz2100.net/
Widelandshttps://wl.widelands.org/
Wyrmsun
Xonotichttps://xonotic.org/
Yorghttps://www.ya2.it/pages/yorg.html#yorg
Categories
wordpress

Struktura WordPress teme

.
├── 404.php
├── archive.php
├── assets
│   ├── css
│   ├── fonts
│   ├── images
│   └── js
├── classes
├── comments.php
├── footer.php
├── front-page.php
├── functions.php
├── header.php
├── inc
├── index.php
├── page.php
├── readme.txt
├── screenshot.png
├── search.php
├── single.php
├── style.css
├── template-parts
└── templates