Skip to content

Instantly share code, notes, and snippets.

@gadget-man
gadget-man / yosemite_foomatic_paths.command
Created November 14, 2018 14:21 — forked from coffeesam/yosemite_foomatic_paths.command
Yosemite Postscript driver sandbox lifting script
#!/bin/bash
######################################################################
#
# Product name: Foomatic PPD modifier for Yosemite
# version: 1.1 2014-10-28
#
# Copyright 2014 Matt Broughton <walterwego@macosx.com>
#
# This program is freed software; you can redistribute it and/or modify it
@gadget-man
gadget-man / wifi_common.h
Created March 4, 2020 08:55 — forked from nliviu/wifi_common.h
wifi_common.h
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
struct wifi_info {
int8_t rssi;
uint8_t channel;
};
#include <mgos.h>
#include "wifi_common.h"
#if CS_PLATFORM == CS_P_ESP8266
int8_t wifi_station_get_rssi(void);
uint8_t wifi_get_channel(void);
#elif CS_PLATFORM == CS_P_ESP32
#include <esp_wifi.h>
#endif