Skip to content

Instantly share code, notes, and snippets.

📷
tried to catch some fog, i mist.

Konrad Iturbe KonradIT

View GitHub Profile
View tweet_from_fridge.py
#!/usr/bin/env python
import sys, os, time
import tweepy
keys = dict(
consumer_key='_YOUR_CONSUMER_KEY',
consumer_secret='_YOUR_SECRET_KEY',
access_token='_YOUR_ACCESS_TOKEN',
access_token_secret='_YOUR_ACCESS_TOKEN_SECRET'
)
View get_photos_by_hour.py
import os
import json
import subprocess
from dateutil.parser import parse
from datetime import datetime
DIR="." #current directory
HOUR="09" #hour to match
for file in os.listdir(DIR):
if file.endswith("JPG"):
@KonradIT
KonradIT / autoexec.ash
Created Jan 16, 2019
GoPro Fusion WiFi STATION enabler
View autoexec.ash
# Wait for WiFi
sleep 20
# Change WiFi mode to STATION, make sure credentials are in!
t ipc rpc clnt exec1 'cp /tmp/fuse_d/wifi.conf /tmp/wifi.conf'
t ipc rpc clnt exec1 'cd / && ./wifi_sta.sh'
exit 0
View keybase.md

Keybase proof

I hereby claim:

  • I am konradit on github.
  • I am konraditurbe (https://keybase.io/konraditurbe) on keybase.
  • I have a public key whose fingerprint is C3B2 8DC5 06B0 0294 BF6B 716D F4A8 3E52 CF2B 880C

To claim this, I am signing this object:

View a3.txt
LOCATION: SIZE: FILENAME
508 1812019 amba_ssp_svc.bin.gz
1812527 1988127 dsp.bin.gz
3800654 143664 rom.bin.gz
View anafi.md

Parrot Anafi findings:

AMBA H22 camera processor

AMBA commands

chklowspd
chmod
cleandir
@KonradIT
KonradIT / dji_util.sh
Last active Aug 31, 2018
Moves DJI videos and photos from my SD card to a hard drive.
View dji_util.sh
echo " _____ _ _____ _ _ _ _ _ "
echo " | __ \ | |_ _| | | | | | (_) |"
echo " | | | | | | | | | | | | |_ _| |"
echo " | | | |_ | | | | | | | | __| | |"
echo " | |__| | |__| |_| |_ | |__| | |_| | |"
echo " |_____/ \____/|_____| \____/ \__|_|_|"
echo " "
if [[ $1 == "help" ]];
then
View README.md

How to use

  1. Copy one of the consumer key pairs to Twidere - Settings - Network - Advanced - Default API Settings
  2. Remove account from Twidere (or just skip this step)
  3. Re-login. It's OK to see "You've already logged in" message.
@KonradIT
KonradIT / Utilities.java
Created Jul 8, 2018 — forked from shreeshga/Utilities.java
Android setSringSet() / getStringSet() with compatibility
View Utilities.java
public static void setPersistentObjectSet(Context context, String key, String o) {
if (initStore(context)) {
synchronized (_store) {
SharedPreferences.Editor editor = _store.edit();
if (o == null) {
editor.remove(key);
} else {
Set<String> vals = null;
if (VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
vals = _store.getStringSet(key, null);
View gphilite.js
var fs = require('fs');
var walkPath = './';
var GoProTagger = require('./gopro-tagging');
var walk = function (dir, done) {
fs.readdir(dir, function (error, list) {
if (error) {
return done(error);
You can’t perform that action at this time.