Skip to content

Instantly share code, notes, and snippets.

@Peregrinox
Peregrinox / Install docker osmc.md
Last active February 6, 2023 12:23
Install docker in osmc on pi

source: Docker en Raspberry Pi

Check version, release and keyname of OS:

$ cat /etc/debian_version
9.5
$ cat /etc/os-release
ID=osmc
@lightrush
lightrush / README.md
Last active September 2, 2023 22:57
Normalize volume level with PulseAudio

Normalize volume level with PulseAudio and simultaneous output

This should work conceptually on any Linux OS with PulseAudio but these particular instructions are for Ubuntu. There are two major reasons for using simultaneous output. The first is self-evident - we can output to say a bluetooth headset and wired headphones at the same time to enable two people to watch a movie with headphones on a single computer. The second reason is a sort of a convenience for setup. We know the simultaneous sink name so the default.pa config would work without modification so long as simultaneous output is enabled. If we were to set this up without that, we'd have to customize the config with our specific device sink name. That's totally doable but personally I always setup simultaneous output. That's why I haven't described the alternative in this gist.

@adcar
adcar / Tutorial.md
Last active April 27, 2024 00:27
Tutorial: Setup Arch Linux Arm and Kodi on a Raspberry Pi (With a host machine running Linux)

Tutorial: Set up Arch Linux Arm + Kodi on a Raspberry Pi (With a host machine running Linux)

This tutorial will show how to, step by step, setup Arch Linux Arm and configure Kodi on a Raspberry Pi 3 Model B. Your host computer must be running Linux for this tutorial.

Prerequisites:

  • Raspberry Pi 3 Model B
  • 5V 2.1A Micro-usb Power Supply
  • Micro sdcard (I'd recommend at least 16GB)
  • USB Keyboard (for initial setup)
  • HDMI Cable
  • TV or Monitor with HDMI input
@dcava
dcava / WireGuard on OSMC RBP3
Created October 28, 2017 05:02
Instructions to setup wireguard on Raspberry pi 2/3 and get it working with streisand
# Install repo
echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable-wireguard.list
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 150\n' > /etc/apt/preferences.d/limit-unstable
apt update
#unstall kernel sources headers (not sure if need both)
apt install libmnl-dev rbp2-headers-$(uname -r) rbp2-source-$(uname -r) build-essential pkg-config
#ln the build dir to kernel headers
@jesslilly
jesslilly / README.md
Last active March 22, 2024 14:16
Deluxe Cron Job Wrapper

Cron Job Wrapper Wish List

I want a script that will give me:

  1. Logging
  2. Log purging!
  3. Email errors!
  4. Prevent duplicate processes! (flock)
  5. Source an environment file!
  6. Anything else?
@amatellanes
amatellanes / celery.sh
Last active July 18, 2024 07:23
Celery handy commands
/* Useful celery config.
app = Celery('tasks',
broker='redis://localhost:6379',
backend='redis://localhost:6379')
app.conf.update(
CELERY_TASK_RESULT_EXPIRES=3600,
CELERY_QUEUES=(
Queue('default', routing_key='tasks.#'),
@seankross
seankross / Update Fork.md
Last active August 9, 2022 18:06
Update a Github Fork from the Original Repo

Taken from here

Add remonte branch:

git remote add --track master mleung git://github.com/mleung/feather.git

Verify:

git remote

@bebef1987
bebef1987 / make_call.py
Created December 11, 2012 15:08
initiate a call with twilio wait to answer and hangup
# Download the library from twilio.com/docs/libraries
from twilio.rest import TwilioRestClient
import time
# Get these credentials from http://twilio.com/user/account
account_sid = "SECRET"
auth_token = "SECRET"
client = TwilioRestClient(account_sid, auth_token)
# Make the call
call = client.calls.create(to="+SECRET", # Any phone number
from_="+SECRET", # Must be a valid Twilio number
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 21, 2024 20:54
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname