Skip to content

Instantly share code, notes, and snippets.

View bonelifer's full-sized avatar

William Jacoby bonelifer

View GitHub Profile
@bonelifer
bonelifer / Xubuntu-Install.sh
Created November 22, 2023 09:32 — forked from ascenderx/Xubuntu-Install.sh
Xubuntu installation history & notes
# Flash the image onto a USB stick.
# - Replace `/path/to/xubuntu.iso` with the appropriate ISO image.
# - Replace `sdX` with the appropriate device node.
sudo dd if=/path/to/xubuntu.iso of=/dev/sdX conv=fdatasync status=progress bs=1M
# Boot into the USB stick and run the installer.
# You might need to boot into the PC's UEFI settings to do so.
# Make sure the install medium is botted in UEFI mode!
# On the new installation, run the following installers.
@bonelifer
bonelifer / installer.sh
Created November 22, 2023 09:23 — forked from rdenadai/installer.sh
Super complex set of script and text files to build a full feature computer with a lots of python libs, java and other stuff like ffmpeg, opencv, llvm inside a vagrant script or linux install!!!
# The commands must be executed in the order bellow! Not doing this may break the installation!
# Install python-software-properties if you get a 'command not found'
# sudo apt-get install python-software-properties
# In case you need to install setuptools
# Keep in mind that doing this may destroy pip installation of setuptools
# Instead you can pip install setuptools ... :)
# wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python
@bonelifer
bonelifer / Ubuntu 22.04 LTS.md
Created November 22, 2023 09:14 — forked from mkorman9/Ubuntu 22.04 LTS.md
Ubuntu 22.04 configuration guide

Ubuntu 22.04 configuration guide

Basic system configuration

Open Settings

  • Appearence -> Style -> Dark
  • Appearence -> Desktop Icons -> Disable Show Personal folder
  • Notifications -> Do not disturb
  • Power -> Screen Blank -> Never
#!/bin/bash
output="<txt>"
next="ttttttttttttttttttttttttttt"
secondary_color="#5294e2"
warning_color="#fea962"
##########################
@bonelifer
bonelifer / 10-udev-disks.rules
Created November 21, 2023 08:58 — forked from daks/10-udev-disks.rules
mpd configuration with music collection on removable usb disk, using autofs to automount when needed. Used on a RaspberryPi
# /etc/udev/rules.d/10-udev-disks.rules
# udev custom rule
# using # udevadm info -a -p $(udevadm info -q path -n /dev/sda1)
# I found the necessary information about my USB device
# and take the necessary ones to make it unique (idVendor, idProduct, serial here)
# when plugging the disk, nevermind the device name it gets (sda1, sdb1,...) udev creates /dev/mpd-disk and runs the script indicated
KERNEL=="sd?1",ATTRS{idVendor}=="xxxx",ATTRS{idProduct}=="yyyy",ATTRS{serial}=="zzzzzzzzzzzz",SYMLINK+="mpd-disk",RUN+="/root/bin/hdparm-mpd-disk.sh"
[Unit]
Description=Start Chromium GUI
After=nginx.service php5-fpm.service mpd.service
[Service]
Type=simple
ExecStart=/opt/start-gui
User=pi
[Install]
@bonelifer
bonelifer / mpd-add-random.sh
Last active November 21, 2023 06:45 — forked from anekos/mpd-add-random.sh
mpd-add-random.sh
#!/bin/sh
# Usage: add-random [[NUMBER [FILTER]]
sels="${1:-10}"
filter="${2:-}"
mpc listall | grep "$filter" | shuf | head "-n" "$sels" | while read selected
do
echo "$selected"
@bonelifer
bonelifer / mpd-alarm
Last active November 21, 2023 06:32 — forked from dsprenkels/mpd-alarm
MDP alarm
#!/bin/bash
# Alarm Playlist Controller Script
# -------------------------------
# - Checks if the current playlist is the alarm playlist.
# - If not, stops current track, switches to the alarm playlist, and plays it on repeat.
# - Waits for 15 minutes.
# - If the alarm playlist is still playing, stops it and clears the queue, turning off repeat mode.
# - If the current playlist is the alarm playlist at the start, exits immediately.
@bonelifer
bonelifer / getsomastations.sh
Last active November 21, 2023 01:31 — forked from tomrod/somaFm_function.sh
SomaFM from the command line
#!/usr/bin/env bash
# description: Update somafm stations in the stations.sh file
# original: https://github.com/rockymadden/somafm-cli/
# deleted all non channel retrieval functionality and
# made it output the format expected by stations.sh
# and use sed to make the channel update to stations.sh
# Fetch channel names and format them for stations array
channels=$(curl -s -H 'Accept: application/json' https://somafm.com/channels.json | \
jq -r '.channels | map(.id | @sh) | join(" ")')
@bonelifer
bonelifer / config
Created October 15, 2023 19:13 — forked from dlo/config
A modified version of the scrobble.py included with pianobar.
# Move this file to ~/.config/pianobar/config
# User
user = PANDORA_USERNAME
password = PANDORA_PASSWORD
# Change this to where your scrobble.py file is
event_command = ~/.config/pianobar/scrobble.py