/tmp/ipwb$ coverage run -m pytest
=================================== test session starts ===================================
platform linux -- Python 3.8.2, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: /tmp/ipwb, configfile: setup.cfg
plugins: flake8-1.0.6, cov-2.10.1
collected 121 items
tests/test_backends.py ..... [ 4%]
tests/test_compile_target_uri.py .. [ 5%]
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
@-moz-document domain(plus.google.com) { | |
div[dir="rtl"], span[dir="rtl"].zj { | |
font-family: 'Jameel Noori Nastaleeq','Alvi Nastaleeq','Pak Nastaleeq','Nafees Web Naskh','Urdu Naskh Asiatype',Tahoma,'Lucida Grande',Verdana,Arial,Sans-Serif; | |
font-size: 130%; | |
} | |
} |
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
#!/usr/bin/env python3 | |
import sys | |
from random import randrange | |
class RandomLines(): | |
def __init__(self, fname): | |
self._fname = fname |
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 | |
LABEL maintainer="Sawood Alam <@ibnesayeed>" | |
RUN pip install beautifulsoup4 | |
RUN pip install requests | |
COPY main.py /app/ | |
WORKDIR /app | |
RUN chmod a+x main.py | |
ENTRYPOINT ["./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
// program | |
package main | |
import "os/signal" | |
import "os" | |
import "fmt" | |
import "syscall" | |
import "time" | |
$ ls
Dockerfile linkextractor.py
$ cat linkextractor.py
#!/usr/bin/env python
import sys
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
$ curl -i --silent -H "Accept-Language: ur" https://twitter.com/ | more | |
HTTP/1.1 200 OK | |
cache-control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0 | |
content-length: 130455 | |
content-type: text/html;charset=utf-8 | |
date: Tue, 20 Mar 2018 17:35:31 GMT | |
expires: Tue, 31 Mar 1981 05:00:00 GMT | |
last-modified: Tue, 20 Mar 2018 17:35:31 GMT | |
pragma: no-cache | |
server: tsa_b |
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
#!/usr/bin/env bash | |
# A script to download TimeMaps of a Twitter handle in various language variants. | |
# | |
# ./twitter-timemap-lang-downloader.sh <TwitterHandle> [<OutputDir>] | |
# | |
# Author: Sawood Alam <@ibnesayeed> | |
if [ $# -eq 0 ] | |
then |
NewerOlder