Skip to content

Instantly share code, notes, and snippets.

View maksimKorzh's full-sized avatar
💭
Freelancer and Blogger

Code Monkey King maksimKorzh

💭
Freelancer and Blogger
View GitHub Profile
@maksimKorzh
maksimKorzh / games.md
Created September 4, 2021 07:46 — forked from XlogicX/games.md
List of Boot Sector Gamers

Boot Sector Games

A list of playable boot sector games, most of which are on github. Fun to play, great to learn from. There are also many cool non-booting boot sectors out there that aren't games (so more like demos), but this page is just reserved to interactive boot sectors / games. This list is also not complete, but not on purpose, it is a best effort collection of games, so if you know of any fun boot sector games, please contribute.

This page lists a collection of 26 games spanning several authors: nanochess, me, daniel-e, shikhin, JulianSlzr, XanClic, QiZD90, darkvoxels, guyhill, w-shackleton, egtzori, VileR, ish_works, franeklubi, and queso_fuego. peterferrie should also be mentioned as he has touched a lot of these games.

TetrOS

https://github.com/daniel-e/tetros

Tetris Clone. Full color, no score. This was one of the older boot sector games out there. TetrOS

@maksimKorzh
maksimKorzh / webcam.py
Last active April 15, 2024 12:58
Simple web camera view for recording programming videos
#!/usr/bin/python3
############################################
#
# Simple script to display web camera view
# for the video tutorial recording
# purposes
#
# by
#
@maksimKorzh
maksimKorzh / codemirror.xml
Created February 13, 2020 17:38
codemirror default theme for xed or gedit editors
<?xml version="1.0" ?>
<style-scheme id="autumn" name="Code Mirror" version="1.0">
<author/>
<_description>Autumn theme</_description>
<style background="#White" foreground="#Black" name="text"/>
<style background="#red" foreground="#black" name="cursor"/>
<style background="#c9c9c9" foreground="#Black" name="selection"/>
<style background="#447744" foreground="#aaeeaa" name="diff:added-line"/>
<style background="#ddbb55" foreground="#lightyellow" name="diff:changed-line"/>
<style background="#aaccaa" foreground="#336633" name="diff:removed-line"/>
import requests
from bs4 import BeautifulSoup
import csv
import json
class Onetimescraper:
results = []
def fetch(self, url):
// cut video from to
ffmpeg -ss 13:29 -i test.mkv -to 14:00 -c copy part2.mkv
// cat parts
mylist.txt:
# this is a comment
file '/home/maksim/Desktop/part1.mkv'
file '/home/maksim/Desktop/part2.mkv'
@maksimKorzh
maksimKorzh / usbreset.c
Last active January 4, 2020 19:36
Linux mint 19.1 Tessa mouse not always working with laptop bug fix
/* usbreset -- send a USB port reset to a USB device */
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <linux/usbdevice_fs.h>
<!DOCTYPE html>
<html>
<head>
<!-- Favicon -->
<!--link rel="shortcut icon" href="{{url_for('static', filename='images/favicon.ico')}}"-->
<!-- JQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
import pytesseract
import sys
import argparse
try:
import Image
except ImportError:
from PIL import Image
from subprocess import check_output
@maksimKorzh
maksimKorzh / browser.py
Created November 28, 2019 17:18
A simple and minimalist CLI browser
# Libraries
import requests
from bs4 import BeautifulSoup
class Browser:
# Make HTTP GET request
def fetch(self, url):
# Try to fetch URL
try:
# Obtain HTML response
@maksimKorzh
maksimKorzh / ots.py
Last active November 25, 2019 08:56
A simple class to inherit from while writing one time scrapers
#
# Libraries
#
from bs4 import BeautifulSoup
from tabulate import *
import requests
import time
import json
import csv