Skip to content

Instantly share code, notes, and snippets.

Aboulfad aboulfad

  • Montreal
Block or report user

Report or block aboulfad

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MohammadAG
MohammadAG / TV_accessory.js
Last active Aug 17, 2019
webOS 3 accessory plugin for HAP-NodeJS
View TV_accessory.js
var Accessory = require('../').Accessory;
var Service = require('../').Service;
var Characteristic = require('../').Characteristic;
var uuid = require('../').uuid;
var ping = require ("net-ping");
var http = require('http');
var url = require("url");
var util = require("util");
var wsUrl = "ws://IP_ADDRESS_HERE:3000";
@afrighetto
afrighetto / build-xnu.sh
Last active Oct 10, 2018
Script to build any XNU kernel version.
View build-xnu.sh
# !/bin/bash
# Originally written by bazad (https://gist.github.com/bazad/654959120a423b226dc564073b435453), adapted and extended by antoniofrighetto.
# Build any XNU kernel version. Make sure you have the related MacOSX SDK version installed. Tested on macOS 10.13.6.
#
# MACOS_VERSION=10.13.3 BACKUP_SDK=1 OPTIONS=RELEASE,DEVELOPMENT ./build-xnu.sh
# XNU_VERSION=xnu-4570.41.2 ./build-xnu.sh
set_macos_version() {
[[ $XNU_VERSION != "xnu-"* ]] && XNU_VERSION="${XNU_VERSION/#/xnu-}"
echo "[+] Finding macOS version corresponding to XNU version ${XNU_VERSION}. May take a while..."
@maxtruxa
maxtruxa / Makefile
Last active Jan 10, 2020
Generic makefile for C/C++ with automatic dependency generation, support for deep source file hierarchies and custom intermediate directories.
View Makefile
# output binary
BIN := test
# source files
SRCS := \
test.cpp
# files included in the tarball generated by 'make dist' (e.g. add LICENSE file)
DISTFILES := $(BIN)
View homebridge
# Defaults / Configuration options for homebridge
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
HOMEBRIDGE_OPTS=-U /var/lib/homebridge
# If you uncomment the following line, homebridge will log more
# You can display this via systemd's journalctl: journalctl -f -u homebridge
# DEBUG=*
@lexruee
lexruee / bluetooth raspberry-pi
Created Jan 22, 2015
install bluetooth and pybluez
View bluetooth raspberry-pi
sudo apt-get update
sudo apt-get install python-pip python-dev ipython
sudo apt-get install bluetooth libbluetooth-dev
sudo pip install pybluez
@soarez
soarez / ca.md
Last active Jan 21, 2020
How to setup your own CA with OpenSSL
View ca.md

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@hieblmedia
hieblmedia / .gitignore
Last active Jan 21, 2020
Gitignore - Exclude all except specific subdirectory
View .gitignore
#
# If all files excluded and you will include only specific sub-directories
# the parent path must matched before.
#
/**
!/.gitignore
###############################
# Un-ignore the affected subdirectory
You can’t perform that action at this time.