Skip to content

Instantly share code, notes, and snippets.

@dougcooper
dougcooper / 90-set-node-property.lua
Last active May 8, 2023 17:37
how to set a node property with wireplumber script
vlc_om = ObjectManager {
Interest {
type = 'node',
Constraint { 'node.name', 'matches', 'VLC*' },
},
}
vlc_om:connect('object-added', function(om,node)
Log.message('VLC input connected')
node.properties['priority.session'] = 1050
{
"meta": { "theme": "elegant" },
"basics": {
"name": "Douglas Cooper",
"label": "Electrical/Computer Engineer",
"email": "douglas.cooper1@gmail.com",
"phone": "(407) 417-5290",
"location": {
"address": "4340 Ridge Crest Dr, Copley, OH 44321",
"postalCode": "OH 44321",
@dougcooper
dougcooper / install_minecraft_rpi4_64bitOS.md
Last active December 27, 2020 18:26
Install minecraft on Rpi4 with 64-bit OS
  1. Install dependencies
sudo apt-get install \
  build-essential \
  cmake \
  qt5-default \
  qtbase5-dev \
  zlib1g-dev \
 libgl1-mesa-dev \
@dougcooper
dougcooper / container_utils.hpp
Last active January 12, 2020 13:42
custom c++ algorithms
template<typename T>
class CircularBuffer : public vector<T> {
public:
CircularBuffer<T>(vector<T> data):
vector<T>(data){}
void rotateRight(unsigned amount){
int tmp;
for(unsigned i=0;i<amount;i++){
this->rotateRight();
@dougcooper
dougcooper / odoo_stack.yaml
Created August 29, 2019 12:09
Odoo Docker
version: '2'
services:
web:
image: odoo:12.0
depends_on:
- db
ports:
- "8069:8069"
db:
image: postgres:10
@dougcooper
dougcooper / tab2edge.py
Last active March 17, 2019 23:45
Converts a tab indented outline to an edge based graph for use with text import feature of Draw.io
#!/bin/python2
import sys
class Node(object):
def __init__(self,parent,data):
self.parent = parent
self.data = data
self.children = []
def getParent(self):
@dougcooper
dougcooper / nextcloud-stack.yml
Last active July 14, 2019 21:29
A docker-compose file for NextCloud
version: '2'
volumes:
nextcloud:
db:
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
@dougcooper
dougcooper / hdhomerun_how_to_signal_check.md
Last active July 10, 2021 03:31
HDHomeRun signal quality checks
@dougcooper
dougcooper / wordpress-stack.yml
Last active March 17, 2019 23:28
wordpress docker
version: '2.0'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
@dougcooper
dougcooper / common_commands
Last active September 3, 2018 19:17
Pandoc Tips and Tricks
\newpage
\centering