Skip to content

Instantly share code, notes, and snippets.

pi@raspberrypi:~/ibeacon $ npm install bleacon
> usb@1.3.1 install /home/pi/ibeacon/node_modules/usb
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.3.1/usb_bindings-v1.3.1-node-v64-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for usb@1.3.1 and node@10.1.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory '/home/pi/ibeacon/node_modules/usb/build'
CC(target) Release/obj.target/libusb/libusb/libusb/core.o
CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
@chimit
chimit / bitbucket-pipelines.yml
Created August 7, 2020 02:35
Bitbucket Pipelines config for Laravel 7 with PHP 7.4, GD and EXIF
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: php:7.4-fpm
definitions:
services:
mysql:
@chimit
chimit / api.php
Created May 25, 2023 09:24
Output all SQL queries in Laravel
<?php
// Debug SQL queries
// Put anywhere, e.g. in routes/api.php
if (config('app.debug')) {
\Event::listen('Illuminate\Database\Events\QueryExecuted', function ($query) {
echo 'Query: '.$query->sql."\n\n";
echo 'Bindings: '.var_export($query->bindings, true)."\n\n";
echo 'Time: '.$query->time."\n\n";
});