Skip to content

Instantly share code, notes, and snippets.

View ianldgs's full-sized avatar
💻
Hacking

Ian Luca ianldgs

💻
Hacking
View GitHub Profile
@ianldgs
ianldgs / DebugAndoirdWebAppRemote.md
Last active October 4, 2019 14:09 — forked from KDawg/DebugAndoirdWebAppRemote.md
Debug Android WebApp Over Remote Chrome from OSX

Remote debugging USB-connected Android via Chrome

Phone Setup

  • Enable developer mode (depends on which android version or ui of the phone)
  • settings > developer options > usb debug enable
  • chrome > settings > developer tools > usb debug enable

Desktop Setup

@ianldgs
ianldgs / fix-homebrew-npm.md
Created August 28, 2018 12:08 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.

@ianldgs
ianldgs / 1_DocumentSerializer.php
Last active August 24, 2016 19:42 — forked from ajaxray/1_DocumentSerializer.php
A simple PHP Trait to make Doctrine MongoDB ODM Documents serializable to Array or JSON
<?php
/**
* Created by PhpStorm.
* Author: Anis Ahmad <anisniit@gmail.com>
* Date: 5/11/14
* Time: 10:44 PM
*/
namespace Your\CoreBundle\Traits;