Skip to content

Instantly share code, notes, and snippets.

View falsovsky's full-sized avatar

falsovsky

View GitHub Profile
@falsovsky
falsovsky / Makefile
Last active September 15, 2022 00:33
FUCK YOU bootloader
##
# FUCK YOU on the bootloader
#
# @file
# @version 0.1
# end
main: fuckyou.bin
floppy: main floppy.img

Keybase proof

I hereby claim:

  • I am falsovsky on github.
  • I am falsovsky (https://keybase.io/falsovsky) on keybase.
  • I have a public key whose fingerprint is F7E7 477E 5342 54FE 4D48 EDD1 1E4F 05AC DBB2 C85C

To claim this, I am signing this object:

@falsovsky
falsovsky / maria.nim
Created April 5, 2020 19:51
Maria nim
import httpClient
import json
import strutils
import strformat
const random_url = "https://maria.deadbsd.org/api/random"
var client = newHttpClient()
let jsonTree = parseJson(client.getContent(random_url))
@falsovsky
falsovsky / doom.py
Last active March 7, 2021 23:52
Zandronum Master Server query
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import socket
import struct
import sys
import time
import concurrent.futures
@falsovsky
falsovsky / h6-orange-pi-one-plus_ethernet.patch
Created July 16, 2019 11:34
h6 orange pi one plus enable ethernet
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts
index 12e17567ab56..4897c3fab71c 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: (GPL-2.0+ or MIT)
/*
* Copyright (C) 2018 Amarula Solutions
+ * Copyright (C) 2018 Armbian
* Author: Jagan Teki <jagan@amarulasolutions.com>
#!/bin/bash
set -e
rm -rf root/*
cd u-boot
git pull
make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- -j4 orangepi_pc_defconfig
PYTHON=python2 make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- -j4
cp u-boot-sunxi-with-spl.bin ../root
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import re
import requests
request = requests.get('http://www.ipma.pt/pt/index.html')
MATCH = re.search(r"var stations=(.*?)\;", request.text, re.DOTALL)
#include <stdio.h>
#include <unistd.h>
#include <gpiod.h>
int main(int argc, char *argv[]) {
int status = 0;
// Check for root!
if (geteuid() == 0) {
for(;;) {
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib
from bs4 import BeautifulSoup
params = urllib.urlencode({'showResults': 'true', 'objects': 'RF411806005CN'})
f = urllib.urlopen("http://www.ctt.pt/feapl_2/app/open/objectSearch/objectSearch.jspx", params)
print f.read()
#include "cube.h"
triPoint vertices[8];
triPoint lineVertices[8];
uint32_t angleX = 0;
uint32_t angleY = 0;
uint32_t angleZ = 0;
void cube_Init() {