Skip to content

Instantly share code, notes, and snippets.

View lauritssn's full-sized avatar

Laurits Søgaard Nielsen lauritssn

View GitHub Profile
@lauritssn
lauritssn / clids.js
Last active June 5, 2023 08:09
Get clids and save to form
<script>
// Initialize data layer
window.dataLayer = window.dataLayer || [];
// Define form fields
let url_clids = {
fbclid: "wpforms-1885-field_40", gclid: "wpforms-1885-field_41", msclkid: "wpforms-1885-field_42", lifatid: "li_fat_id"
};
// Define cookie fields - use same keys as url_clids
@lauritssn
lauritssn / install-cuda-10-bionic.sh
Created September 28, 2019 18:55 — forked from bogdan-kulynych/install-cuda-10-bionic.sh
Install CUDA 10 on Ubuntu 18.04
#!/bin/bash
# Purge existign CUDA first
sudo apt --purge remove "cublas*" "cuda*"
sudo apt --purge remove "nvidia*"
# Install CUDA Toolkit 10
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub && sudo apt update
sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
@lauritssn
lauritssn / cuda_10.0_installation_on_Ubuntu_18.04
Created September 28, 2019 15:44 — forked from Mahedi-61/cuda_11.8_installation_on_Ubuntu_22.04
Cuda 10.0 complete installation procedure for ubuntu 18.04 LTS
#!/bin/bash
## This gist contains step by step instructions to install cuda v10.0 and cudnn 7.5 in Ubuntu 18.04
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
@lauritssn
lauritssn / ubuntu1804cuda10.sh
Created September 28, 2019 15:36 — forked from fo40225/ubuntu1804cuda10.sh
install cuda 10 on ubuntu 18.04
echo "blacklist nouveau" | sudo tee -a /etc/modprobe.d/blacklist-nouveau.conf > /dev/null
echo "options nouveau modeset=0" | sudo tee -a /etc/modprobe.d/blacklist-nouveau.conf > /dev/null
sudo update-initramfs -u
sudo apt update
sudo apt -y install build-essential
sudo apt update
sudo apt -y install linux-headers-$(uname -r)
## https://github.com/virtualzone/landroid-bridge
########################################################################
# Landroid MQTT Sensors
########################################################################
- platform: mqtt
state_topic: "landroid/status/dateTime"
name: "Landroid - Latest Status"
unit_of_measurement: ""
value_template: "{{ value | timestamp_local }}"