sudo apt install git-all
ssh-keygen -t rsa -b 4096 -C "deploy"
cat ~/.ssh/id_rsa.pub
#!/usr/bin/python | |
from mininet.net import Mininet | |
from mininet.node import Controller, RemoteController, OVSController | |
from mininet.node import CPULimitedHost, Host, Node | |
from mininet.node import OVSKernelSwitch, UserSwitch | |
from mininet.cli import CLI | |
from mininet.log import setLogLevel, info | |
from mininet.link import TCLink, Intf, OVSLink | |
from subprocess import call |
# Addresses an issue where language servers won't know what to do with header files | |
# since compile_commands.json typically only includes .cc/.cpp/.c files. | |
# | |
# Include this file from your main Makefile, or just paste the snippet in. | |
# To use: | |
# make compile_commands | |
# Requires bear and compdb | |
# bear [osx]: brew install bear | |
# compdb [see https://github.com/Sarcasm/compdb]: pip install compdb |
http://embedded-lab.com/blog/stm32-gpio-ports-insights/
http://hertaville.com/stm32f0-gpio-tutorial-part-1.html
The libmaple libraries, on which STM32duino is based, provides access to registers by the syntax:
GPIOA->regs->REG
Filter | Description | Example |
---|---|---|
allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
Adaptive bed mesh is merged into klipper master branch. You can use this feature without this custom macro. Official klipper adaptive bed mesh
# Terminal Cheat Sheet | |
pwd # print working directory | |
ls # list files in directory | |
cd # change directory | |
~ # home directory | |
.. # up one directory | |
- # previous working directory | |
help # get help | |
-h # get help |
import jsbeautifier | |
import requests | |
import pprint | |
enumerateMessagesSearchString = 'exportSymbol("proto.' | |
r = requests.get('http://localhost:8081/dist/main.js') | |
jsInput = r.text | |
pretty_js = jsbeautifier.beautify(jsInput).split('\n') |