Skip to content

Instantly share code, notes, and snippets.

View Bazsmagister's full-sized avatar
🎯
Focusing

Bazsmagister

🎯
Focusing
View GitHub Profile
@Bazsmagister
Bazsmagister / IPv6_address_shorthand.txt
Created November 20, 2024 10:58
IPv6 address shorthand
8000/tcp -> [::]:8000 what does '[::]' mean?
The notation [::] is an IPv6 address shorthand representing the unspecified address, also known as "all zeroes" address. When you see 8000/tcp -> [::]:8000, it means that the service is listening on all IPv6 addresses ([::]) on port 8000.
Explanation
IPv6 Address: :: is the shorthand for the IPv6 address 0:0:0:0:0:0:0:0, which essentially means "listen on all available network interfaces".
Port: 8000 indicates the port number on which the service is listening.
In the context of your output:
@Bazsmagister
Bazsmagister / different_breakpoints_between_boostrap_and_tailwind
Created November 18, 2024 13:47
different_boostrap_and_tailwind_breakpoints
Tailwind CSS and Bootstrap have different breakpoints because they are designed
with different philosophies and use cases in mind. Here's a brief overview of the differences and reasons:
Tailwind CSS
Utility-First Design: Tailwind CSS follows a utility-first approach, providing low-level utility classes
for building custom designs without having to write custom CSS.
Customization: Tailwind's breakpoints are highly customizable and can be tailored to fit
the specific needs of a project. The default breakpoints provided by Tailwind are:
@Bazsmagister
Bazsmagister / MySvgComponent.vue
Created November 13, 2024 12:55
MySvgComponent_with_props_vue
<template>
<svg
:width="width"
:height="height"
:viewBox="viewBox"
xmlns="http://www.w3.org/2000/svg"
>
<circle
:cx="circle.cx"
:cy="circle.cy"
@Bazsmagister
Bazsmagister / in_gitattributes_text_auto.txt
Last active July 31, 2024 12:46
What does in .gitattributes * text=auto, and difference between CRLF and LF
// Auto detect text files and perform LF normalization
* text=auto
In a .gitattributes file, setting `text=auto` means that the path is marked for automatic end-of-line normalization.
If Git decides that the content is text, its line endings are normalized to LF on check-in.
This setting allows fine-grained control over how line endings are converted.
https://stackoverflow.com/questions/21472971/what-is-the-purpose-of-text-auto-in-gitattributes-file
from that SO question:
@Bazsmagister
Bazsmagister / german_keyboard_layout.txt
Created July 18, 2024 08:27
German umlauts and es-zett(sharfes s, sharp s) character on linux mint with german language keyboard layout.
System Settings -> Keyboard -> Layouts
Add a layout with the plus sign, and select the German language from the list.
Then you have a little flag icon in the system tray. (if in the options there are enabled using country flaf)
Now with a simple click You can toggle between your favourite lanuages.
You can check the Character Table, if you click on the language flag on the tray,
and click 'Show Character Table'.
@Bazsmagister
Bazsmagister / last_git_commit.md
Last active July 14, 2024 08:49
How to check last git commit?
@Bazsmagister
Bazsmagister / toRef_vs_toRefs.txt
Created July 9, 2024 06:20
vu3 toRef() vs toRefs()
https://vuejs.org/api/reactivity-utilities.html#toref
https://vuejs.org/api/reactivity-utilities.html#torefs
In Vue 3, both toRef() and toRefs() are part of the Composition API and serve different purposes:
toRef():
Converts a single reactive object property to a ref that maintains its connection with the parent object.
Example:
@Bazsmagister
Bazsmagister / php8.md
Last active June 27, 2024 08:42
php8_features

https://php.watch/versions

PHP 8.0

https://www.php.net/releases/8.0/en.php

It contains many new features and optimizations including named arguments, union types, attributes, constructor property promotion, match expression, nullsafe operator, JIT, and improvements in the type system, error handling, and consistency.

  1. Named Arguments: You can now specify only required parameters, skipping optional ones. Arguments are order-independent and self-documented.
  2. Attributes: Instead of PHPDoc annotations, you can use structured metadata with PHP’s native syntax.
@Bazsmagister
Bazsmagister / laravel_octane.txt
Created June 27, 2024 08:10
laravel vs laravel octane
Laravel is a popular PHP web application framework known for its elegant syntax, expressive features, and robust ecosystem.
It provides tools for routing, database interaction, authentication, and more, making it easier to build web applications.
Laravel Octane, on the other hand, is an open-source package that enhances Laravel’s performance.
https://laravel.com/docs/11.x/octane
Here are the key differences:
Performance:
@Bazsmagister
Bazsmagister / mint_hardver_commands.md
Last active June 26, 2024 11:12
linux mint hardver progs and terminal commands

cpu-x (like cpu-z)

inxi -F

lshw -class disk -class storage

sudo dmidecode --type slot