Skip to content

Instantly share code, notes, and snippets.

View artem78's full-sized avatar

Artem artem78

  • Russia
View GitHub Profile
#!/bin/bash
nmap -iL supl-hosts.txt -p 7276,7275
@artem78
artem78 / EncryptedIni.lpr
Created September 12, 2024 11:08
Store encrypted values in INI file
program EncryptedIni;
{$mode objfpc}{$H+}
uses
Classes, SysUtils, IniFiles, BlowFish, base64;
type
{ TIniFileEx }
<?xml version="1.0"?>
<project name="My project" xmlns:if="ant:if" xmlns:unless="ant:unless">
<!-- Properties: -->
<!-- <property file="build.properties"/> -->
<property name="build_dir" location="build"/>
<!-- Targets: -->
<target name="clean">
<delete dir="${build_dir}"/>
@artem78
artem78 / backup_mysql_to_mega.py
Last active December 3, 2024 12:19
Python script for making MySQL db backups to MEGA.nz
#!/usr/bin/python3
#
# Python script for making MySQL db backups to MEGA.nz
#
# Features:
# - Can backup multiple databases (each to separate sub-folder)
# - Upload backups to Mega.nz (no backups stored local)
# - Detect changes in database with checksum and do not upload unchanged data twice
#