Skip to content

Instantly share code, notes, and snippets.

View blazejrypak's full-sized avatar
🏠
Working from home

Blažej Rypák blazejrypak

🏠
Working from home
View GitHub Profile
@rajarsheem
rajarsheem / littlechecker.py
Last active March 23, 2024 18:18
A little code checker tool in python for Java,C,Cpp. Handles compile error, runtime error, accepted, wrong, TLE.
import os, filecmp
codes = {200:'success',404:'file not found',400:'error',408:'timeout'}
def compile(file,lang):
if lang == 'java':
class_file = file[:-4]+"class"
elif lang == 'c':
class_file = file[:-2]
elif lang=='cpp':
@wavezhang
wavezhang / java_download.sh
Last active July 25, 2024 13:56
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz
@apaar97
apaar97 / code_checker.py
Last active December 26, 2022 11:33 — forked from isopropylcyanide/littlechecker.py
Lightweight code checker tool in python for compiling and running Java, C & Cpp files
import os
import sys
import filecmp
import re
import subprocess
from subprocess import CalledProcessError, TimeoutExpired
STATUS_CODES = {
200: 'OK',
201: 'ACCEPTED',
@lpla
lpla / MQTT-influxDB-telegraf-grafana-in-armv6-raspberry.md
Last active April 6, 2024 10:28
Install MQTT + influxDB + telegraf + grafana in Raspberry Pi 1 or Zero (armv6)

I tried to install this set of technologies for an small home project using BME280 in a Raspberry Pi Zero, but all guides I tried to follow are based on newer Raspberry Pi versions (armv7) (like this guide or this one), so the docker instructions don't work for some of these packages.

TL;DR: don't use any docker image, use only apt commands and repos from each project official documentation

Mosquitto (MQTT)

As official documentation details, simply use the already available package from Raspbian/Raspberry Pi OS archive repository: