Skip to content

Instantly share code, notes, and snippets.

View rhaleblian's full-sized avatar
🚩
not surfing, don't let the avatar fool you.

Ray Haleblian rhaleblian

🚩
not surfing, don't let the avatar fool you.
View GitHub Profile
@skramstad
skramstad / 2023-09-01-hostapd.conf
Created September 1, 2023 20:39
hostapd configuration file
##### hostapd configuration file ##############################################
# Empty lines and lines starting with # are ignored
# AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for
# management frames with the Host AP driver); wlan0 with many nl80211 drivers
# Note: This attribute can be overridden by the values supplied with the '-i'
# command line parameter.
interface=wlan0
# In case of atheros and nl80211 driver interfaces, an additional
[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
@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/*\""
@fm4dd
fm4dd / gcc compiler optimization for arm systems.md
Last active September 20, 2025 05:23
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.

@rudelm
rudelm / autofs.md
Last active December 4, 2025 17: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