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) => {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DATAPATH=$(dscl localhost -read /SEARCH CSPSearchPath | grep -m 1 "Active" | sed 's/^ *//') | |
dscl -u $USER -p $DATAPATH -p $HOME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clears bash history | |
cat /dev/null > ~/.bash_history | |
# Prevent history from being recorded | |
ln -s ~/.bash_history /dev/null | |
# A copy of the history is stored in memory and written to the file uppon logout. | |
# To get around this: | |
cat /dev/null > ~/.bash_history && history -c && exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implementation of hook_elements(). | |
*/ | |
function referralsources_elements() { | |
return array('referralsources_select' => array( | |
'#input' => TRUE, | |
'#process' => array('referralsources_select_process'), | |
'#element_validate' => array('referralsources_select_validate'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while IFS='' read -r line || [[ -n "$line" ]] | |
do | |
user=$(echo $line | cut -d: -f 1) | |
domain=$(echo $line | cut -d' ' -f 2) | |
printf "\n\nHost $domain\n\tHostName $domain\n\tPort 22222\n\tUser $user\n\tIdentityFile ~/.ssh/id_rsa" | |
done < /etc/domainusers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for user in $(cat /etc/domainusers | cut -d: -f 1) | |
do | |
if [ ! -d /home/$user/.ssh ] | |
then | |
mkdir /home/$user/.ssh | |
chown "$user":"$user" /home/$user/.ssh | |
fi | |
cp /root/.ssh/authorized_keys /home/$user/.ssh | |
chown "$user":"$user" /home/$user/.ssh/authorized_keys |
NewerOlder