Skip to content

Instantly share code, notes, and snippets.

View pietryszak's full-sized avatar

Paweł Pietryszak pietryszak

View GitHub Profile
@mhtsai1010
mhtsai1010 / promiscuous_mode.txt
Created August 29, 2016 02:46
Enable promiscuous mode of vmware on a Linux Host
Ref: https://bbs.archlinux.org/viewtopic.php?id=65508
1/ Method 1
# First, create a new Linux group which has permission to use promiscuous mode, and add yourself to the group.
$ groupadd promiscuous
$ usermod -a -G promiscuous <your_user_id>
# Update the group ownership and access permission of /dev/vmnet*
$ chgrp promiscuous /dev/vmnet*
$ chmod g+rw /dev/vmnet*
@magnetikonline
magnetikonline / README.md
Last active March 10, 2024 20:31
VirtualBox create host-only interface and attach to VMs.
@curioswati
curioswati / flatpak-dmenu.md
Last active May 26, 2024 19:44
To run flatpak installed apps from dmenu.

To run a flatpak app from dmenu, you can create a symlink for the app in /usr/bin. You can find the flatpak apps binary link in /var/lib/flatpak/exports/bin/ on ubuntu. E.g. to run Rocket Chat (installed from flatpak via software center), you can do something like this:

sudo ln -s /var/lib/flatpak/exports/bin/chat.rocket.RocketChat /usr/bin/rocket-chat

This way you will be able to find it in the dmenu.

Resources:

@Cardoso1994
Cardoso1994 / i3_gruvbox_material.config
Last active November 18, 2023 22:26
Gruvbox material colorscheme for i3wm
################################
#### Gruvbox Material Light ####
################################
set $bg #fbf1c7
set $fg #654735
set $red #c14a4a
set $orange #c35e0a
set $green #6c782e
set $blue #45707a
set $purple #945e80
@eloylp
eloylp / Fedora35Hibernation.md
Last active June 22, 2024 18:17
Fedora 35 hibernation with swapfile, only for hibernation and resume

Fedora35 hibernation

This guide helps to configure the hibernation on a default Fedora35 (also worked fine in previous Fedora34) installation by using a swap file. The Fedora35 installation comes with btrfs as default filesystem. Also, it comes with a zram swap device:

$ swapon
NAME       TYPE      SIZE USED PRIO
/dev/zram0 partition   8G   0B  100
@the-spyke
the-spyke / pipewire.md
Last active July 1, 2024 12:50
Enable PipeWire on Ubuntu 22.04

Enable PipeWire on Ubuntu 22.04

This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like pipewire-debian, you might get into conflicts.

Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.

Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.

Based on Debian Wiki, but simplified for Ubuntu 22.04.