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
# Edit /etc/systemd/journal.conf and set the following options to prevent the creation of .journal files and to forward messages to syslog: | |
Storage=none | |
ForwardToSyslog=yes | |
# Check if syslog.service is a sym-link to /dev/null and remove it if so | |
$ ls -l /lib/systemd/system/syslog.service | |
$ rm /lib/systemd/system/syslog.service | |
# Unmask the syslog service so that it can be started | |
$ systemctl unmask syslog.service |
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
# Select the i2c bus | |
i2c dev <bus> | |
i2c dev 0 | |
# Probe the device | |
i2c probe <chip> | |
i2c probe 0x60 | |
# Read from the device | |
i2c read <chip> <chip address> <length> <memory address> |
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
# U-boot mtest usage | |
mtest <start> <end> <pattern> <iterations> | |
Ex: | |
mtest 0x82000000 0x83000000 0xaa55aa55 1 |
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"' |
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
// 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
# 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
// 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
// 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
// Kill the current ssh-agent | |
ssh-agent -k | |
kill <pid> | |
// Remove identities | |
ssh-add -D | |
// Add new id | |
ssh-add | |
<enter password> |
NewerOlder