Skip to content

Instantly share code, notes, and snippets.

@Robpol86
Robpol86 / output.txt
Created November 9, 2015 05:43
GoPro Hero3 Black Edition Linux Kernel Failure
(binwalk)support@moops gopro-linux (master) $ git remote -v
origin https://github.com/evilwombat/gopro-linux.git (fetch)
origin https://github.com/evilwombat/gopro-linux.git (push)
(binwalk)support@moops gopro-linux (master) $ git status
# On branch master
nothing to commit, working directory clean
(binwalk)support@moops gopro-linux (master) $ diff .config arch/arm/configs/hero3black-standalone_kernel_defconfig
4c4
< # Sun Nov 8 17:56:15 2015
---
@Robpol86
Robpol86 / convertMusic.py
Created January 30, 2013 05:55
The script I've been using (which I wrote) to convert all of my FLAC files to MP3 when I add new music to my collection. Wrote the first version in November 2008, but this version was written on December 2012.
#!/home/robpol86/python27/bin/python2.7 -u
"""Converts all FLAC files in a directory to mp3 files. Avoids converting old files by using an SQLite database.
Requirements
------------
Python >= 2.7.3 (Linux)
mutagen >= 1.20 : http://code.google.com/p/mutagen/
psutil >= 0.6.1 : http://code.google.com/p/psutil/
robutils >= 0.1.0 : https://github.com/Robpol86/robutils/
/usr/bin/flac
@Robpol86
Robpol86 / SystemSetup_ChromebookPixel.md
Last active December 19, 2015 15:19 — forked from mikeflynn/chromebook_pixel_setup.md
System setup guide for a command-line chroot environment on Chromebook Pixel laptops.

Chromebook Pixel Setup

    Work in progress.

Prerequisites

  • Put the Pixel in developer mode.
@Robpol86
Robpol86 / SystemSetup_Android.md
Last active December 19, 2015 22:19
Setup guide I use after flashing a new ROM on my Android phones/devices.

System Setup: Android

This guide explains how I setup my Android devices after flashing a new ROM or just wiping the device to start over. I use it to stay consistent every time I wipe one of my devices.

Backup First

  1. Before flashing, backup with Helium to Google Drive like so:
@Robpol86
Robpol86 / git
Last active October 3, 2016 17:23
Setup git.
# Moved to https://github.com/Robpol86/dotfiles/blob/master/bashrc
/*
Designed for makemkvcon running inside a Docker container writing MKV files to /output.
The problem:
makemkvcon creates MKV files with the maximum of 0644 file mode. The current umask limits the maximum file mode, but
does not itself increase permissions (only decreases). This means when a user has a umask of 0002 and touches a new
file, it will have permissions of 664. However when makemkvcon runs MKV files will have permissions of 644.
The solution:
This code compiles into a shared object which is loaded at the beginning of makemkvcon's execution. This will
@Robpol86
Robpol86 / disable-ethernet.sh
Created June 30, 2013 07:04
Disables on-board Ethernet to fix Raspberry Pi WiFi+Lapdock
#!/bin/bash
### BEGIN INIT INFO
# Provides: disable-ethernet
# Required-Start: $local_fs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Disables on-board Ethernet to fix WiFi+Lapdock
# Description: When using the Raspberry Pi Model B on the
@Robpol86
Robpol86 / Install_Fedora.md
Last active August 22, 2020 02:57
This is how I setup my Fedora (or RHEL/CentOS) boxes.

Fedora Server Setup

Steps updated for Fedora Server 28 64-bit DVD ISO.

Installation Options

  • Software selection: Fedora Custom Operating System
    • No add-ons checked.
  • Network & Host Name: Set Hostname
@Robpol86
Robpol86 / timelapse.md
Created November 30, 2016 03:39 — forked from porjo/timelapse.md
ffmpeg time-lapse

Convert sequence of JPEG images to MP4 video

ffmpeg -r 24 -pattern_type glob -i '*.JPG' -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4

  • -r 24 - output frame rate
  • -pattern_type glob -i '*.JPG' - all JPG files in the current directory
  • -i DSC_%04d.JPG - e.g. DSC_0397.JPG
  • -s hd1080 - 1920x1080 resolution

Slower, better quality

@Robpol86
Robpol86 / gist:6d56e715cb755f06a0984e8cb4ee5e56
Created November 11, 2021 20:15
find /sys/devices/platform -type f
/sys/devices/platform/DIAG_CMD.0/power/control
/sys/devices/platform/DIAG_CMD.0/power/runtime_active_time
/sys/devices/platform/DIAG_CMD.0/power/autosuspend_delay_ms
/sys/devices/platform/DIAG_CMD.0/power/runtime_status
/sys/devices/platform/DIAG_CMD.0/power/runtime_suspended_time
/sys/devices/platform/DIAG_CMD.0/driver_override
/sys/devices/platform/DIAG_CMD.0/modalias
/sys/devices/platform/DIAG_CMD.0/uevent
/sys/devices/platform/SVC00000009:00000002.1/power/control
/sys/devices/platform/SVC00000009:00000002.1/power/runtime_active_time