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
| #!/bin/bash | |
| # Run with wget https://gist.github.com/baarkerlounger/60f9c87d9cb56db0e967be9baa2da823/raw/setup.sh && sudo bash setup.sh $(whoami); rm setup.sh | |
| # Update debian stable to debian testing | |
| sed -i -e 's/ \(stable\|bullseye\)/ bookworm/ig' /etc/apt/sources.list | |
| apt update && sudo sh -c "DEBIAN_FRONTEND=noninteractive apt -y full-upgrade" | |
| # Install apt packages | |
| apt install -y htop git vim ufw rbenv gnome-console curl postgresql postgresql-contrib \ |
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 pandas as pd | |
| import numpy | |
| import tfidf_matcher as tm | |
| mhclg_column_list = ["Tenancy start date", "Type of letting", "Who is the landlord", "Registration no", "LA CORE code", "Management group", "Scheme code", "Tenant code", "Starter/Introductory tenancy", "Type of tenancy", "Tenancy Duration", "Age of Person 1", "Age of Person 2", "Age of Person 3", "Age of Person 4", "Age of Person 5", "Age of Person 6", "Age of Person 7", "Age of Person 8", "Gender of Person 1", "Gender of Person 2", "Gender of Person 3", "Gender of Person 4", "Gender of Person 5", "Gender of Person 6", "Gender of Person 7", "Gender of Person 8", "Person 2 relationship to Person 1", "Person 3 relationship to Person 1", "Person 4 relationship to Person 1", "Person 5 relationship to Person 1", "Person 6 relationship to Person 1", "Person 7 relationship to Person 1", "Person 8 relationship to Person 1", "Economic Status of Person 1", "Economic Status of Person 2", "Economic Status of Person 3", "Economic Status of Person 4", "Economic S |
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 pandas as pd | |
| import numpy | |
| from fuzzywuzzy import process, fuzz | |
| mhclg_column_list = ["Tenancy start date", "Type of letting", "Who is the landlord", "Registration no", "LA CORE code", "Management group", "Scheme code", "Tenant code", "Starter/Introductory tenancy", "Type of tenancy", "Tenancy Duration", "Age of Person 1", "Age of Person 2", "Age of Person 3", "Age of Person 4", "Age of Person 5", "Age of Person 6", "Age of Person 7", "Age of Person 8", "Gender of Person 1", "Gender of Person 2", "Gender of Person 3", "Gender of Person 4", "Gender of Person 5", "Gender of Person 6", "Gender of Person 7", "Gender of Person 8", "Person 2 relationship to Person 1", "Person 3 relationship to Person 1", "Person 4 relationship to Person 1", "Person 5 relationship to Person 1", "Person 6 relationship to Person 1", "Person 7 relationship to Person 1", "Person 8 relationship to Person 1", "Economic Status of Person 1", "Economic Status of Person 2", "Economic Status of Person 3", "Economic Status of Person 4", " |
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
| #!/bin/sh | |
| ls Postman*.tar.gz > /dev/null 2>&1 | |
| if [ $? -eq 0 ]; then | |
| echo "Removing old Postman tarballs" | |
| rm -f $(ls Postman*.tar.gz) | |
| fi | |
| curlExists=$(command -v curl) |