Skip to content

Instantly share code, notes, and snippets.

View KonradIT's full-sized avatar

Konrad Iturbe KonradIT

View GitHub Profile
@mocchira
mocchira / curl_range.md
Last active February 17, 2025 22:25
HTTP GET with Range header by curl
  • normal(explicitly specified start AND end)
  curl -v -X GET -H "range: bytes=1-8" http://localhost:8080/bbb/test
  • specified ONLY start(end will be specified at the end of file)
  curl -v -X GET -H "range: bytes=10-" http://localhost:8080/bbb/test
  • specified ONLY one negative value(last N bytes of file will be retrieved)
@vasmani
vasmani / gist:5748134
Last active December 18, 2015 07:39
raspberry pi && gopro for time lapse
pi@raspberrypi ~/public_html/gopro $ cat take_picture_and_send.sh
#!/bin/bash
## volume 100%
curl "http://10.5.5.9/camera/BS?t=goprohero&p=%02"
sleep 1
## mode to photo
curl "http://10.5.5.9/camera/CM?t=goprohero&p=%01"
sleep 1
## take picture
curl "http://10.5.5.9/bacpac/SH?t=goprohero&p=%01"
@GOROman
GOROman / gist:6248503
Last active October 7, 2018 22:06
OpenCVでWifi接続したGo Pro HERO3のライブ表示する
#include <opencv2/opencv.hpp>
int main()
{
cv::VideoCapture cap( "http://10.5.5.9:8080/live/amba.m3u8" );
cv::namedWindow( "GoPro" );
cv::Mat frame;
do {
cap >> frame;
@vjo
vjo / gopro-timelapse.sh
Last active February 20, 2016 14:06
Sort my gopro timelapse photos and convert it in a movie with ffmpeg
# Create a directory where to move your renamed photos
mkdir img
# Rename your first G0....JPG photos in img/img000001.JPG and so on
x=1;for i in G0*JPG; do counter=$(printf %06d $x); ln "$i" img/img"$counter".jpg; x=$(($x+1)); done
# Rotate photos if needed
cd img
for file in *.jpg; do convert $file -rotate 180 rotated-$file; done
@Lytol
Lytol / IRSSI Cheat Sheet.md
Last active January 24, 2020 04:57
IRSSI Cheat Sheet

General

  • /quit – Quit IRSSI

Windows

  • option+# – Navigate to specified window
  • ctrl-n – Navigate to next window
  • ctrl-p – Navigate to previous window
@eirikb
eirikb / imgur-oauth-test.html
Last active November 8, 2024 13:32
Post to imgur using oauth (api v3) on a static (no server) site
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>imgur oauth</title>
<script src="http://code.jquery.com/jquery.min.js"></script>
<script>
$(function () {
var extractToken = function(hash) {
@laurieainley
laurieainley / GoPro RTMP streaming with FFmpeg
Last active November 30, 2025 14:46
Live streaming from a GoPro Hero3 camera to RTMP server using FFmpeg
Basic Requirements:
Computer with wired and wireless connection
FFmpeg installation: http://www.ffmpeg.org/
GoPro Hero 3+: http://gopro.com/
RTMP server e.g. FMS (http://www.adobe.com/products/adobe-media-server-family.html) or CDN ingest point
Overview:
GoPro Hero3 cameras produce HLS streams which are consumed by control apps and their removeable monitor.
@cr3ative
cr3ative / gist:8337446
Last active December 8, 2022 08:16
Drift HD Ghost WiFi Application API

Drift HD Ghost WiFi Application API

See my technical notes here, which include how to get root on a Drift HD Ghost with no modifications to the unit.

The following is a list of URLs which might be handy if you connect your machine to the Drift HD Ghost's WiFi network.

Live Video URL (works great in VLC)

rtsp://192.168.42.1/AmbaStreamTest
@cr3ative
cr3ative / gist:8340001
Last active January 15, 2025 06:45
Drift HD Ghost - Technical Notes and Root

## Drift HD Ghost - Technical Notes and Root

Note: Please don't attempt anything here unless you are comfortable with the possibility of permanently damaging your camera. I also do not guarantee your camera is the same as mine - this is just for information and fun! It goes without saying that I take no responsibility for what you do with this information, and it will probably invalidate your warranty too.

It is reported that the firmware re-flash does not appear to disable the debug network on a Ghost S.

  • Most of this was found by simply running strings over publically available firmware and software, then searching around for anything interesting.
  • The camera runs on the Ambarella A5S chipset, which appears to run PrKERNEL (implementing uItron): http://www.esol.com/embedded/prkernelv4.html, then boots Linux as a process inside the uItron OS.
  • There's lots of references to BOSS in the firmware, presumably a codename for this chipset from Ambarella.
  • The code on the device-side is a very close im
@jbinto
jbinto / howto-recover-google-authenticator-keys.txt
Created February 8, 2014 04:20
Recovering Google Authenticator keys from Android device for backup
### Last tested February 7 2014 on a Galaxy S3 (d2att) running Cyanogenmod 11 nightly, with Google Authenticator 2.49.
### Device with Google Authenticator must have root.
### Computer requires Android Developer Tools and SQLite 3.
### Connect your device in USB debugging mode.
$ cd /tmp
$ adb root
$ adb pull /data/data/com.google.android.apps.authenticator2/databases/databases