Skip to content

Instantly share code, notes, and snippets.

for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do
(
syspath="${sysdevpath%/dev}"
devname="$(udevadm info -q name -p $syspath)"
[[ "$devname" == "bus/"* ]] && continue
eval "$(udevadm info -q property --export -p $syspath)"
[[ -z "$ID_SERIAL" ]] && continue
echo "/dev/$devname - $ID_SERIAL"
)
done
@gusdevops
gusdevops / auth.js
Created July 3, 2017 12:21
authProvider.js
import { Injectable } from '@angular/core';
import { ToastController, Platform } from 'ionic-angular'
import { Facebook } from '@ionic-native/facebook';
import { AngularFireAuth } from 'angularfire2/auth';
import { Observable } from "rxjs/Observable";
import { AngularFireDatabase } from 'angularfire2/database'; // Used by pdfs
import * as firebase from 'firebase/app';
@Injectable()
@gusdevops
gusdevops / error.md
Created June 20, 2017 23:28
Vinhos deploy error
[20:27:01]  build prod started ... 
[20:27:01]  clean started ... 
[20:27:01]  clean finished in less than 1 ms 
[20:27:01]  copy started ... 
[20:27:01]  ngc started ... 
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of
       date.
Error: Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Injectable in /home/gtc/projeto/pagos/vinhos/App/node_modules/angularfire2/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol Injectable in /home/gtc/projeto/pagos/vinhos/App/node_modules/angularfire2/node_modules/@angular/core/src/di.d.ts, resolving symbol Injectable in /home/gtc/projeto/pagos/vinhos/App/node_modules/angularfire2/node_modules/@angular/core/src/core.d.ts, resolving symbol Injectable in /home/gtc/projeto/pagos/vinhos/App/node_modules/angularfire2/no