This commit is contained in:
2024-08-10 00:47:22 -05:00
parent f6582b2a2a
commit b87d814c89
11 changed files with 41 additions and 16 deletions
@@ -1,4 +1,6 @@
# Baremetal install of Nextcloud on Debian
# nextcloud_bare_metal_install_on_debian
## Baremetal install of Nextcloud on Debian
### Install packages
@@ -1,11 +1,13 @@
```bin
# nextcloud_ubuntu
```bash
CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'phaiNooc9oibu2shoopo2shah8kohH';
CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost';
FLUSH PRIVILEGES;
exit;
```
```bin
```bash
cd /var/www/nextcloud/
sudo -u www-data php occ maintenance:install \
--database='mysql' --database-name='nextcloud' \
@@ -1,6 +1,8 @@
# openwrt tftp settings
```bin
option enable_tftp '1'
# openwrt_tftp_settings
## openwrt tftp settings
```bash
option enable_tftp '1'
option tftp_root '/srv/tftp'
config match
+4 -2
View File
@@ -1,6 +1,8 @@
```bin
# misc_proxmox_commands
```bash
update-initramfs -u -k all
```
```bin
```bash
pveam update
```
@@ -1,3 +1,5 @@
# proxmox_lxc_mountpoints
```bash
lxc resticbackups mount point
mp0: /mnt/truenas-backups/resticbackups/<servername>,mp=/mnt/resticbackups
@@ -1,4 +1,6 @@
# Userid mappings
# proxmox_lxc_usermappings
## Userid mappings
```bin
lxc.idmap: u 0 100000 1000
lxc.idmap: g 0 100000 1000
@@ -1,3 +1,5 @@
# python_virtual_environment
To create a virtual environment, go to your projects directory and run the following command. This will create a new virtual environment in a local folder named .venv:
```bash
python3 -m venv .venv
+3 -1
View File
@@ -1,3 +1,5 @@
# scott_smb_shares
```bash
#### exports
/mnt/data/media -alldirs -mapall="wettsten":"wettsten" -network 192.168.86.0/24
@@ -6,7 +8,7 @@
/mnt/data -alldirs -mapall="wettsten":"wettsten" -network 192.168.86.0/24
#### samba
# Global parameters
##### Global parameters
[global]
aio max threads = 2
bind interfaces only = Yes
+5 -3
View File
@@ -1,10 +1,12 @@
# sidebar-collapse
# sidebar_collapse
## sidebar-collapse
git clone https://github.com/madodig/wikijs-customization to /home/akanealw/docker/wikijs
in wikijs, go to settings > theme
add to head html section
```bin
```bash
<script>
var collapsibleMenu = true; // Enable or disable collapsible menu
@@ -29,7 +31,7 @@ add to head html section
```
add to body html section
```bin
```bash
<link rel="stylesheet" href="/_assets/wjsccode/mad-wikijs-customization.css">
<script src="/_assets/wjsccode/mad-wikijs-customization.js"></script>
+8 -3
View File
@@ -1,6 +1,11 @@
kill specific process from path
wmic process where ExecutablePath='C:\\Path\\to\\process\\name.exe' delete
# misc_windows_commands
kill specific process from path
```bash
wmic process where ExecutablePath='C:\\Path\\to\\process\\name.exe' delete
```
user shell folders
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
```bash
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
```
@@ -1,3 +1,5 @@
# wireguard_install_lxc
## Run as root
#### Install prereqs