- bluez
- bluez-utils
- pulseaudio-bluetooth
Edit /etc/bluetooth/main.conf, uncomment following lines
// Auth0 custom rule | |
// Add Github Organizations to the user metadata | |
// | |
// This rule need the following configurations values | |
// AUTH0_DOMAIN_NAME: your auth0 domain name | |
// MANAGEMENT_CLIENT_ID: your auth0 management api client id | |
// MANAGEMENT_CLIENT_SECRET: your auth0 management api client secret | |
// | |
// You have to create an Management API Application with proper | |
// scope to allow rule to fetch user organizations. |
######################################################################### | |
# ================================================== # | |
# $ Mikrotik RouterOS update script for CloudFlare $ # | |
# ================================================== # | |
# # | |
# - You need a CloudFlare account & api key (look under settings), # | |
# a zone and A record in it # | |
# - All variables in first section are obvious, except CFid, # | |
# To obtain CFid use following command in any unix shell: # | |
# curl https://www.cloudflare.com/api_json.html -d 'a=rec_load_all' -d 'tkn=YOUR_API_KEY' -d 'email=email@example.com' -d 'z=domain.com'|python -mjson.tool |
'use strict'; | |
module.exports = function CustomError(message, extra) { | |
Error.captureStackTrace(this, this.constructor); | |
this.name = this.constructor.name; | |
this.message = message; | |
this.extra = extra; | |
}; | |
require('util').inherits(module.exports, Error); |
// Restify Server CheatSheet. | |
// More about the API: http://mcavage.me/node-restify/#server-api | |
// Install restify with npm install restify | |
// 1.1. Creating a Server. | |
// http://mcavage.me/node-restify/#Creating-a-Server | |
var restify = require('restify'); |
<pre data-bind="text: ko.toJSON($data, null, 2)"></pre> |
function map(x, in_min, in_max, out_min, out_max) { | |
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; | |
} |
require "try-catch" | |
try { | |
function() | |
error('oops') | |
end, | |
catch { | |
function(error) | |
print('caught error: ' .. error) |
#!/bin/sh | |
# | |
# Copyright (C) 2010 Matthias Buecher (http://www.maddes.net/) | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# http://www.gnu.org/licenses/gpl-2.0.txt |