Skip to content

Instantly share code, notes, and snippets.

View CarloCattano's full-sized avatar
🏠
Working from home

Carlo CarloCattano

🏠
Working from home
View GitHub Profile
<!doctype html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>yourTitleHere</title>
<meta name="emperaments" content="The HTML5 Herald">
</head>
<body>
</body>
</html>
/// Terminal shortcuts
alias restart='sudo shutdown -r 1'
alias ciao='sudo shutdown -P 1'
alias delf='sudo rm -r'
alias desk='cd /home/x/Desktop'
// Imported from within Home.vue app
import Tone from "tone";
import StartAudioContext from "startaudiocontext";
export default {
name: "home",
created() {
//need to start audio context this way due to new browser restrictions
StartAudioContext(Tone.context, "#button").then(function() {

INSTALL basics

sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt install -y nodejs npm  puredata  python3-pip python-pip python3 python  -y

INTERNET HOTSPOT FROM THE PI ;-) good for osc control , servers etc when you dont need internet

wget -q https://git.io/voEUQ -O /tmp/raspap && bash /tmp/raspap
@CarloCattano
CarloCattano / AR CORE UNITY WORK
Last active December 11, 2019 17:22
Ar core snippets to learn from
//// DETECT PLANE ROUTINE DetectedPlaneGenerator.cs
private List<DetectedPlane> m_NewPlanes = new List<DetectedPlane>();
//// Check that motion tracking is tracking.
if (Session.Status != SessionStatus.Tracking)
{
return;
}
<pre><code>
----------begin_max5_patcher----------
2895.3oc6bkziiaiE9rCP9OHnKYF.GCwEskaI4PRNLXNLGlCEBJHawxk5VVx
PRt5pSv7ee3h1H0FksjqJcZevKjTRO9836wO93i9O+1uYi49zWI4lF+fwCFa
17mzR1vKiUxlpB1XdJ30CwA47FZlP9T59OXtsrtBxqE7xOajSxhBheLiDDVW
8SoIEIAmH7l7ir5qqJ4xozKEwjB98ETUbTHuszmw2i8qa74fhCOGkbjd2OTH
DXLBrydqAxydm0VCw6P3NKieu5hxK9br3IWeeDOwhOelHtIllMMmJPQIcjGV
OHO5O3sGPu8RRDIqDppvJZ6ihIuPxxiRSZee1XFb9bqx2z9hXP7GR42K2sMk
EkHJC0TVF4knpaAto3fLJ5TPglKYhN7qNXyV2ozPRVxkHt.UV5+6a+lZQqAT
gNMfI.56w9zA51BUoCPNFmd3iDtdxptzzyjjnjyYjbRRQPQoL1TeH4ofKwEO
@CarloCattano
CarloCattano / pi_MIDI_Brain.md
Last active May 9, 2024 01:48
Raspberry pi UART MIDI Serial

rp3.+ raspberry OS lite (or better PatchboxOS as a starting point)

https://blokas.io/patchbox-os/

testing notes
Disable bluetooth or send bt to another serial port
    sudo nano /boot/config.txt

    enable_uart=1    
   
 dtoverlay=midi-uart0
@CarloCattano
CarloCattano / GIADA_compile_from_sources_raspberry.md
Last active October 1, 2021 11:44
Giada compilation arm / ubuntu

get giada from github

  git clone https://github.com/monocasual/giada.git
  cd giada
  git submodule update --init --recursive

install neccesary stuff for ubuntu :

find folder recursively

find YOUR_STARTING_DIRECTORY -type d -name "*nameOfFolder*" -print 

locate pip package location

pip show package-name 

Reset commit history

git add -A
git commit -am "Initial commit"
git branch -D main
git branch -m main
git push -f origin main

Push to new fork