➜ ~ lsusb
Bus 020 Device 037: ID 12d1:1506 Huawei Technologies Co., Ltd. HUAWEI Mobile
Bus 000 Device 001: ID 1d6b:PTLP Linux Foundation USB 3.0 Bus
Bus 000 Device 001: ID 1d6b:CIAR Linux Foundation USB 3.1 Bus
$appname="one" | |
ng new $appname --prefix=$appname --enableIvy=true --inlineStyle=true --inlineTemplate=true --skipTests=true --routing=true --skipInstall=true --style=sass |
# Install Chrome | |
choco install googlechrome -y | |
# Install Slack | |
choco install slack -y | |
# Install other packages | |
choco install nvm -y | |
# Install NodeJS |
## Usage: | |
## python(3) .\extract-packages.py filename.ext::filename2.ext | |
import sys | |
import subprocess | |
import json | |
import requests | |
def log(txt, line_end='\n'): | |
outfile = open('extract-packages.log.txt', 'a') |
const copyToClipboard = str => { | |
const el = document.createElement('textarea'); | |
el.value = str; | |
document.body.appendChild(el); | |
el.select(); | |
document.execCommand('copy'); | |
document.body.removeChild(el); | |
}; | |
document.addEventListener('click', (e) => { |
{ | |
"//0.0.1": "http://localhost:59659/", | |
"0.0.1": "http://192.168.137.1:59659/" | |
} |
### Requires Pandoc. | |
### Install this using `choco install pandoc` | |
### | |
import sys | |
import subprocess | |
def log(txt): | |
outfile = open('convert.log.txt', 'a') | |
print(txt) |
#!/usr/bin/env node | |
const Discord = require('discord.io'); | |
const teamcity = require('teamcity'); | |
const auth = require('../auth.json'); | |
// Create Discord Bot | |
const bot = new Discord.Client({ | |
token: auth.token, | |
autorun: true | |
}); |
## dongle.conf | |
DefaultVendor=0x12d1 | |
DefaultProduct=0x1505 | |
TargetVendor=0x12d1 | |
TargetProductList="140b,140c,1506,150f,150a" | |
HuaweiNewMode=1 |
➜ ~ lsusb
Bus 020 Device 037: ID 12d1:1506 Huawei Technologies Co., Ltd. HUAWEI Mobile
Bus 000 Device 001: ID 1d6b:PTLP Linux Foundation USB 3.0 Bus
Bus 000 Device 001: ID 1d6b:CIAR Linux Foundation USB 3.1 Bus
... | |
USB 3.0 Bus: | |
Host Controller Driver: AppleUSBXHCISPTLP | |
PCI Device ID: 0x9d2f | |
PCI Revision ID: 0x0021 | |
PCI Vendor ID: 0x8086 | |
HUAWEI Mobile: |