Advanced Search
Search Results
161 total results found
Install Wireguard on Docker
You will need to have Docker and Docker-compose before you can do this part. This is the .yaml file that needs to be configured. .yml version: "2.1" services: wireguard: image: lscr.io/linuxserver/wireguard:latest container_name: wireguard ...
UFW
Allow ports sudo ufw allow 22 remove ports sudo ufw delete allow 22
Mount drives
If disk is already formatted, You can mount it. You may need to create a file system for it though. If you do, Replace XY accordingly, but double check that you are specifying the correct partition mkfs.ext4 /dev/sdXY Do that to all the drives/partitions y...
Install Photoprism on Docker
Needs to have a data base as well as volumes for the db and photoprism You will need Docker and Docker Compose Install Docker images: [[mariadb]] and [[160 Photoprism]] #### Docker Compose .yml file: version: '3' services: mariadb2: image: mariad...
Install Docker on local drive
Do you have docker? `docker -v` Install Docker `apt install docker` Do you have docker-compose? docker-compose -v - Make a "project" directory somewhere and place the compose.yml file in it. ## Docker volumes - Find a place to store the cache, me...
Backing up
RSync copies files and can sync between servers Use RSync in [[Cronjob]]Archive Backups with [[tar]] TEST WITH: `--dry-run` rsync -aAXv --delete --exclude={/home/danicus/.cache/*} /home /mounted/backup a= archive= its a few other tags as well A= kee...
How to restore backup with RSync
https://askubuntu.com/questions/1011136/how-to-restore-backup-with-rsync asically just revierse the order for the backup. -tag it rsync -aAXvThen start from backup directory and end with destination directory sudo rsync -aAXv --delete /mounted/backups/cpback...
Creating website templates | Basic
Templates and themes are not the same. A theme has a layout for a page that is used in multiple pages. A template is a copy of the code for any one specific script that you will use over, and over. You will u need to copy down a template each time you use it...
Install HubSpot CLI into folder
Create a folder where your website/demo will live. Because... the below code will pull from Hubspot and add the CLI language to the folder you are in. So, navigate VSCode to the folder you need to be in first. There is where you will run the below command to e...
Upload from VScode to HubSpot account
Syntax:npx hs upload <local/file> <destination/hubspot/location> npx hs upload test-theme test-theme
Install Node.js and NPM
Install Node.js as you would any other software. Do a general install to your computer. Refer to:https://code.visualstudio.com/docs/nodejs/nodejs-tutorial Install Node.js on your OS.https://nodejs.org/en/download/package-manager Now you should be able ...
Download a theme from HubSpot
How to download theme: You will first need to find the theme that you want from HubSpots theme area. This command will pull from HubSpot to your locale file in VScode. Example: hs fetch @hubspot/barricade <destination-folder> How it looks: hs fetch @hubs...
Create HubSpot Theme | Boilerplate
In terminal run <npx @hubspots/account/location /your/locate/saveto/location> npx @hubspot/create-cms-project test-theme The "test-theme" will also be the name of the file that the boilerplate files are saved under.
Download from HubSpot account to VScode
Syntax:npx hs download <destination/hubspot/location> <local/file> npx hs fetch hs/location ./local/location
DND {% dnd %}
Refer to: https://developers.hubspot.com/docs/cms/hubl/tags/dnd-areas -{% dnd_area %} tag supplies the default content for the drag and drop area. {% dnd_area "unique_name", class="main" %} {% end_dnd_area %} dnd_area tags can also contain the followin...
Modules {% module %}
Refer to: https://developers.hubspot.com/docs/cms/building-blocks/modules/using-modules-in-templates You must first create a module before you can use this tag. Then, you can use this to reference a module and use it in a template. This will be our custom m...
.css auto adjust columns @media
This is tagged at the "class" in the HTML. If you are using this for a Hubl module, include a class area for that module. Most likely you will put it at the beginning or first <div> for that module. <div class="row"> In the .css you will include the follo...
Parent and Child | Basic Rules for .css
To link a .css from the .html Add the script into the <header> bock. <link rel="stylesheet" href="./junk1.css"> Include your own file source location (href=) Learn more here:https://www.codemahal.com/parent-and-child-elements-in-css Understanding pare...