Skip to content

Instantly share code, notes, and snippets.

View kowalski7cc's full-sized avatar
🐲
Rawr! I'm a dragon!

Kowalski Dragon kowalski7cc

🐲
Rawr! I'm a dragon!
View GitHub Profile
@pojntfx
pojntfx / main_csd.js
Created May 26, 2024 03:59
Transparent WebView & GTK4/libadwaita Windows
import Adw from "gi://Adw?version=1";
import Gtk from "gi://Gtk?version=4.0";
import Gdk from "gi://Gdk?version=4.0";
import WebKit from "gi://WebKit";
const application = new Adw.Application({
application_id: "com.github.pojntfx.webviewTransparentDemo",
});
application.connect("activate", () => {
sudo chroot /mnt/sysroot /bin/bash --login
# set partition codes
sgdisk -t 1:ef00 /dev/vda
sgdisk -t 2:8304 /dev/vda
partprobe
# remove GRUB and exclude it from being reinstalled
rpm -v --nodeps --erase $(rpm -qa | grep "^grub2-\|^os-prober-\|^grubby-")
echo "exclude=grub2-*,os-prober,grubby" >> /etc/dnf/dnf.conf
@ajeetraina
ajeetraina / docker-compose.yml
Created October 29, 2017 12:21
Docker Compose File for MacVLAN Network Driver ( Single Node)
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
networks:
- myvlan
@shamil
shamil / mount_qcow2.md
Last active July 23, 2024 11:25
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@felipeborges
felipeborges / WebkitSample.js
Last active February 22, 2024 20:56
JavaScript (Gjs)(GTK3) Webkit Sample. Run: "gjs WebkitSample.js"
// Updated in August 2022
imports.gi.versions.Gtk = '3.0';
const { Gtk, GObject, WebKit2: WebKit } = imports.gi;
Gtk.init(null);
const WebBrowser = GObject.registerClass(
class WebBrowser extends Gtk.Application {