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
| # RUN git config --global url."https://$GITHUB_TOKEN@github.com/".insteadOf "https://github.com/" |
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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import argparse | |
| import yaml | |
| def convert_yaml_to_docker_env( | |
| yaml_path: str, env_path: str = "/tmp/tmp.env", uppercase_keys: bool = False | |
| ): | |
| """Read & convert a YAML file into a docker environment variable file. This |
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
| # qutemacs - a simple, preconfigured Emacs binding set for qutebrowser | |
| # | |
| # The aim of this binding set is not to provide bindings for absolutely | |
| # everything, but to provide a stable launching point for people to make their | |
| # own bindings. | |
| # | |
| # Installation: | |
| # | |
| # 1. Copy this file or add this repo as a submodule to your dotfiles. | |
| # 2. Add this line to your config.py, and point the path to this file: |
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
| import boto3 | |
| import time | |
| import requests | |
| from bs4 import BeautifulSoup | |
| colors = ["Savannah"] | |
| URL = "https://shop.lululemon.com/p/womens-outerwear/Scuba-Oversized-12-Zip-Hoodie/?sz=XS%2FS" | |
| sns_arn = "" | |
| while True: |
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
| # coding=utf-8 | |
| # | |
| # Minimal BERT regression model | |
| # | |
| # Code borrowed from huggingface text-classification example (original licence follows): | |
| # https://github.com/huggingface/transformers/blob/master/examples/text-classification/run_glue.py | |
| # | |
| # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. | |
| # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. | |
| # |
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 bs4 import BeautifulSoup | |
| from pprint import pprint | |
| import urllib.request | |
| site = "https://en.wikipedia.org/wiki/Ryder" | |
| hdr = {"User-Agent": "Mozilla/5.0"} | |
| req = urllib.request.Request(site, headers=hdr) | |
| page = urllib.request.urlopen(req) | |
| soup = BeautifulSoup(page.read()) |
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
| import pytesseract | |
| import argparse | |
| import os | |
| from pdf2image import convert_from_path | |
| from PyPDF2 import PdfFileMerger | |
| from progressbar import ProgressBar | |
| def create_searchable_pdf(images: list, output_path: str): |
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
| sudo mount -t cifs //10.0.0.1/Data ~/airport -o password=XXX,sec=ntlm,username=YYY,vers=1.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
| #!/usr/bin/python3 | |
| from __future__ import print_function | |
| import pickle | |
| import codecs | |
| import os.path | |
| import datetime | |
| from rofi import Rofi | |
| from typing import Dict |