Skip to content

Instantly share code, notes, and snippets.

View KonradIT's full-sized avatar

Konrad Iturbe KonradIT

View GitHub Profile

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 July 8, 2018 11:32 — forked from shreeshga/Utilities.java
Android setSringSet() / getStringSet() with compatibility
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);
@KonradIT
KonradIT / xposed_recover-from-bootlop.md
Created May 29, 2018 12:28 — forked from varhub/xposed_recover-from-bootlop.md
XPOSED - Recover from bootloop

XPOSED - Recover from bootloop

Tested with Lollipop and Marshmallow. Some file path had been changed since ICS/KK [1].


When you activate an Xposed module and produces a bootloop, there are three options to recover it:

  1. Restore a nandroid
@KonradIT
KonradIT / update_git_repos.sh
Last active April 21, 2018 10:50 — forked from douglas/update_git_repos.sh
Update all git repositories under a base directory
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
echo "Pulling in latest changes for all repositories..."
for i in $(find . -name ".git" | cut -c 3-); do
echo "";
echo "Current repository: $i";
/*
This is a forked and modified version of Kyle Martin's Rotating Servo Base code. You can view the original source code here: https://gist.github.com/KyleMartinTech/0007b7d093c94b4556c09d4de82eff5c
I added the following features to the code:
- Send command to Stop the video capture / timelapse capture when the Servo motor stops
- Send command to start the timelapse capture when the Servo motor starts moving again
Need to add:
- Keep Alive background thread (or send after every servo movement)
- Wake On Lan to allow for powering off and on when the room is empty
@KonradIT
KonradIT / gopro_streaming.cpp
Created March 20, 2018 20:59 — forked from Seanmatthews/gopro_streaming.cpp
GoPro Hero4 Black C++ Streaming With OpenCV
#include <boost/exception/exception.hpp>
#include <boost/thread.hpp>
#include <boost/chrono.hpp>
#include "opencv2/opencv.hpp"
#include "opencv2/highgui.hpp"
using namespace cv;
using namespace std;
@KonradIT
KonradIT / GoProKeepAlive.pde
Created March 20, 2018 20:59 — forked from codeanticode/GoProKeepAlive.pde
Processing sketch to keep the GoPro alive
import java.net.Socket;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
void setup() {
thread("keepAlive");
@KonradIT
KonradIT / GoProStreamer.java
Created March 20, 2018 20:55 — forked from mekya/GoProStreamer.java
GoPro Hero4 Silver - Live Preview on PC (java, ffplay, ffmpeg)
import java.io.IOException;
import java.io.InputStream;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;
import java.net.SocketException;
import java.net.URL;
import java.util.Locale;
@KonradIT
KonradIT / Pebble API documentation
Created December 8, 2016 16:44
Pebble appstore api (Unofficial)
--- Pebble API Documentation ---
NOTE: api2.getpebble.com and appstore-api.getpebble.com both appear to point to the same API
App Banners, Categories & Collections: https://api2.getpebble.com/v2/home/apps
Watchface Banners, Categories & Collections: https://api2.getpebble.com/v2/home/faces
All apps: https://api2.getpebble.com/v2/apps/collection/all/watchapps-and-companions
@KonradIT
KonradIT / SimpleHTTPServer.cs
Created February 20, 2016 09:44 — forked from aksakalli/SimpleHTTPServer.cs
SimpleHTTPServer with C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;
using System.IO;
using System.Threading;
using System.Diagnostics;