Skip to content

Instantly share code, notes, and snippets.

@Nerten
Nerten / brew-bundle-brewfile-tips.md
Created February 18, 2024 21:02 — forked from ChristopherA/brew-bundle-brewfile-tips.md
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

Keybase proof

I hereby claim:

  • I am nerten on github.
  • I am nerten (https://keybase.io/nerten) on keybase.
  • I have a public key ASAsnsqvvRvcv3F5_Sf1lMFTqk6Mg1cVPkuLDjzbvVYnkAo

To claim this, I am signing this object:

@Nerten
Nerten / filebot-on-odroid
Last active September 28, 2021 00:11
Filebot on Odroid
# first install java8 from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
# it's 10x faster then openjdk8
# download jdk-8u101-linux-arm32-vfp-hflt.tar.gz for C1/XU4 or jdk-8u101-linux-arm64-vfp-hflt.tar.gz for C2
# sudo tar zxvf jdk-8*.tar.gz -C /opt
# sudo mv sudo mv /opt/jdk1.8.0_* /opt/jdk1.8.0
# sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0/bin/javac 1
# sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0/bin/java 1
# if installed other version of java, you need to configure for using newest by:
# sudo update-alternatives --config javac
# sudo update-alternatives --config java
@Nerten
Nerten / gist:f30e95a3f649c6938447
Created January 24, 2015 14:41
Mounting external usb drives automatically to its label on Ubuntu
sudo apt-get install -y usbmount
sudo bash -c "cat <<EOT > /etc/usbmount/mount.d/01_create_label_symlink
#!/bin/sh
# This script creates the volume label symlink in /var/run/usbmount.
# Copyright (C) 2014 Oliver Sauder
#
# This file is free software; the copyright holder gives unlimited
# permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
@Nerten
Nerten / gist:399257dba4c36393c063
Last active June 2, 2017 03:40
Aria2c + webui-aria2 to Ubuntu on Odroid-C1
sudo apt-get install -y aria2
sudo mkdir /etc/aria2
sudo touch /etc/aria2/aria2.session
sudo bash -c "cat <<EOT > /etc/aria2/aria2.conf
daemon=true
continue=true
enable-rpc=true
rpc-listen-port=6800
rpc-listen-all=true
check-certificate=false
@Nerten
Nerten / gist:a8bbbb071b231870bd72
Last active January 15, 2018 23:05
Install Plex Media Server to Ubuntu on Odroid-C1
sudo apt-get install -y libc6-armel gcc-multilib
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
mkdir /tmp/plex
wget -P /tmp/plex https://downloads.plex.tv/plex-media-server/0.9.11.7.803-87d0708/plexmediaserver-ros6-binaries_0.9.11.7.803-87d0708_armel.deb
dpkg -x /tmp/plex/plexmediaserver-ros6-binaries_0.9.11.7.803-87d0708_armel.deb /tmp/plex
sudo mv /tmp/plex/apps /
sudo mkdir /apps/plexmediaserver/temp
sudo mkdir /apps/plexmediaserver/MediaLibrary
sudo rm -rf /tmp/plex/
@Nerten
Nerten / gist:6961498
Last active December 25, 2015 10:28
How to recompile newest version of forked-daapd on Ubuntu/Debian and build package.
Im using a virtualbox VM for building software.
Full instruction for 64bit Debian 7 from @BitProcessor here http://pastebin.com/LsbcMkDG
sudo -s
apt-get install build-essential -y fakeroot dpkg-dev git libevent1-dev dh-autoreconf
apt-get build-dep -y forked-daapd
cd /usr/src/
apt-get source forked-daapd
dpkg-source -x forked-daapd_0.19gcd-2.1.dsc
@Nerten
Nerten / gist:3706698
Created September 12, 2012 13:44
oneliner tunes.io downloader with trailing zeros in filenames, and make playlist in folder
perl -C -S -MTime::Piece -MFile::Util -Mojo -MMP3::Tag -E '$date = localtime->ymd; $i=0; $c=0; $ENV{MOJO_MAX_MESSAGE_SIZE} = 1073741824; mkdir $dir=$ENV{HOME}."/Dropbox/tunes.io/".$date; open (FILE, ">","${\$dir}/${\$date}.pls"); print FILE "[playlist]\n\n"; $file = "${\$dir}/".File::Util::escape_filename(sprintf("\%02d", ++$i)." - ${\$_->text}.mp3","") and say sprintf("\%02d", $i)." - ${\$_->text}.mp3" and (((-e "$file") && (-s "$file") > 0) || g($_->attrs("href"))->content->asset->move_to($file)) and ((-s "$file") > 0) and ++$c and print FILE "File${\$c}=".sprintf("\%02d", $i)." - ${\$_->text}.mp3\n\nTitle${\$c}=${\$_->text()}\n\nLength${\$c}=". MP3::Tag->new($file)->total_secs_int()."\n\n" for g("tunes.io/playlist.jsp?date=${\$date}")->dom("ul a")->each; print FILE "NumberOfEntries=${\$c}\n\nVersion=2\n\n"; close (FILE);'