kubectl create secret generic aws-secret --from-literal=AWS_ACCOUNT= --from-literal=AWS_ACCESS_KEY_ID= --from-literal=AWS_SECRET_ACCESS_KEY= --from-literal=AWS_DEFAULT_REGION= --from-literal=AWS_REGION=
| #!/bin/bash | |
| ######################################################################### | |
| # Copyright (C) 2019-2020 Akito <the@akito.ooo> # | |
| # # | |
| # This program is free software: you can redistribute it and/or modify # | |
| # it under the terms of the GNU General Public License as published by # | |
| # the Free Software Foundation, either version 3 of the License, or # | |
| # (at your option) any later version. # | |
| # # | |
| # This program is distributed in the hope that it will be useful, # |
| import cv2 | |
| import numpy as np | |
| def mse(imageA, imageB): | |
| err = np.sum((imageA.astype("float") - imageB.astype("float")) ** 2) | |
| err/=float(imageA.shape[0] * imageA.shape[1]) | |
| return err | |
| original_testfigure1 = cv2.imread("testfigure1.png") | |
| expected_testfigure1 = cv2.imread("testfigure2.png") |
| # sample content of replace_dictionary.csv | |
| #gooood, god | |
| #baaaad, bad | |
| #coool, cool | |
| # | |
| replace_dict = {} |
| #!/usr/bin/env python3 | |
| # Author: T Shrinivasan | |
| # Email : tshrinivasan@gmail.com | |
| # License : GNU GPL 3.0 | |
| # sudo apt install libimage-exiftool-perl imagemagick gwenview | |
| # /etc/ImageMagick-6/policy.xml |
| import sys | |
| import re | |
| import tamil | |
| infile = sys.argv[1] | |
| spechal_charecers = ["~","`","!","@","#","$","%","^","&","*","(",")","_","-","+","=","[","{","]","}",'\\',"|",";",":","\'",'\"',"<",">",".","?","/",',',"’","\’",'“','”'] | |
| numbers = [1,2,3,4,5,6,7,8,9,0] | |
| sandhi_chars = ['க்','ச்', 'த்', 'ப்'] |
| import os | |
| import sys | |
| import glob | |
| #import telegram_send | |
| all_pdf = glob.glob("*.pdf") | |
| all_pdf_count = len(all_pdf) |
| # program name : fix_records.py | |
| # author : tshrinivasan@gmail.com | |
| # version : 0.1 | |
| import sys | |
| import os | |
| import argparse | |
| parser = argparse.ArgumentParser(description='A program to find and replace bibliographical data') |
| import sys | |
| in_file = sys.argv[1] | |
| content = open(in_file).read() | |
| out = open("result.csv","a") | |
| con = content.split("வாக்காளர் பெயர்") |
| //var langCode ='ta'; -- TODO Make it language independent. | |
| function doGet() { | |
| return HtmlService.createTemplateFromFile('Index.html') | |
| .evaluate(); | |
| } | |
| function doSomething() { | |
| Logger.log('I was called!'); | |
| } |