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 / tango.xml
Created November 21, 2018 13:39
my gtk-2.0 tango color scheme settings
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of GtkSourceView
Copyright (C) 2006-2007 GtkSourceView team
Author: Michael Monreal <michael.monreal@gmail.com>
GtkSourceView is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@maksimKorzh
maksimKorzh / code.c
Last active December 21, 2018 09:48
/*********************************************************************************\
;---------------------------------------------------------------------------------;
; C STANDARD LIBRARIES ;
;---------------------------------------------------------------------------------;
\*********************************************************************************/
#include <termios.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
@maksimKorzh
maksimKorzh / classic.micro
Last active February 5, 2019 13:07
custom dark color theme for micro text editor
color-link default "white"
color-link comment "cyan"
color-link constant "bold magenta"
color-link constant.string "bold yellow"
color-link statement "bold red"
color-link preproc "bold magenta"
color-link type "bold green"
color-link line-number "grey"
color-link current-line-number "brightgrey"
appusajeev.wordpress.com/2011/01/27/writing-a-16-bit-real-mode-os-nasm/ os-dev-16
http://mikeos.sourceforge.net/write-your-own-os.html Mike OS
@maksimKorzh
maksimKorzh / brainfuck.yaml
Last active February 21, 2019 17:20
brainfuck syntax file for micro text editor
filetype: b
detect:
filename: "(\\.(b)$)"
rules:
- identifier: "\\b[A-Z_][0-9A-Z_]+\\b"
- type: "<|>"
- statement: "\\+|\\-"
- preproc: "\\[|\\]"
// Start service
sudo service mongod start
// Stop service
sudo service mongod stop
//Restart service
sudo service mongod restart
// Start client
@maksimKorzh
maksimKorzh / bf.c
Last active October 11, 2021 12:40
#include <stdio.h>
#define TAPE_SIZE 30000
#define SOURCE_SIZE 30000
char tape[TAPE_SIZE];
// cell is like tape[0] and if we say cell = cell + 1 then it's like tape[1]
char *cell = tape;
import requests
import urllib
from collections import OrderedDict
proxies = {}
nextProxy = 0;
with open("workingproxy.txt") as f:
for line in f:
(key, val) = line.split('\n')
<!--
Copyright (C) 2012
Author: Bernhard Posselt <bernhard.posselt@gmx.at>
Henrique C. Alves <hcarvalhoalves@gmail.com>
This file is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
import scrapy
from scrapy.http import FormRequest
class Spider1(scrapy.spiders.Spider):
name = 'scroll5'
api_url = 'https://tournaments.hjgt.org/tournament/TournamentResultSearch'
start_urls = ['https://tournaments.hjgt.org/Tournament/Results/']
def parse(self, response):