- add Retic repo
- yum install restic
add a Restic credential file to root
vim /root/.restic
| """ | |
| I'm really new to python and flask so this maybe terribly wrong but it works at least for me | |
| usage: | |
| python clitools.py --config {{your config}} command | |
| It also prompts just in case you forget. | |
| The ctx object from the click documentation along with the '@click.pass_context helps to push the app variable through | |
| all the functions. |
| import gzip | |
| import json | |
| import re | |
| import os | |
| import datetime | |
| import pprint | |
| import argparse | |
| from collections import OrderedDict | |
| class _RegEx: |
| # This will remove the manual work of copying the file names | |
| # You can run this in batches to processes it | |
| # pip install --user tika to download the tika library | |
| # the first run will download tika.jar | |
| from tika import parser | |
| filename="path_to_file" | |
| #parse the pdf |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "os" | |
| "database/sql" |
| // Function was taken from | |
| // https://joeybronner.fr/blog/google-apps-script-get-current-user-email-from-a-spreadsheet-add-on/ | |
| function getCurrentUserEmail() { | |
| var userEmail = Session.getActiveUser().getEmail(); | |
| if (userEmail === '' || !userEmail || userEmail === undefined) { | |
| userEmail = PropertiesService.getUserProperties().getProperty('userEmail'); | |
| if (!userEmail) { | |
| var protection = SpreadsheetApp.getActive().getRange('A1').protect(); | |
| protection.removeEditors(protection.getEditors()); | |
| var editors = protection.getEditors(); |
| (function(){ | |
| // Click on Apply for WFH button | |
| $('#lnkApplyODRequest').click() | |
| //Set the WFH type | |
| $('#ctl00_mainContent_ApplyOD_ddlOdtype').val(1) | |
| // Day type | |
| $('#ctl00_mainContent_ApplyOD_ddlDayType').val(1); |
| galera-4 for centos is not in any repo except this. | |
| https://yum.mariadb.org/10.5/centos7-amd64/rpms/ | |
| https://mariadb.com/kb/en/source-building-mariadb-on-centos/ | |
| Steps to build Mariadb RPMS | |
| cmake -DRPM=centos7 server/ | |
| make package -j4 |
| # script-name build_dir | |
| # | |
| dnf config-manager --set-enabled powertools | |
| dnf install https://mirror.rackspace.com/elrepo/elrepo/el8/x86_64/RPMS/elrepo-release-8.2-1.el8.elrepo.noarch.rpm | |
| dnf --enablerepo=elrepo-testing install btrfs-progs-devel | |
| dnf -y update | |
| dnf install -y btrfs-progs-devel\ | |
| conmon \ | |
| containernetworking-plugins \ | |
| containers-common crun \ |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "net/url" | |
| "os" |