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
#!/bin/bash | |
set -e | |
# IMPORTANT! First install ffmpeg with encoders enabled, i.e. like this: | |
# brew install ffmpeg --with-libvpx --with-libvorbis --with-theora | |
# Will not re-encode files, if output file exists. | |
# Quality settings are configured in encoders' command line parameters below, sorry about that. | |
if [ -z "$1" ]; then |
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
Setting up Raspbian on Raspberry Pi on OS X | |
1) Download Raspbian image. http://www.raspberrypi.org/downloads/ | |
2) Install the image on a SD card: | |
diskutil list #Get the SD card path, ie. /dev/disk2 | |
diskutil unmountDisk /dev/disk2 #Unmount the SD card |
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
The dynamic motd shows a bit too much info by default: | |
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-45-generic x86_64) | |
* Documentation: https://help.ubuntu.com/ | |
System information as of Thu Feb 12 22:05:52 EET 2015 | |
System load: 0.01 Processes: 153 | |
Usage of /home: 11.8% of 274.89GB Users logged in: 0 |
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
PocketCHIP 4.3 on text mode | |
=========================== | |
EDIT: Also available on CHIP community wiki: http://www.chip-community.org/index.php/Setting_up_text_mode_on_4.3 | |
This guide includes the steps I needed to go through to get the PC to work properly in text mode, from a clean 4.3 firmware. | |
[On GUI terminal, when connected to WiFi] | |
sudo apt-get update && sudo apt-get upgrade |
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
// ==UserScript== | |
// @name Apina.biz video2gif | |
// @description Replace apina.biz videos with gif | |
// @namespace bionik | |
// @include https://apina.biz/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var videos = document.querySelectorAll('video.gif'); |