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 | |
# Read the data from the exported CSV file | |
df = pd.read_csv('exported_data.csv') | |
# Remove duplicates based on user_id, mail_id, and send_date | |
df_cleaned = df.drop_duplicates(subset=['user_id', 'mail_id', 'send_date']) | |
# Write the cleaned data to a new file | |
df_cleaned.to_csv('cleaned_data.csv', index=False) |
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 vobject | |
def vcf_to_csv(vcf_file, csv_file): | |
with open(vcf_file, 'r', encoding='utf-8') as file: | |
vcf_data = file.read() | |
# Parse the VCF data using vobject | |
vcf_parsed = vobject.readComponents(vcf_data) |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
<?php | |
/* | |
Joomla PHP CLI script to remove old form submissions in RSFormPro database tables | |
by Peter Martin, https://db8.nl (Twitter: @pe7er) | |
You can use RSFormPro in your Joomla website as form component to interact with your visitors. | |
It can be configured to send an email notification to the visitor and the site admin. | |
By default RSFormPro adds the submitted form data in the database. |
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
/*! European Union country VAT rates + tax zones for Hikashop (webshop for Joomla) | |
by Peter Martin | |
Company: http://www.db8.nl | |
Twitter: @pe7er | |
Currently, before January 1st 2015, VAT on e-services (like telecommunications, radio & television | |
broadcasting and electronic services) to consumers (and businesses without VAT number) within the EU, | |
is charged based on the location (EU country) of the seller. | |
Starting on January 1st 2015, the VAT on e-services must be calculated based on the end customer’s |