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
# Connman Technology API examples: (Object Path: /net/connman/technology/<wifi/ethernet>, Interface: net.connman.Technology) | |
# GetProperties | |
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.GetProperties | |
# Scan | |
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.Scan | |
# Disable/Enable wifi | |
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.SetProperty string:Powered variant:boolean:true |
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
rdate -s time.nist.gov |
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
// List available formats for ffmpeg | |
ffmpeg -pix_fmts | |
// Convert a 720x480 nv12 (yuv 420 semi-planar) image to png | |
ffmpeg -s 720x480 -pix_fmt nv12 -i captdump-nv12.yuv -f image2 -pix_fmt rgb24 captdump.png | |
// Convert a 640x480 uyvy422 image to png | |
ffmpeg -s 640x480 -pix_fmt uyvy422 -i frame-000003.yuv -f image2 -pix_fmt rgb24 captdump.png | |
// Display a 640x480 grayscale raw rgb file |
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
// Kill the current ssh-agent | |
ssh-agent -k | |
kill <pid> | |
// Remove identities | |
ssh-add -D | |
// Add new id | |
ssh-add | |
<enter password> |
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
// Timer 4, 200KHz from the 24MHz clock | |
// Setup Pin mux | |
mw.l 0x44e10890 0x2 | |
// Enable functional clock | |
mw.l 0x44E00088 0x2 | |
// Write TCRR | |
mw.l 0x4804403C 0xFFFFFF88 |
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
// I'm using a virtual video capture device via the vivi kernel module | |
# modprobe vivi | |
// This creates /dev/video0 if no other devices have yet been enumerated. | |
// Display available formats for the video device | |
# yavta --enum-formats /dev/video0 | |
Device /dev/video0 opened. | |
Device `vivi' on `vivi-000' is a video capture device. | |
- Available formats: |
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
# Start a new named session | |
screen -S <name> | |
# Attach to a running named session | |
screen -x <name> | |
# Create a new window | |
ctrl-a c | |
# Name a window |
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
// Create image from first 1.0 GB of data on the sd card | |
sudo dd if=/dev/sdd of=./my.img bs=1024 count=1048576 | |
// Compress the image | |
zip my-image.zip my.img | |
// Use win32diskimager from this location to write to a new sd card under windows | |
http://sourceforge.net/projects/win32diskimager/files/latest/download?source=navbar |
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
# Create a patchset for a specific file or files, assuming the file doesn't exist in your local repo | |
git format-patch --output-directory myPatch commit-id-begin..commit-id-end -- file1 file2 file3 |
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
alias mkconfig='/usr/bin/make menuconfig' | |
alias vk='vim -c "set ts=8 sw=8 tw=80 noet"' |
OlderNewer