RNDIS USB driver for STM32F4: Access your device from any Web browser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>SM Calendar</title> | |
<script src="https://unpkg.com/vue@latest/dist/vue.js"></script> | |
<style id="jsbin-css"> | |
html,body { | |
height:300px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////// HTML - CONSOLE.log /////// | |
<pre id="log"></pre> | |
(function () { | |
var _log = console.log; | |
var logger = document.getElementById("log"); | |
console.log = function (message) { | |
if (typeof message == "object") { | |
logger.innerHTML += (JSON && JSON.stringify ? JSON.stringify(message) : message) + "\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chmod 666 /dev/usb/lp0 | |
nc -lvk 9100 > /dev/usb/lp0 | |
# l listen | |
# k liten forever | |
# v verbose |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Generating client certificatie | |
## https://gist.github.com/mtigas/952344 | |
## sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout bein.tech.key -out bein.tech.crt | |
# openssl genrsa -des3 -out bein.tech.key 4096 | |
# openssl req -new -x509 -days 365 -key bein.tech.key -out bein.tech.crt | |
# openssl req -new -key client.key -out client.csr | |
# ---- or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## DEFAULT | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name host1.org host2.org; | |
autoindex off; | |
log_not_found off; | |
client_max_body_size 1M; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##sudo iwlist wlan0 scan | |
## | |
nano /etc/network/interfaces | |
auto eth0 | |
allow-hotplug eth0 | |
iface eth0 inet dhcp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
firewall-cmd --zone=public --permanent --add-masquerade | |
firewall-cmd --zone=external --permanent --add-masquerade | |
firewall-cmd --zone=public --query-masquerade | |
firewall-cmd --zone=internal --add-masquerade --permanent | |
firewall-cmd --zone=public --add-forward-port=port=6554:proto=udp:toport=554:toaddr=10.0.2.60 --permanent | |
firewall-cmd --reload | |
firewall-cmd --permanent --zone=public --add-port=6555/tcp | |
firewall-cmd --list-all --zone=public |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Double Remote Repositories | |
git remote set-url --add --push origin [email protected]:tjunussov/uyi.dashboard.git | |
# Git Add,Commit,Push shourtcut | |
git acp "Message" | |
# Git ignore file update | |
git rm -r --cached . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 Install USB 2 UART drivers | |
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers | |
Neopixel D4 output must be specified exactly as D4 npt just 4 | |
#define PIN D4 |