Skip to content

Instantly share code, notes, and snippets.

Avatar
🌳
Hacking on jasen.org.rs

Attila Oláh attilaolah

🌳
Hacking on jasen.org.rs
View GitHub Profile
@attilaolah
attilaolah / dl.py
Created May 1, 2021
Pokémon TV episode downloader
View dl.py
"""Pokemon episode downloader script.
Usage:
python dl.py https://s2.content.video.llnw.net/smedia/path/to/playlist0.ts
"""
import os
import shutil
import sys
@attilaolah
attilaolah / verify_plot_files.py
Created Apr 19, 2021
MASS plot file verifier
View verify_plot_files.py
"""MASS database format verifier."""
import hashlib
import os.path
import sys
USAGE = """Usage:
{} proof_dir/*.massdb
@attilaolah
attilaolah / mapbox_dl.go
Last active Dec 28, 2020
Mapbox Static Tile Downloader
View mapbox_dl.go
// Package main downloads tiles from the Mapbox Static Tiles API.
// See https://docs.mapbox.com/api/maps/static-tiles/#retrieve-raster-tiles-from-styles.
//
// Usage:
// go run mapbox_dl.go -h
package main
import (
"flag"
"fmt"
@attilaolah
attilaolah / .XCompose
Last active Jan 9, 2020
ChromeOS ATM NumPad
View .XCompose
include "%L"
<KP_7>: KP_1
<KP_8>: KP_2
<KP_9>: KP_3
<KP_1>: KP_7
<KP_2>: KP_8
<KP_3>: KP_9
@attilaolah
attilaolah / jq.BUILD
Last active Nov 25, 2018 — forked from benley/jq.BUILD
bazel build jq
View jq.BUILD
licenses(["notice"])
cc_binary(
name = "jq",
visibility = ["//visibility:public"],
srcs = glob([
"*.h",
"*.c",
]),
copts = [
@attilaolah
attilaolah / LICENSE
Last active Jan 16, 2020
Google Apps Script for converting UTM coordinates to [latitude, longitude].
View LICENSE
Copyright 2018 Google LLC.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
View 662: Slapovi Sopotnice
POLYGON((397286.916999997 4795599.52079938,397311.239399999 4795618.50309938,397310.943099998 4795630.07069938,397320.138199999 4795639.56189938,397341.493999998 4795640.45119938,397359.587199995 4795646.08619938,397372.638100001 4795651.42479938,397389.248199998 4795654.39039938,397404.968599999 4795660.02549938,397443.943599998 4795687.60889938,397450.765699999 4795688.79519938,397482.7994 4795688.49759939,397497.630599999 4795717.26819938,397511.868699999 4795751.55569938,397535.301099996 4795767.27529938,397556.3605 4795773.50339938,397569.411400001 4795778.24869938,397583.055700003 4795787.44319938,397599.666199999 4795805.83239938,397613.607199998 4795819.77259938,397630.810399997 4795817.39929938,397665.632100003 4795818.16949939,397679.869599999 4795828.84699938,397695.886399995 4795827.66009938,397711.606899999 4795838.33749938,397760.547799995 4795856.72579938,397791.394699999 4795846.34359939,397801.182600001 4795841.89429938,397851.724599999 4795842.48609938,397880.495999997 4795856.72239938,39789
@attilaolah
attilaolah / DHT11_BMP180_server.ino
Last active Sep 24, 2017
HTTP JSON API: ENC28J60 + DHT11 + BMP180 + UNO
View DHT11_BMP180_server.ino
// HTTP JSON API.
#include <EtherCard.h>
#include <DHT.h>
#include <Wire.h>
#include <Adafruit_BMP085_U.h>
// Ethernet:
View sharenet.sh
#!/usr/bin/env sh
#
# Internet Sharing
#
# Based on: https://wiki.archlinux.org/index.php/Internet_sharing
#
LAN=enp0s0
WAN=wlp0s0
View index.sh
#!/usr/bin/env sh
rtmpdump -v -r "rtmp://37.187.153.186:1935/asmedia/index" -o- \
| cvlc \
--extraintf http \
--http-password changeme \
-