Skip to content

Instantly share code, notes, and snippets.

@Hanqnero
Hanqnero / install-goodbyedpi.ps1
Last active August 3, 2024 12:49
Install GoodbyeDPI with custom filter focusing on preventing ISPs from slowing down YouTube and other Services and enable autostart as a service
# MIT LICENSE
#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the
#"Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,
#distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
#following conditions:
#The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
#MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
2024-03-06 22:24:13,852 [ 6] INFO - #c.i.p.i.b.AppStarter - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2024-03-06 22:24:13,868 [ 22] INFO - #c.i.u.i.PageCacheUtils - File page caching params:
2024-03-06 22:24:13,868 [ 22] INFO - #c.i.u.i.PageCacheUtils - DEFAULT_PAGE_SIZE: 10485760
2024-03-06 22:24:13,869 [ 23] INFO - #c.i.u.i.PageCacheUtils - Direct memory to use, max: 2126512128
2024-03-06 22:24:13,871 [ 25] INFO - #c.i.u.i.PageCacheUtils - FilePageCache: regular + lock-free (LOCK_FREE_PAGE_CACHE_ENABLED:true)
2024-03-06 22:24:13,872 [ 26] INFO - #c.i.p.i.b.AppStarter - JNA library (64-bit) loaded in 10 ms
2024-03-06 22:24:13,873 [ 27] INFO - #c.i.u.i.PageCacheUtils - NEW_PAGE_CACHE_MEMORY_FRACTION: 0.20000000298023224
2024-03-06 22:24:13,873 [ 27] INFO - #c.i.u.i.PageCacheUtils - Regular FilePageCache: 503316478 bytes
2024-03-06 22:24:13,874 [ 28] INFO - #c.i.u.i.PageCa
2024-03-06 22:24:13,852 [ 6] INFO - #c.i.p.i.b.AppStarter - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2024-03-06 22:24:13,868 [ 22] INFO - #c.i.u.i.PageCacheUtils - File page caching params:
2024-03-06 22:24:13,868 [ 22] INFO - #c.i.u.i.PageCacheUtils - DEFAULT_PAGE_SIZE: 10485760
2024-03-06 22:24:13,869 [ 23] INFO - #c.i.u.i.PageCacheUtils - Direct memory to use, max: 2126512128
2024-03-06 22:24:13,871 [ 25] INFO - #c.i.u.i.PageCacheUtils - FilePageCache: regular + lock-free (LOCK_FREE_PAGE_CACHE_ENABLED:true)
2024-03-06 22:24:13,872 [ 26] INFO - #c.i.p.i.b.AppStarter - JNA library (64-bit) loaded in 10 ms
2024-03-06 22:24:13,873 [ 27] INFO - #c.i.u.i.PageCacheUtils - NEW_PAGE_CACHE_MEMORY_FRACTION: 0.20000000298023224
2024-03-06 22:24:13,873 [ 27] INFO - #c.i.u.i.PageCacheUtils - Regular FilePageCache: 503316478 bytes
2024-03-06 22:24:13,874 [ 28] INFO - #c.i.u.i.PageCa
@Hanqnero
Hanqnero / py
Created December 21, 2022 15:17
Solution to the Coding problem generated by ChatGPT, few changes were made as the funtion was uncomplete probably due to it's big size.
# Problem https://ipc.susu.ru/210-2.html?problem=697
# This isn't one response but compilation of two. Changed only a few lines. Original generated solution doesn't work.
def spell_number(number: int) -> str:
# First, we define the words that correspond to the digits 0-9
digits = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]
# We also define the words that correspond to the tens places (10, 20, ... 90)
tens = ["twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"]