-
Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.
-
Reset PS3 controller by inserting paperclip into pinhole near L2 button.
-
Connect PS3 controller to Mac with USB cable.
-
Enable Bluetooth.
To remove a submodule you need to:
- Delete the relevant section from the .gitmodules file.
- Stage the .gitmodules changes git add .gitmodules
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Run rm -rf .git/modules/path_to_submodule (no trailing slash).
- Commit git commit -m "Removed submodule "
- Delete the now untracked submodule files rm -rf path_to_submodule
#!/bin/bash | |
# Run once to patch `rcd` daemon after creating a backup. | |
# Run again to restore the backup and revert back to original functionality. | |
set -eu | |
if [ "$USER" != "root" ]; then | |
exec sudo "$0" "$@" | |
fi | |
rcd="/System/Library/CoreServices/rcd.app/Contents/MacOS/rcd" |
More details - http://blog.gbaman.info/?p=791
For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt
file dtoverlay=dwc2
on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh
in the SD card as well. By default SSH i
# from https://forum.nim-lang.org/t/1188#7366 by Jehan | |
# most of the time only the dereference operator is needed, import it like this: | |
# from ptrmath import `[]` | |
template `+`*[T](p: ptr T, off: int): ptr T = | |
cast[ptr type(p[])](cast[ByteAddress](p) +% off * sizeof(p[])) | |
template `+=`*[T](p: ptr T, off: int) = | |
p = p + off |
# Setup Classes for the Example | |
class Shifter: | |
def __init__(self, label): | |
self.label = label | |
def __str__(self): | |
return str(self.label) | |
def __rshift__(self, other): | |
print("#%s.__rshift__(%s)" % (self, other)) |
inkscape=/Applications/Inkscape.app/Contents/MacOS/inkscape | |
insvg=burpicon.svg | |
output=burp | |
outdir=${output}.iconset | |
mkdir $outdir | |
for sz in 16 32 128 256 512 | |
do | |
echo "[+] Generete ${sz}x${sz} png..." | |
$inkscape --without-gui --export-file ${outdir}/icon_${sz}x${sz}.png -w $sz -h $sz $insvg |