Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name 4chan /sdg/ catbox.moe userscript
// @namespace 4chanhdgcatbox
// @match https://boards.4chan.org/aco/thread/*
// @match https://boards.4chan.org/d/thread/*
// @match https://boards.4chan.org/e/thread/*
// @match https://boards.4chan.org/h/thread/*
// @match https://boards.4chan.org/trash/thread/*
// @match https://boards.4channel.org/g/thread/*
// @match https://boards.4channel.org/jp/thread/*
@maxsoft
maxsoft / bluetooth.py
Created August 9, 2022 13:06 — forked from tito/bluetooth.py
Bluetooth example on Android using Python / Pyjnius
'''
Bluetooth/Pyjnius example
=========================
This was used to send some bytes to an arduino via bluetooth.
The app must have BLUETOOTH and BLUETOOTH_ADMIN permissions (well, i didn't
tested without BLUETOOTH_ADMIN, maybe it works.)
Connect your device to your phone, via the bluetooth menu. After the
pairing is done, you'll be able to use it in the app.
@maxsoft
maxsoft / UDPListenerService
Created May 26, 2022 22:20 — forked from finnjohnsen/UDPListenerService
Android UDP Broadcast listener service
package no.nsb.ombord;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketTimeoutException;
import java.net.UnknownHostException;
import org.apache.http.util.ExceptionUtils;
@maxsoft
maxsoft / gulpfile.js
Created November 12, 2021 10:32 — forked from glebcha/gulpfile.js
Gulp task sample (css and js minify+concat, compress images, watching for changes)
// Определяем зависимости в переменных
var gulp = require('gulp'),
cache = require('gulp-cache'),
clean = require('gulp-clean'),
stream = require('event-stream'),
size = require('gulp-size'),
jshint = require('gulp-jshint'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
minifyCSS = require('gulp-minify-css'),