- Open
about:config
- Disable both
keyword.enabled
andbrowser.fixup.alternate.enabled
by setting them tofalse
- Success!
This file contains 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
import sys | |
import queue | |
import threading | |
import time | |
import datetime | |
import uuid | |
from concurrent.futures import ThreadPoolExecutor | |
import flask |
This file contains 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
import sys | |
import queue | |
from concurrent.futures import ThreadPoolExecutor | |
import flask | |
app = flask.Flask(__name__) | |
executor = ThreadPoolExecutor(max_workers=3) | |
def format_sse(data, event=None): |
This file contains 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 python:3 as base | |
FROM base as target2 | |
COPY main2.py / | |
CMD python3 -u main2.py | |
FROM base as target1 | |
COPY main.py / | |
CMD python3 -u main.py |
This file contains 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
K = 100; | |
A = zeros(K); | |
B = zeros(K); | |
for x = 2:K | |
for y = 2:K | |
A(x,y) = x + y; | |
B(x,y) = x * y; | |
end | |
end |
This file contains 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
import time | |
import concurrent.futures | |
def worker(n): | |
time.sleep(n) | |
return 42 | |
with concurrent.futures.ThreadPoolExecutor() as extor: |
This file contains 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
#!/bin/bash | |
# trap "{ echo killing $$ > $HOME/test.log; }" SIGHUP | |
CID=$(docker run -tid alpine:latest /bin/sh -c "/bin/sleep 3600") | |
trap "{ docker stop $CID && docker rm $CID; }" SIGHUP | |
docker attach $CID |
sudo yum install epel-release
sudo yum update