Skip to content

Instantly share code, notes, and snippets.

@the-paulus
the-paulus / Solus-VBox-Additions.sh
Last active December 9, 2021 06:12
Cheat sheet for installing VirtualBox's Guest Additions
eopkg upgrade -y
eopkg install -y -c system.devel
# LTS Kernel
eopkg install -y linux-lts linux-lts-headers xorg-server-devel
# Current Kernel
eopkg install -y linux-current-headers xorg-server-devel
reboot
@the-paulus
the-paulus / MacOSADPwdChange.sh
Created April 19, 2018 18:24
Change Active Directory password from the terminal.
#!/bin/bash
DATAPATH=$(dscl localhost -read /SEARCH CSPSearchPath | grep -m 1 "Active" | sed 's/^ *//')
dscl -u $USER -p $DATAPATH -p $HOME
@the-paulus
the-paulus / msi-x99a.config
Created August 18, 2018 05:36
Linux Kernel configuration for an MSI x99a motherboard.
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.9.95-gentoo Kernel Configuration
#
#
# Gentoo Linux
#
CONFIG_GENTOO_LINUX=y
CONFIG_GENTOO_LINUX_UDEV=y
@the-paulus
the-paulus / LivewireWYSIWYG.md
Created September 27, 2023 07:46
Demonstrates how to use a WYSIWYG editor with Livewire.

resources/js/app.js

import ClassicEditor from "@ckeditor/ckeditor5-build-classic";
ClassicEditor.create(document.querySelector('#body')).then( (editor) => {
  editor.model.document.on('change:data', (e) => {
    let componentId = Livewire.components.getComponentsByName('contact-form')[0].id
    Livewire.find(componentId).set('body', editor.getData())
  })
}).catch( (error) => {