Lravel Jetstream

Starting from Laravel 8 Laravel implemented scaffolding system – Jetstream composer require laravel/jetstream There are two approaches: 1 – Install Jetstream With Livewire php artisan jetstream:install livewire php artisan jetstream:install livewire –teams 2 – Install Jetstream With Inertia php artisan jetstream:install inertia php artisan jetstream:install inertia –teams   URL to […]

ThreeJS Bits

Some tips   Introduction Cameras Perspective camer Changes size with the distance from the camera Is the most natural way of looking at a scene Orthographic camera Has no perspective effects Is used in technical drawings or in some isometric games Texture Maps Are 2D images that are mapped on […]

Css Selector Reference + pseudo selectors

  Sibling Selector .class ~ p <header> <p>etc..</p> <div class=”class”></div> <p>This paragraph will be selected</p> <div> <p>etc..</p> </div> <p>This paragraph will be selected</p> </header>   Adjacent Sibling Selector .class + p <header> <p>etc..</p> <div class=”class”></div> <p>This paragraph will be selected</p> <div> <p>etc..</p> </div> <p>etc..</p> </header>   Pseudo – classes a:link […]

Working with 3D assets

Usefull online sources of 3D Sketchfab CGTrader TurboSquid Free3D Bitgem3D Mixamo Clara.io   Preview 3D Models glTF Viewer   Blender 3d Plugin || App – Verge 3d Can be downloaded from soft8, or installed from within Blender plugins section.   Software Adding the glTF Viewer Importer Exporter  to Blender google […]

Javascript dot.GUI

Packaged Builds The easiest way to use dat.GUI in your code is by using the built source at <script type=”text/javascript” src=”dat.gui.min.js”></script> Installing from npm $ npm install –save dat.gui // CommonJS: const dat = require(‘dat.gui’); // ES6: import * as dat from ‘dat.gui’; const gui = new dat.GUI();   Basic […]

Nginx conf + ssl

server { listen 443 ssl http2; server_name www.example1.com example1.com; port_in_redirect off; rewrite /wp-admin$ $scheme://$host$uri/index.php?q=$1 permanent; ssl_certificate /etc/nginx/ssl/example1/example1_chain.crt; ssl_certificate_key /etc/nginx/ssl/example1/example1.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:20m; ssl_session_timeout 60m; client_max_body_size 50M; #add_header Strict-Transport-Security “max-age=31536000”; #add_header X-Content-Type-Options nosniff; location / { proxy_pass http://127.0.0.1:80; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Host $http_host; […]

Master Linux cmd History – 15 Examples

1. Display timestamp using HISTTIMEFORMAT Typically when you type history from command line, it displays the command# and the command. For auditing purpose, it may be beneficial to display the timepstamp along with the command as shown below. # export HISTTIMEFORMAT=’%F %T ‘ # history | more 1 2008-08-05 19:02:39 […]

Linux Laptop Switch power on

For 13.10 – 20.04.1: To make Ubuntu do nothing when laptop lid is closed: Open the /etc/systemd/logind.conf file in a text editor as root, for example, sudo -H gedit /etc/systemd/logind.conf If HandleLidSwitch is not set to ignore then change it: HandleLidSwitch=ignore Make sure it’s not commented out (it is commented out if it is preceded by […]