Skip to content

Instantly share code, notes, and snippets.

View lnxfsf's full-sized avatar
🖥️
Building from source..

Igor Lerinc lnxfsf

🖥️
Building from source..
View GitHub Profile
@lnxfsf
lnxfsf / variousCountryListFormats.js
Created July 6, 2023 14:46 — forked from incredimike/variousCountryListFormats.js
List of Countries in various Javascript data structures: Alphabetical country lists & Country data objects.
// Lists of countries with ISO 3166 codes, presented in various formats.
// Last Updated: July 30, 2020
// If you're using PHP, I suggest checking out:
// https://github.com/thephpleague/iso3166
// or Laravel: https://github.com/squirephp/squire
//
// JS developers can check out:
// https://www.npmjs.com/package/iso3166-2-db
//
[How TO - Hide Menu on Scroll](https://www.w3schools.com/howto/howto_js_navbar_hide_scroll.asp)
[How TO - Slide Down a Bar on Scroll](https://www.w3schools.com/howto/howto_js_navbar_slide.asp)
# Javascript
```js
[Ext2Fsd ](https://www.mediafire.com/file/8ozlcoybnehot58/Ext2Fsd-0.69.exe/file)
If the Windows drive letter is not automatically assigned for an ext2/3/4 partition, select the partition and press F4 to assign a drive letter automatically. Alternatively, you can press F10 for mountpoint management and choose which drive letter you want to use, then press [Done] to mount the ext4 filesystem.
There’s one important thing that has to be followed when using Ext2Fsd:
When you want to unmount an ext4 partition, first select the partition in Ext2 volume manager, then press [F11] to “Flush cache to disk” and then press [F10] to open “Change drive letters” where you can press [Remove] to remove the Windows drive letter that was assigned to the ext4 file system.
sudo mkdir -p /etc/X11/xorg.conf.d
sudo vim /etc/X11/xorg.conf.d/20-intel.conf
```
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
Option "AccelMethod" "sna"
1- instaliraj xinput
`sudo dnf install xinput`
-------------------
2- kreiraj skriptu u ~/my_scripts kao 'toggle-touchpad.sh'
- Create repo in GitHub
- Clone in directory where you want it (this is for PC)
- And in terminal, just make first commit and push. So plugin in Obsidian can do those easily next time.
# Windows/Linux
- Set up ssh keys
- Install https://github.com/denolehov/obsidian-git
# Test your PC hardware in GNU/Linux
1. Check the system's specifications: Use the `lshw` command to get detailed information about the system's hardware components, such as the processor, memory, storage devices, and network interfaces.
2. Test the processor: Use the `lscpu` command to check the processor's specifications, such as the number of cores, clock speed, and architecture.
3. Test the memory: Use the `free` command to check the amount of free and used memory on the system. You can also use the `memtest86+` tool to perform a more thorough test of the system's memory.
4. Test the storage devices: Use the `lsblk` command to check the storage devices connected to the system, including their size and file system type. You can also use the `smartctl` tool to check the health of the storage device.
When you create LXC, check it's IP with: `lxc list`
```plaintext
+----------+---------+---------------------+-----------------------------------------------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+----------+---------+---------------------+-----------------------------------------------+-----------+-----------+
| myfed | RUNNING | 10.27.184.33 (eth0) | fd42:4663:9358:c21d:216:3eff:feb5:e08d (eth0) | CONTAINER | 0 |
+----------+---------+---------------------+-----------------------------------------------+-----------+-----------+
# Centralized logging with rsyslog
# Configuring the server to receive logs
Edit server config file:
```plaintext
sudo nano /etc/rsyslog.conf
```
# ALS in GNU/Linux
# Access ACL Example
Let us start by creating a directory and checking its permissions. The *umask* determines which permissions will be masked off when the directory is created. A umask of 027 (octal) disables write access for the owning group and read, write, and execute access for others.
```plaintext
$ umask 027
$ mkdir dir
$ ls -dl dir