Skip to content

Instantly share code, notes, and snippets.

View KonradIT's full-sized avatar

Konrad Iturbe KonradIT

View GitHub Profile
@dellisd
dellisd / MainActivity.java
Last active May 9, 2018 19:36
How to check for night mode without using AppCompat.DayNight theme
package ca.llamabagel.daynight;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
@rkh932
rkh932 / GoProQGC.md
Last active July 27, 2022 03:08
How to Connect a GoPro Hero 4 Black to QGroundControl in Linux

How to Connect a GoPro Hero 4 Black to QGroundControl in Linux

What you'll need:

  • QGroundControl
  • curl
  • bash
  • ffmpeg
  • GoPro Hero 4 Black

Instructions

@KyleMartinTech
KyleMartinTech / DIY_Timelapes_Cart.ino
Last active October 10, 2019 23:44
DIY Timelapse Cart
/*
This is the code for a video I (kyle martin tech) did on how to make a
DIY GoPro Time Lapse Dolly. That video can be found here: https://youtu.be/KywjUrnVIWY
I have also created a video walk through of this code which can
be found here: https://youtu.be/F8oxyoFxaS8
The parts used in this project are
Arduino Nano:
Buy: http://geni.us/iBNl
Data Sheet: https://store.arduino.cc/usa/arduino-nano
@losnir
losnir / motor_power_constants.asm
Last active September 8, 2021 15:01
Xiaomi M365 Custom Firmware
0x00004e1e movw r2, #0xc977
0x00004e26 movw r1, #0xc977
0x00004e3e movw r2, #0xc977
0x00004e46 movw r1, #0xc977
0x00004e5c movw r3, #0xc977
@timhughes
timhughes / stabilize.sh
Created January 14, 2018 23:06
Stabilize my GoPro videos
#! /bin/sh
#
# stabilize.sh
#
fullfile=$(readlink -f $1)
dir_name=$(dirname $fullfile)
filename=$(basename $fullfile)
file_no_ext=${filename%.*}
extension="${filename##*.}"
@kategray
kategray / GoPro-I2Ccommands.md
Created September 20, 2017 03:20
List of all I2C commands between Dual Hero Bacpac and Hero 3+ Black.
op label description addr arguments remark
vs GET_BACPAC_PROTOCOL_VERSION get protocol version - none bacpac must reply with the correct verification string
TD SET_CAMERA_SETTING set camera setting - values returned by td set settings and enter 3D mode
TM SET_BACPAC_DATE_TIME set time 1-6 YY MM DD hh mm ss
TM SET_CAMERA_DATE_TIME set time 1-6 YY MM DD hh mm ss
CM SET_BACPAC_MODE camera mode 7 0 video; 1 photo; 2 burst photo; 3 timelapse; 5 playback; 7 menu (r/o)
CM SET_CAMERA_MODE camera mode 7 0 video; 1 photo; 2 burst photo; 3 timelapse; 5 playback; 7 menu (r/o)
PR SET_BACPAC_PHOTO_RESOLUTION photo resolution 8 3 5MP Medium; 4 7MP Wide; 5 12MP Wide; 6 7MP Medium
PR SET_CAMERA_PHOTO_RESOLUTION photo resolution 8 3 5MP Medium; 4 7MP Wide; 5 12MP Wide; 6 7MP Medium
@jessfraz
jessfraz / boxstarter.ps1
Last active April 11, 2024 16:02
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@torgeir
torgeir / connect-wireless-gopro-to-wireless-router-with-two-network-interfaces.md
Last active April 7, 2019 22:50
Connect wireless gopro to wireless router with two network interfaces

Connect wireless gopro to wireless router with two network interfaces

For a wireless router on 192.168.1.1 with two network interfaces, e.g. wlan0 and wlan1, you can expose your gopro's live stream on a port on the router using the following setup.

Connect your machine to wlan0, ssh to your router 192.168.1.1, and run these iptables rules.

iptables -t nat -I PREROUTING -d 192.168.1.1 -j DNAT --to-destination 10.5.5.9 -p tcp --destination-port 8080
import gatt
import threading
manager = gatt.DeviceManager(adapter_name='hci0')
class AnyDevice(gatt.Device):
def services_resolved(self):
super().services_resolved()
device_proprietary_service = next(
@primaryobjects
primaryobjects / commit.png
Last active May 31, 2023 09:34
How to setup prettier as a pre-commit hook for Git commits.
commit.png