Skip to content

Instantly share code, notes, and snippets.

@ziadoz
ziadoz / awesome-php.md
Last active July 13, 2024 05:29
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
@cpliakas
cpliakas / ant-composer.xml
Created November 26, 2013 01:20
Apache Ant tagets for Composer commands.
<?xml version="1.0" encoding="UTF-8"?>
<project name="Composer Targets" default="build">
<property name="builddir" value="${basedir}/build"/>
<property name="composer" value="${builddir}/composer.phar"/>
<target name="php-check">
<condition property="php" value="php">
<not>
<isset property="${php}"/>
@phedoreanu
phedoreanu / apache ssh keys
Last active January 25, 2024 17:34
git PHP webhook
sudo mkdir -m 0700 /var/www/.ssh
sudo chown -R apache:apache /var/www/.ssh
sudo -u apache ssh-keygen (empty passphrase)
paste public key into repo manager
(git-repo) sudo -u apache git pull origin branch (this will create /var/www/.ssh/known_hosts)
call git_hook.php?branch=xxx
@Cletis
Cletis / gist:dfe8a5a9306db4b30846
Created February 12, 2015 12:25
Skalisty bridge
//Skalisty bridge
{"Land_nav_pier_m_2", {13101.5, 3757.98, -0.337635}, 53.1818},
{"Land_nav_pier_m_2", {13077.7, 3789.81, -5.66993}, 53.1818},
{"Land_nav_pier_m_2", {13149.2, 3694.32, 6.4866}, 53.1818},
{"Land_nav_pier_m_2", {13173, 3662.49, 6.49378}, 53.1818},
{"Land_nav_pier_m_2", {13196.8, 3630.66, 6.47524}, 53.1818},
{"Land_nav_pier_m_2", {13220.6, 3598.83, 6.06439}, 53.1818},
{"Land_nav_pier_m_2", {13244.5, 3567, 6.09408}, 53.1818},
{"Land_nav_pier_m_2", {13292.1, 3503.34, 6.36069}, 53.1818},
{"Land_nav_pier_m_2", {13316, 3471.51, 3.62269}, 53.1818},
@oleq
oleq / _README.md
Last active September 7, 2024 13:11
A2DP audio streaming using Raspberry PI (Raspbian Jessie)

What is this all about?

This tutorial will turn your Raspberry PI into a simple Bluetooth audio receiver, which plays music through connected speakers. It's like a regular car audio system, but it can be used anywhere and it's a good value.

   Audio source (i.e. smartphone) 
                |
                v
 (((  Wireless Bluetooth Channel  )))
 |
@mill1000
mill1000 / README.md
Last active July 5, 2024 08:18
Headless A2DP Audio Streaming on Raspbian Stretch

About

This gist will show how to setup Raspbian Stretch as a headless Bluetooth A2DP audio sink. This will allow your phone, laptop or other Bluetooth device to play audio wirelessly through a Rasperry Pi.

Motivation

A quick search will turn up a plethora of tutorials on setting up A2DP on the Raspberry Pi. However, I felt this gist was necessary because this solution is:

  • Automatic & Headless - Once setup, the system is entirely automatic. No user iteration is required to pair, connect or start playback. Therefore the Raspberry Pi can be run headless.
  • Simple - This solution has few dependencies, readily available packages and minimal configuration.
  • Up to date - As of December 2017. Written for Raspbian Stretch & Bluez 5.43

Prerequisites