Skip to content

Instantly share code, notes, and snippets.

View rhaleblian's full-sized avatar

Ray Haleblian rhaleblian

View GitHub Profile
@rudelm
rudelm / autofs.md
Last active July 30, 2024 00:26
Use autofs on Mac OS X to mount network shares automatically during access

Autofs on Mac OS X

With autofs you can easily mount network volumes upon first access to the folder where you want to mount the volume. Autofs is available for many OS and is preinstalled on Mac OS X so I show you how I mounted my iTunes library folder using this method.

Prepare autofs to use a separate configuration file

autofs needs to be configured so that it knows where to gets its configuration. Edit the file /etc/auto_master and add the last line:

#
# Automounter master map
#

+auto_master # Use directory service

@fm4dd
fm4dd / gcc compiler optimization for arm systems.md
Last active July 23, 2024 10:15
GCC compiler optimization for ARM-based systems

GCC compiler optimization for ARM-based systems

2017-03-03 fm4dd

The gcc compiler can optimize code by taking advantage of CPU specific features. Especially for ARM CPU's, this can have impact on application performance. ARM CPU's, even under the same architecture, could be implemented with different versions of floating point units (FPU). Utilizing full FPU potential improves performance of heavier operating systems such as full Linux distributions.

-mcpu, -march: Defining the CPU type and architecture

These flags can both be used to set the CPU type. Setting one or the other is sufficient.

@jarmitage
jarmitage / .bashrc (bela)
Last active November 15, 2022 14:44
Using the `distcc` distributed compiler with Bela
#!/bin/bash
alias watchdistcc="watch -n 0.4 rm -rf \"~/.distcc/lock/*\""
[General]
vid_renderer = qt_opengl3
video_fullscreen_scale = 3
[Machine]
machine = tc430hx
cpu_family = pentium_p54c
cpu_speed = 166666666
cpu_multi = 2.5
cpu_use_dynarec = 1