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
| # burn the image to the pi with etcher/rufus | |
| # connect the sdcard to your computer | |
| # add following files to the boot partition: | |
| # MAKE SURE THEY HAVE LINUX LF (NO CRLF) | |
| # /wpa_supplicant.conf | |
| ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
| update_config=1 | |
| country=DE |
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> | |
| <head> | |
| <style> | |
| #draggable { | |
| width: 100px; | |
| height: 100px; | |
| background-color: lightgrey; | |
| position: absolute; | |
| user-select: none; | |
| } |
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
| import pi2go | |
| import time | |
| def moveRight(): | |
| pi2go.setLED(0, 0, 0, 0) | |
| pi2go.setLED(1, 4095, 0, 0) | |
| pi2go.setLED(2, 0, 4095, 0) | |
| pi2go.setLED(3, 4095, 4095, 4095) | |
| pi2go.go(power, power - turnPower) |
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
| #!/bin/bash | |
| #service xbmc stop only works if the output is redirected.. | |
| echo > /home/xbian/start-emulationstation.log | |
| exec >> /home/xbian/start-emulationstation.log | |
| exec 2>&1 | |
| echo raspberry| sudo -S service xbmc stop | |
| #my custom script for connecting to bluetooth controllers | |
| /home/xbian/connect-controllers.sh | |
| echo connected bluetooth |
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
| ffmpeg -i "YDXJ0130.mp4" -vf vidstabdetect=shakiness=5:show=1 out.mp4 | |
| ffmpeg -i "YDXJ0130.mp4" -vf vidstabtransform -y out.mp4 | |
| #ffmpeg -i "YDXJ0130.mp4" -vf deshake out.avi |
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
| #!/bin/bash | |
| # uses google "feeling lucky" to search for a video on youtube. | |
| curl -s --get --data-urlencode "q=site:youtube.com/watch $1" http://ajax.googleapis.com/ajax/services/search/web?v=1.0 | sed 's/"unescapedUrl":"\([^"]*\).*/\1/;s/.*GwebSearch",//' | sed 's/\\u003d/=/g' |
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
| #make sure ffmpeg is available via path variable (command line) | |
| python youtube-dl PL3F7E9E7CCA5B4E28 -i -x --audio-format mp3 -o "./mp3/%(title)s.mp3 |