Default card for Alsasound on the Pi (Rasbian)

Sound levels adjust with alsamixer.

From answer here, changing the default card:

  • Find your attached card with :
    cat /proc/asound/cards
  • Add or update /etc/asound.conf with:
    pcm.!default {
        type hw
        card 1
    }
    
    ctl.!default {
        type hw           
        card 1
    }

Change card number to match.

Shell scripting notes – searching matching filenames and matching content

Some random shell scripting notes for future reference:

On OS X: find -E . -regex ‘pattern’

  • -E specifies extended regex support

On Linux flavors: find . -regextype posix-regex -regex ‘pattern’

Posix vs basic vs extended regex character class differences.

Pipe result to newfile > : eg grep ‘pattern’ file > output.txt

Pipe result appending to file > : eg grep ‘pattern’ file >> output.txt

Capture output as String? : $(some expression)

Iterate files:

for f in some-file-pattern or something producing a list of files
do ... done

Use find . -name ‘pattern’ to recurse matching files down subdirs

Find with a regex for multiple patterns:

find -E . -regex ".*ext1|.*ext2|.*ext3"

first line of file:

head -n 1 filename

grep -o : only display match

Match patterns in file and output matches or matched groups:

Match files, patterns in files, and pipe matches to file:

Microsoft teaming up with Red Hat for RHEL on Azure (and RH looking at node.js and Java integration options)

Red Hat recently announced a partnership with Microsoft where Microsoft is now offering Red Hat Enterprise Linux (RHEL) as an option on Azure. Although Microsoft has been offering Linux based IaaS offerings on Azure for a few years already, adding RHEL to the mix introduces an option with the backing of Red Hat enterprise support.

Red Hat are also apparently looking to increase integration options between Java and node.js for it’s clients, according to Rich Sharples, senior director for product management at Red Hat, recently speaking at a node.js conference in Portland.

Kubuntu 15.10 with KDE Plasma? Wow.

I’ve you’ve stumbled across my posts before you’ll know I have a thing for installing and trying out various Linux distros. Long story short:

And then I saw some screen shots of KDE Plasma. Hmm, that looks interesting. Kubuntu comes with KDE as it’s primary desktop environment, so downloaded it and test installed it on VirtualBox. WOW. How awesome is the UI? Very clean, modern looking UI, nice but unobtrusive eye candy animations.. going to install on my desktop and take this one for a test drive for a while 🙂