This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters] | |
"FileSizeLimitInBytes"=dword:ffffffff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gimpfu import * | |
def improve_grayscale(img): | |
ly2 = img.active_layer.copy() | |
img.add_layer(ly2) | |
pdb.plug_in_gauss_rle(img, ly2, 100, 1, 1) | |
ly2.mode = DIVIDE_MODE | |
img.flatten() | |
pdb.gimp_convert_grayscale(img) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Fix RTL-8169 Driver on resume from suspend | |
After=suspend.target | |
[Service] | |
User=root | |
Type=oneshot | |
ExecStartPre=/sbin/modprobe -r r8169 | |
ExecStart=/sbin/modprobe r8169 | |
TimeoutSec=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AsyncTask(QRunnable): | |
class _Signals(QObject): | |
result = pyqtSignal(tuple) | |
@staticmethod | |
def _callback(args: Tuple[Callable[[Any], None], Any]): | |
fun, arg = args | |
fun(arg) | |
def __init__(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <cassert> | |
#include <climits> | |
#include <cstdio> | |
#include <deque> | |
typedef std::deque<int> stack; | |
void move_top1(stack& from, stack& to, stack& spare); | |
int top(const stack& o) |