Skip to content

Instantly share code, notes, and snippets.

View cprima's full-sized avatar

Christian Prior-Mamulyan cprima

  • Germany
View GitHub Profile
@cprima
cprima / README.md
Last active March 19, 2025 00:40
Bypass X-Frame-Options: PHP Proxy for iframe Embedding

PHP Proxy Script for Iframe Embedding

Description

This PHP script is a server-side proxy designed to bypass restrictions that prevent embedding external websites within iframes. Many websites use security headers (e.g., X-Frame-Options or Content-Security-Policy) to block their content from being displayed in iframes, leading to errors like "Content refused to connect." when trying to embed them directly. This proxy script retrieves the content server-side, modifies it, and delivers it to the iframe, effectively circumventing these restrictions.

Use Case

This script is particularly useful for integrating external web pages into Reveal.js presentations. Reveal.js allows the use of iframes to display content during slideshows. However, embedding some web pages directly often fails due to security restrictions. By using this proxy script, users can include external content seamlessly in their presentations without encountering connection errors.

Why is This Needed

@cprima
cprima / README.md
Last active June 22, 2024 06:54
travel route weather display

Travel Route Weather Display

This application retrieves weather forecasts and current weather data for a list of cities based on their city IDs and visit dates. The data is fetched from the OpenWeatherMap API, cached, processed to find the forecast for noon on specific visit dates, and then displayed in a user-friendly HTML format.

Features

  • Fetches weather forecast and current weather data from the OpenWeatherMap API.
  • Caches the fetched data to reduce API calls and improve performance.
  • Retrieves and processes the forecast for noon on specific visit dates.
@cprima
cprima / README.md
Created June 9, 2024 17:32
image crop from center

Image Processing Script

This Bash script processes PNG images in the current directory. It renames images that are already 1600x900 with a _1600x900.png suffix. For images that are larger, it crops them to 1600x900 from the center and saves them with the same suffix.

Requirements

Installation

@cprima
cprima / README.md
Last active June 8, 2024 08:32
UiPath Studio expression: Recursively Join Dictionary(String, Object)

watch in action:

IMAGE ALT TEXT

@cprima
cprima / README.md
Last active June 8, 2024 05:49
autotype_from_clipboard.py

AutoType from Clipboard

This script automatically types text from the clipboard into a text area, simulating human-like typing behavior.

Usage

  1. Install Dependencies:
    pip install -r requirements.txt
@cprima
cprima / README.md
Last active April 19, 2024 11:19
PowerShell Scripts for CI/CD tasks in UiPath RPA projects

UiPath RPA project automated projectVersion increments based on last Git commit message

Overview

Update-ProjectVersion.ps1 is a PowerShell script designed to automate the updating of the projectVersion in a UiPath RPA project's project.json file based on the latest Git commit message. This script utilizes Semantic Versioning (SemVer) rules to increment version numbers appropriately, handling major, minor, and patch updates along with optional pre-release and build metadata.

Features

  • Automatic Version Increment: Based on the type of changes logged in Git commit messages, the script decides whether to increment the major, minor, or patch version.
  • Full SemVer Support: Supports full Semantic Versioning, including pre-release versions and build metadata.
  • Customizable Path: Users can specify the directory path where the project.json file is located, defaulting to the current working directory if not specified.
@cprima
cprima / README.md
Last active February 8, 2024 17:10
Project Basturma Pipelines: RPA UiPath Project Read-ProjectJson and Increment-SemVer

Project Basturma Pipelines

Welcome to the Project Basturma repository! This project is dedicated to providing robust CI/CD pipeline scripts and tools for UiPath RPA (Robotic Process Automation) development. The goal is to streamline the automation deployment process, ensuring efficient, consistent, and error-free delivery of RPA solutions.

@see github.com/rpapub/project-basturma-pipelines

Author

This project is created and maintained by Christian Prior-Mamulyan [email protected]

digraph G {
label=<<font point-size="32">sirpoc84 wrote:<br/>&nbsp;</font>>;
labelloc=top;
rankdir=TB;
node [shape=box];
ranksep=1.0;
@cprima
cprima / README.md
Last active May 17, 2025 04:30
Google MyActivity YouTube Comment Delete Script 💬❌

CommentCleanser for YouTube 💬❌

Description

Looking to take control of your digital history? CommentCleanser for YouTube lets you efficiently delete old YouTube comments from Google's MyActivity. Prioritize the removal of older comments, ensuring a leaner digital footprint and a conscious cleanup of your online history.

The script has been designed for users who have a significant number of YouTube comments and wish to delete them in bulk from Google's MyActivity page. By leveraging JavaScript, it provides a means to automate the process of deleting individual comments, offering the user control over how many comments to delete at once.

@cprima
cprima / README.md
Last active August 25, 2023 05:43
asciinema truncator 🎬✂️ A Python script to truncate recording sessions of `asciinema`. This tool is perfect for users who want to remove specific time intervals from their recorded sessions, ensuring the end result is clean and only showcases what's necessary.

asciinema truncator 🎬✂️

A Python script to truncate recording sessions of asciinema. This tool is perfect for users who want to remove specific time intervals from their recorded sessions, ensuring the end result is clean and only showcases what's necessary.

Features

  • Removes specified time intervals from an asciinema recording.
  • asciinema records in NDJSON format