Skip to content

Instantly share code, notes, and snippets.

View akhoury's full-sized avatar
🏠
Working from home

Aziz Khoury akhoury

🏠
Working from home
View GitHub Profile
@akhoury
akhoury / Atmo-fw-update-nrf.md
Created December 2, 2018 09:27
Atmotube firmware update tutorial (nRF Toolbox)

Atmotube firmware update tutorial (nRF Toolbox)

  1. Download firmware (70.03.0A) to the internal smartphone memory or SD card;
  2. Install nRF Toolbox for BLE from Google Play;
  3. Open nRF Toolbox → go to DFU section;
  4. Select firmware file → chose "application" type with "no init packet";
  5. Select device for firmware upload (named "DfuMode");
  6. Tap "Start".
@akhoury
akhoury / migrate.sh
Created December 29, 2017 19:42 — forked from pepijnblom/migrate.sh
Upgrade MAMP to Mysql 5.7
#!/bin/sh
wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.20-macos10.12-x86_64.tar.gz
tar xfvz mysql-5.7*
echo "stopping mamp"
sudo /Applications/MAMP/bin/stop.sh
sudo killall httpd mysqld
echo "creating backup"
var npm = require('npm');
var fs = require('fs');
var path = require('path');
module.constructor.new_packageMainCache = {}; // own cache
// copied from node src
function statPath(path) {
try {