Skip to content

Instantly share code, notes, and snippets.

View stephanvierkant's full-sized avatar
🔍
Op zoek naar collega's

Stephan Vierkant stephanvierkant

🔍
Op zoek naar collega's
View GitHub Profile
@goldhand
goldhand / bluetooth setup ubuntu 12.04
Created June 27, 2013 03:40
Setup Logitech K810 Keyboard to pair with ubuntu 12.04
1. Set keyboard discoverable
2. Get the mac address of the bluetooth device:
$ hcitool scan
3. Create new device:
$ sudo bluez-simple-agent hci0 [bluetooth device mac address = XX:XX:XX:XX:XX:XX]
which will hopefully return somthing like:
DisplayPasskey (/org/bluez/537/hci0/..., [PIN = 123456])
else:
$ sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX repair
start over
@Ocramius
Ocramius / User.php
Last active February 16, 2024 14:57
Doctrine 2 ManyToMany - the correct way
<?php
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity()
* @ORM\Table(name="user")
*/
class User