This file contains 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
pipoe can generate .bb classes corresponding to python packages for you! | |
Usage: | |
$ pip3 install pipoe | |
$ pipoe -p requests | |
OR | |
$ pipoe -p requests --python python3 | |
Now copy the generated .bb files to your layer and use them. |
This file contains 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
When building an out-of-tree module (inherits module class in a recipe) | |
make sure to set CONFIG_TRIM_UNUSED_KSYMS=n in defconfig. | |
this affects Module.symvers in kernel build artifacts imported by the recipe | |
in order to ensure the symbols from other modules can be referenced correctly |
This file contains 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
gunzip -c <IMAGE>.wic.gz | sudo dd of=/dev/sdX bs=1M iflag=fullblock oflag=direct conv=fsync | |
Optional: | |
status=progress | |
bs=4M |
This file contains 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
#GCC default paths | |
export C_INCLUDE_PATH=/opt/local/include:$C_INCLUDE_PATH | |
export CPLUS_INCLUDE_PATH=/opt/local/include:$CPLUS_INCLUDE_PATH | |
export LIBRARY_PATH=/opt/local/lib:$LIBRARY_PATH |
This file contains 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
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
This file contains 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
iptables -A OUTPUT -o eth0 -m state --state NEW -j DROP |
This file contains 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
case SYS_CMD_STATE_WAIT_FOR_READ_DONE: | |
{ | |
if((readBuff[0] == '\r') || (readBuff[0] == '\n')) | |
{ | |
pCmdIO->cmdState = SYS_CMD_STATE_SETUP_READ; | |
// new command assembled | |
if(pCmdIO->cmdPnt == pCmdIO->cmdBuff) | |
{ // just an extra \n or \r | |
(*pCmdIO->pCmdApi->msg)(pCmdIO->cmdIoParam, LINE_TERM _promptStr); |
This file contains 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
# settings for Lilliput display | |
hdmi_cvt=1024 600 60 3 0 0 1 | |
hdmi_group=2 | |
hdmi_mode=87 |
This file contains 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
... | |
/******************************************************* | |
* USB CDC Device Events - Application Event Handler | |
*******************************************************/ | |
USB_DEVICE_CDC_EVENT_RESPONSE USBDeviceCDCEventHandler | |
( | |
USB_DEVICE_CDC_INDEX index , | |
USB_DEVICE_CDC_EVENT event , |
This file contains 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
Normal keys are forwarded over the ssh session. Instead, use the escape sequences. | |
To kill the current session hit subsequently Enter ↵, ~, . | |
More of these escape sequences can be listed with Enter ↵, ~, ?: | |
Supported escape sequences: | |
~. - terminate session | |
~B - send a BREAK to the remote system | |
~R - Request rekey (SSH protocol 2 only) |
NewerOlder