Skip to content

Instantly share code, notes, and snippets.

View lovettbarron's full-sized avatar
🕶️
at night

Andrew Lovett-Barron lovettbarron

🕶️
at night
View GitHub Profile
@skrymets
skrymets / Cornell's Notes Template.md
Last active June 20, 2024 04:19
Cornell Note Template for Obsidian
cssclass
cornell-note
Cues

Notes

The Cornell Note-taking System is a popular and effective method for organizing and summarizing information during lectures, readings, or any other form of learning.

-- melody generator
engine.name="PolyPerc"
musicutil=require("musicutil")
function init()
engine.release(2)
engine.amp(0.3)
local chords={"I","vi","IV","iii"} -- change to any chords
local movement_left=6 -- change to 0-12
# https://www.geeksforgeeks.org/python-tweepy-getting-the-id-of-a-user/
import tweepy
import json
import time
import urllib.request
# You get these from https://developer.twitter.com/en/apps
# New signups at https://developer.twitter.com
consumer_key = ""
@ahmadawais
ahmadawais / sendy-install-digital-ocean.md
Last active May 6, 2024 13:02
Install Sendy on DigitalOcean 2022

You can open the Marketplace tab and search for the current LAMP stack.

We will use the LAMP stack on a Basic plan for 5$/month.

php -v

# if php 8 then

How to install Homebrew package manager on Steam Deck

(See also installing Distrobox: https://distrobox.it/ )
(See also installing Nix package manager: https://determinate.systems/posts/nix-on-the-steam-deck )

You can install Homebrew (a package manager for macOS and Linux) without disabling the read-only partition with sudo steamos-readonly disable.
The package manager can be used alongside Flatpaks. Some software is only available on Flathub, and some software is only available on Homebrew.

  1. Switch to desktop mode (hold power button until a menu appears, then select "Switch to desktop mode")
  2. Click the logo at the bottom left, go to System, then go to Konsole
@xxlukas42
xxlukas42 / philips_hue_ir.ino
Created April 14, 2019 09:28
ESP32 and ESP8266 communication with Philips Hue bridge
/*************************************************************
Hue @ D1 mini Pro (ESP8266)
Basic demo of switch based on IR sensor to demonstrate
communication between ESP and Hue gateway
Version: 1.00
by Petr Lukas
Functionality:
Identify IR signal and switch light on and off using IR remote control.
*************************************************************/
@kmelve
kmelve / sanityToMarkdownPosts.js
Created March 16, 2019 16:11
Convert a post type in Sanity.io to markdown files with frontmatter
/* eslint-disable */
const fs = require('fs')
const sanityClient = require('@sanity/client')
const groq = require('groq')
const BlocksToMarkdown = require('@sanity/block-content-to-markdown')
const config = { projectId: '<YourID>', dataset: '<DatasetName>', useCdn: true }
const client = sanityClient(config)
const serializers = {
@ivorpad
ivorpad / prisma.md
Last active October 6, 2019 03:20
Quick instructions to setup a Prisma server on Linode
  1. SSH to server
  2. Install Docker and Docker Compose:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
  1. Install Node:
@EntranceJew
EntranceJew / Tabletop Simulator.xml
Created June 7, 2018 00:22
3Dconnexion configuration for Tabletop Simulator
<?xml version="1.0" encoding="UTF-8"?>
<AppCfg Default="false" xmlns="" CfgFormatVersion="1.2" ThisFileVersion="1.10">
<AppInfo>
<Signature>
<Name>Tabletop Simulator</Name>
<ExecutableName>Tabletop Simulator.exe</ExecutableName>
</Signature>
<Options />
</AppInfo>
<CfgProperties>
@reubano
reubano / README.md
Created May 9, 2018 21:50 — forked from twolfson/README.md
Terms of use and privacy policy evaluation