Skip to content

Instantly share code, notes, and snippets.

@e-roux
e-roux / app.properties
Created February 15, 2019 08:43
Mediaplayer under raspberry pi (one USB DAC + one hifiberry on one rpi)
# /opt/mediaplayer/latest/app.properties
airplay_audio_start_delay=false
airplay_enabled=false
airplay_latency_enabled=true
airplay_master_volume_enabled=false
airplay_port=5002
java_sound_software_mixer_enabled=false
java_soundcard_suffix=[PLUGHW\:0,0]--PRIMARY SOUND DRIVER
log_console_level=off
log_file_level=error
@e-roux
e-roux / ProtocolBuffer.sh
Last active March 20, 2019 06:23
Hadoop on raspberry
#!/bin/bash
# ProtocolBuffers is an open source project supporting Google's
# ProtocolBuffer's platform-neutral and language-neutral interprocess-communication (IPC) and serialization framework. It has an Interface Definition Language (IDL) that is used to describe the wire- and file formats; this IDL is then pre-compiled into source code for the target languages (Python, Java and C++ included), which are then used in the applications.
cd /tmp
wget https://github.com/protocolbuffers/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.bz2
tar xf protobuf-2.5.0.tar.bz2
@e-roux
e-roux / python_setup_raspbian.sh
Last active February 21, 2019 06:33
Install Python under Raspbian
#!/bin/bash
# This script is meant for quick & easy install via:
# $ curl -fsSL https://gist.githubusercontent.com/gwin-zegal/d9b4a1ec926bd6654aaa1e3670de86e1/raw/python_setup_raspbian.sh | sh
sudo apt-get -y update
sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev
PY_VERSION='3.7.2'
#!/bin/bash
# From https://docs.docker.com/compose/gettingstarted/
cd /tmp
# Create a directory for the project
mkdir composetest
cd composetest
@e-roux
e-roux / install.sh
Last active May 12, 2019 15:14
VDR
#!/bin/bash
# If no DVB adapter present, break
dmesg | grep -i DVB > /dev/null
if (($? != 0)); then exit 1;fi
# Install Firmware
sudo wget -q https://github.com/OpenELEC/dvb-firmware/blob/master/firmware/dvb-demod-m88ds3103.fw?raw=true -O /lib/firmware/dvb-demod-m88ds3103.fw
#---------------------------------------------------------
@e-roux
e-roux / fish.md
Last active November 30, 2019 13:42
Memo: Fish shell

Fish

fish is a smart and user-friendly command line shell for Linux, macOS, and the rest of the family.

  • Autosuggestions
  • Web Based configuration
  • ...

Installation

@e-roux
e-roux / userChrome.css
Created May 19, 2019 17:14
Firefox toolbar cust css
/* Save in firefox profile as chrome/userChrome.css */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
#personal-bookmarks .bookmark-item[container] .toolbarbutton-icon {
display:none!important;
}
#personal-bookmarks .bookmark-item:not([container]) .toolbarbutton-text {
display:none!important;
}
@e-roux
e-roux / PATH.md
Last active May 22, 2019 10:33
Mémos

/etc/profile

/etc/profile is the system-wide .profile file for the Bourne shell and Bourne compatible shells

  • On ubuntu, the PATH environment variable is being set in this file, then /etc/bash.bashrc and every readable files in /etc/profile.d will be loaded.
  • On mac OS, /usr/libexec/path_helper is beeing exectued for setting the $PATH environment variable, then /etc/bashrc and later on terminal specific configuration /etc/bashrc_${TERM_PROGRAM} will be loaded

macOS

@e-roux
e-roux / TODO
Last active June 18, 2019 17:26 — forked from perrygeo/TODO
Ansible playbook for a full dev environment
TODO
implement security measures
git config
config files
full sublimetext config
set up openvpn
rdesktop and network drive to terra
set up evolution
RStudio
@e-roux
e-roux / fix_github_https_repo.sh
Created June 18, 2019 17:16 — forked from m14t/fix_github_https_repo.sh
Convert HTTPS github clones to use SSH
#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$REPO_URL" ]; then
echo "-- ERROR: Could not identify Repo url."
echo " It is possible this repo is already using SSH instead of HTTPS."
exit
fi