Skip to content

Instantly share code, notes, and snippets.

View inigoalonso's full-sized avatar

Iñigo Alonso Fernandez inigoalonso

View GitHub Profile
@inigoalonso
inigoalonso / setup-epics-ioc-raspbian.sh
Last active April 14, 2021 18:36
Install EPICS Base and the ASYN and StreamDevice libraries in Raspbian (Raspberry Pi).
#!/bin/bash
# All code from: http://www.smolloy.com/2015/12/epics-ioc-on-a-raspberry-pi/
# Download the necessary source files
echo "Downloading the necessary source files"
mkdir Downloads
cd ~/Downloads
wget http://www.aps.anl.gov/epics/download/base/baseR3.14.12.5.tar.gz
wget http://aps.anl.gov/epics/download/modules/asyn4-28.tar.gz
@inigoalonso
inigoalonso / setup-epics-serial-arduino
Last active February 11, 2025 20:49
EPICS serial communication with Arduino: creation of project, protocol file, database...
#!/bin/bash
# All code from: http://www.smolloy.com/2015/12/epics-serial-communication-with-arduino/
# Create a new project
echo "Creating new project"
mkdir ~/Apps/epics/helloWorldIOC
cd ~/Apps/epics/helloWorldIOC
makeBaseApp.pl -t ioc helloWorldIOC
echo | makeBaseApp.pl -i -t ioc helloWorldIOC
const int ledPin = 11;
const int photoPin = A0;
int ledState = LOW;
int oldState = LOW;
String input = ""; // This will capture the serial input commands
void setup() {
pinMode(ledPin, OUTPUT);
#!/bin/bash
apt-get -y update
apt-get -y upgrade
apt-get -y install build-essential default-jre libreadline-dev
mkdir -p /home/vagrant/Apps/epics
ln -s /home/vagrant/Apps/epics /usr/local/
echo "Installing EPICS"
wget --quiet http://www.aps.anl.gov/epics/download/base/baseR3.14.12.5.tar.gz
@inigoalonso
inigoalonso / keybase.md
Created February 18, 2017 18:15
Keybase proof of identity

Keybase proof

I hereby claim:

  • I am inigoalonso on github.
  • I am inigoalonso (https://keybase.io/inigoalonso) on keybase.
  • I have a public key whose fingerprint is 81FE 0747 6970 26E0 18DB 5687 33CB 408A 0926 166A

To claim this, I am signing this object:

ESS
Shutdown
Only RF -> RF Power
Turn on Ion Source -> Source
Accelerator Shutdown
RF Power
Source
Start Neutron Source -> Start Up
Start Studies -> Studies on Dumps
Start Up
Accelerator
LEBT
Destination MEBT -> MEBT
Destination DTL2 -> DTL2
Destination DTL4 -> DTL4
Destination Spokes -> Spokes
Destination MBL -> MBL
Destination Dump -> Dump
Destination Target -> Target
Envelope Probe Beam -> LEBT - Probe Beam