Skip to content

Instantly share code, notes, and snippets.

View Jimbles's full-sized avatar
🍜

James Avery Jimbles

🍜
View GitHub Profile
@Jimbles
Jimbles / SOFAbuild.md
Last active July 12, 2019 14:12
SOFA Ubtuntu 18.04 build steps

SOFA Soft Robots build on Ubuntu 18.04

Steps to install and build SOFA with soft robots from scratch on a fresh Ubuntu 18.04 virtual machine (windows host)

Naturally we start with update and installing git

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git
Nodes = rand(15,3);
Tetra = delaunay(Nodes);
DataName='Testdata';
Data=ones(size(Tetra,1),1);
%% ASCII - working
fname='TetraAscii.vtk';
[np,dim]=size(Nodes);
[nt]=size(Tetra,1);
@Jimbles
Jimbles / mesh2d_from_image_example.m
Created July 11, 2018 08:45
example code creating a 2d mesh from a binary image
%% read png and find countours
% img=imread('ex_blob.png');
%% make pretend bitmap image
img_size=512;
img=zeros(img_size,img_size);
% make two squares of different values
@Jimbles
Jimbles / PEITS_CX1_bash_commands.md
Last active June 5, 2018 16:00
PEITS install on CX1

Configure command tweaks

load modules

load module mpi/intel-2018

make wrapper functions for mpi libs

???

run new configure

@Jimbles
Jimbles / auto_measure.py
Created December 13, 2016 18:04 — forked from theterg/auto_measure.py
AFE4300 EVM automation tool
import sys
import time
import math
sys.path.append("./Scripts")
GUI_Module=__import__('Device_GUI')
def FWR_read(input_mask, frequency=32, delay=0.5):
set_frequency(frequency)
GUI.write_register("AFE4300", "IQ_MODE_ENABLE", 0x00) #Select FWR Mode
GUI.write_register("AFE4300", "ADC_CONTROL_REGISTER2", 0x63) #ADCREF to VREF / ADC connected to BCM
@Jimbles
Jimbles / UCL_Eduroam.md
Created June 28, 2016 16:20
UCL Eduroam on Raspberry Pi

UCL Eduroam on Raspberry Pi

add this to /etc/wpa_supplicant/wpa_supplicant.conf

network = {
ssid="eduroam"
key_mgmt=WPA-EAP IEEE8021X
eap=PEAP
identity="#####@ucl.ac.uk"
anonymous_identity="anonymous@ucl.ac.uk"
@Jimbles
Jimbles / PiSyncSetup.md
Last active October 29, 2023 21:11
Raspberry Pi Sync Setup

1. Hostname, Password, Static IP and SSH port Fail2ban

Could install headless, but I wanted to use gui at first instance to ensure everything working!

Connect to wifi through GUI. Change hostname and ensure SSH enabled in raspberrypi config GUI change password with passwd .

Static IP.

Taken from here, add the following to the bottom of sudo nano /etc/dhcpcd.conf, changing ip addresses where appropriate