Skip to content

Instantly share code, notes, and snippets.

View ivanionut's full-sized avatar
🎯
Focusing

Ivan Ionut ivanionut

🎯
Focusing
View GitHub Profile
@ivanionut
ivanionut / humanizer.md
Created April 12, 2025 21:44 — forked from scragz/humanizer.md
humanizer

Writing Humanizer

Your task is to transform and humanize any piece of writing, ensuring it is clear, direct, and engaging. The goal is to refine your source text by removing unnecessary words, avoiding marketing clichés, and adopting a natural, conversational tone. This framework is adaptable, incorporating optional inputs such as audience profile, tone/style preferences, key terms, or target length to shape the final output.

Required Inputs

  1. Source Text or Message
    • The draft or piece of writing you want to refine.

Optional Inputs

  1. Audience Profile
@ivanionut
ivanionut / ColdFusion-Git-Webhook.cfm
Created December 5, 2022 21:02 — forked from mcmullengreg/ColdFusion-Git-Webhook.cfm
Webhoook integration for ColdFusion. Downloads the Zip after a push event and moves the contents to a folder determined based on the repository name. Used as a means of keeping testing environments updated whenever new commits are pushed to the master.
<!--- Webhook secrets -- yours, not mine. --->
<cfset secret = "">
<cftry>
<cfset _payload = "{}">
<cfset _payload = getHttpRequestData()>
<cfset jsonPayload = form.payload>
<cfset hash = RemoveChars(_payload.headers['X-Hub-Signature'], 1, 5)>
<cfset payload_hash = hmac(_payload.content, secret, 'HMACSHA1')>
@ivanionut
ivanionut / README.md
Created March 7, 2022 22:59 — forked from anthumchris/README.md
Clear Nginx Cache

Clearing Nginx's HTTP Cache

I recently implemented Nginx HTTP content caching on our WordPress web servers to improve page load speeds and eliminate redundant, unneeded server-side page rendering. Caching the pages was relatively straightforward, but clearing the cache required a custom workaround.

Nginx comes in two versions: free and “Nginx Plus” at $2,500/year. The free version of Nginx does not offer the needed cache-clearing features of Nginx Plus, and I wasn’t comfortable paying $20,000 for 8 instances without trying to build my own solution.

Our Nginx servers run as an HTTP proxy for multiple PHP/MySQL-backed WordPress sites. The goal was to cache the dynamic PHP HTML responses in Nginx and serve the HTML pages from Nginx to avoid redundant, CPU-intensive PHP renders.

Site Cache Configuration

The example below shows how PHP response caching is configured for a site (other nginx configuration details are excluded for brevity). A cache named cachedemo-prod is defined to store cached HTML f

@ivanionut
ivanionut / Bing-Image-Scraper
Created January 5, 2022 19:29 — forked from stephenhouser/Bing-Image-Scraper
Bing-Image-Scraper
Bing image scraper example using Python to query and scrape Microsoft Bing image search.
<cfscript>
clienti = [
"https://mediamarket-batch.tesi-tms.net/core/framework/login.cfm",
"http://ftp-bottegaveneta.tesi-tms.net:22/core/framework/login.cfm",
"http://bulgari-ftp.tesisquare-platform.net:22/core/framework/login.cfm",
"http://ftp-carrefourfr.tesi-tms.net:22/core/framework/login.cfm",
"http://sftp-coesia.tesi-scm.net:22/core/framework/login.cfm",
"http://ftp.lavazza.tesisquare.com:22/core/framework/login.cfm",
"http://mediamarket-ftp.tesi-tms.net:22/core/framework/login.cfm",
"http://michelin-ftp.tesi-grc.net:22/core/framework/login.cfm",
@ivanionut
ivanionut / test
Created February 9, 2021 16:16 — forked from rGaillard/test
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
<item>
<g:id>demo_14</g:id>
<g:multipack>0</g:multipack>
<g:brand>Studio Design</g:brand>
<g:gtin></g:gtin>
<g:sku>demo_14</g:sku>
<g:item_group_id>19</g:item_group_id>
#!/bin/bash
echo ""
echo "---------------------------------"
echo "| AUTO COMPILE MOZJPEG |"
echo "---------------------------------"
echo ""
echo "Apt update"
sudo apt update && apt upgrade && apt remove $(deborphan) && apt autoremove && apt clean
echo "Update"
sudo apt update
@ivanionut
ivanionut / instructions.sh
Created December 30, 2020 12:02 — forked from rufoa/patch.sh
sublime merge 2 build 2039 linux
sudo -i
cd /opt/sublime_merge
sha256sum sublime_merge
# should be 3f8fac349daeb45aa86b52e87360ce8d01c5c0f68cb85385dffef05abc0ad410 (rpm)
# or d8b72a9d5798a08c013d543a8f8c9a79aacb3ac1578982574890ba46b01c75f3 (other linux)
cp sublime_merge sublime_merge.bak
# swap public key
@ivanionut
ivanionut / install-openjdk-8.sh
Created December 27, 2020 08:29 — forked from phillipsj/install-openjdk-8.sh
Quick little installation script for installing AdoptOpenJDK on Ubuntu 16.04.
wget -q https://github.com/AdoptOpenJDK/openjdk8-releases/releases/download/jdk8u172-b11/OpenJDK8_x64_Linux_jdk8u172-b11.tar.gz
tar -xf OpenJDK8_x64_Linux_jdk8u172-b11.tar.gz
sudo mkdir /usr/lib/jvm && sudo mv jdk8u172-b11 /usr/lib/jvm/jdk8u172-b11
export JAVA_HOME=/usr/lib/jvm/jdk8u172-b11
export PATH=/usr/lib/jvm/jdk8u172-b11/bin
java -version