Skip to content

Instantly share code, notes, and snippets.

View KonradIT's full-sized avatar

Konrad Iturbe KonradIT

View GitHub Profile
package com.gopro.wsdk.domain.camera.network.a;
import java.util.UUID;
/* compiled from: BleConstants */
public class h {
static final int[] a = new int[]{754, 1793};
static final byte[] b = new byte[0];
/* compiled from: BleConstants */
pkgname=mutter
pkgver=3.24.1+2+gbb481fafd
pkgrel=1
pkgdesc="A window manager for GNOME"
url="https://git.gnome.org/browse/mutter"
arch=(i686 x86_64)
license=(GPL)
depends=(dconf gobject-introspection-runtime gsettings-desktop-schemas
libcanberra startup-notification zenity libsm gnome-desktop upower
libxkbcommon-x11 gnome-settings-daemon libgudev libinput)
@C-D-Lewis
C-D-Lewis / get-sdks.js
Created December 11, 2016 20:18
Download all Pebble SDK core packages
var request = require('request');
var https = require('https');
var fs = require('fs');
var URL = 'https://sdk.getpebble.com/v1/files/sdk-core';
var OUTPUT_DIR = './sdks';
if(!fs.existsSync(OUTPUT_DIR)){
fs.mkdirSync(OUTPUT_DIR);
}
@chris-belcher
chris-belcher / rbtc-censorship.md
Last active May 14, 2020 19:01
censorship on r/btc

r/btc markets itself as a "censorship-free" sub. In reality it attempts to silence the voices of people it disagrees with.

A few screenshot examples of censorship https://imgur.com/a/rHrtC

this article was deleted when posted, which describes how the mods of r/btc are roger ver's employees at bitcoin.com https://medium.com/@WhalePanda/the-curious-relation-between-bitcoin-com-anti-segwit-propaganda-26c877249976#.4mfo9qn3e

"Exploit code for the recent BTU attack - apparently this was posted to /r/btc, and of course, got censored. :)"

@Seanmatthews
Seanmatthews / gopro_streaming.cpp
Last active November 24, 2021 14:31
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;
@pythe
pythe / Connect Pebble
Created October 15, 2016 06:26
Tasker task to reconnect Pebble smartwatch. Requires AutoInput. Activate via homescreen widget.
<TaskerData sr="" dvi="1" tv="4.8u5m">
<Task sr="task17">
<cdate>1476336090443</cdate>
<edate>1476512127828</edate>
<id>17</id>
<nme>Connect Pebble</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>20</code>
<App sr="arg0">
@jkubecki
jkubecki / ExportKindle.js
Last active June 1, 2024 22:51
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {
@jboursiquot
jboursiquot / limit_goroutines_with_semaphores.go
Last active October 6, 2023 15:56
Limiting the number of running goroutines using semaphores in #golang
var (
concurrency = 5
semaChan = make(chan struct{}, concurrency)
)
func doWork(item int) {
semaChan <- struct{}{} // block while full
go func() {
defer func() {
<-semaChan // read releases a slot
/** //<>// //<>// //<>// //<>// //<>//
* Please note that the code for interfacing with Capture devices
* will change in future releases of this library. This is just a
* filler till something more permanent becomes available.
/**
* This will display live video from a GoPro Hero4 camera connected via WiFi.
* Code & detective work by Gal Nissim & Andres Colubri.
*
* More about GStreamer pipelines:
* https://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/
@codeanticode
codeanticode / GoProKeepAlive.pde
Created August 11, 2016 23:43
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");