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 | |
GITLAB_TOKEN=<gitlab token> | |
function get_repos(){ | |
page=$1 | |
repos=($(curl --header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" "https://gitlab.com/api/v4/projects/?owned=true&per_page=100&page=${page}" | jq -r '.[].ssh_url_to_repo')) | |
echo "${repos[@]}" | |
} |
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 | |
# Author: Ashok Kumar Pant | |
# Repo and script file structure | |
# ================================ | |
# proto_gen_py_and_install.sh | |
# corona_protos/ | |
# corona_py_gen/ | |
# -->coronagen/ | |
# ---->pb/ |
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
""" | |
-- Ashok Kumar Pant ([email protected]) | |
-- Treeleaf Technologies Pvt. Ltd. | |
-- Date: 1/18/20 | |
""" | |
import argparse | |
import os | |
from random import random | |
from traceback import print_exc |
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/python | |
import argparse | |
import os | |
import numpy as np | |
from icrawler.builtin import GoogleImageCrawler | |
def get_files(directory, extensions=None, shuffle=False): |
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
अझै | |
अधिक | |
अन्य | |
अन्यत्र | |
अन्यथा | |
अब | |
अरु | |
अरुलाई | |
अर्को | |
अर्थात |
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 | |
# install CUDA Toolkit v9.0 | |
# instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb) | |
CUDA_REPO_PKG="cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64-deb" | |
wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/${CUDA_REPO_PKG} | |
sudo dpkg -i ${CUDA_REPO_PKG} | |
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub | |
sudo apt-get update | |
sudo apt-get -y install cuda-9-0 |