Skip to content

Instantly share code, notes, and snippets.

View PeterPorzuczek's full-sized avatar
♾️
To infinity and beyond!

Piotr Porzuczek PeterPorzuczek

♾️
To infinity and beyond!
View GitHub Profile
from openai import OpenAI
client = OpenAI()
original_context = """The Song of Hiawatha is based on the legends and stories of
many North American Indian tribes, but especially those of the
Ojibway Indians of northern Michigan, Wisconsin, and Minnesota.
They were collected by Henry Rowe Schoolcraft, the reknowned
Schoolcraft married Jane, O-bah-bahm-wawa-ge-zhe-go-qua (The
fur trader, and O-shau-gus-coday-way-qua (The Woman of the Green
@jmcur
jmcur / snippet.html
Created June 10, 2020 16:30
medium.com/@juancurti.it
<head>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css" rel="stylesheet"/>
<style>
#main {
margin: 2rem;
}
.big {
font-size: 1.1rem;
}
@johanlef
johanlef / README.md
Last active September 6, 2024 10:03
Use CSS custom properties (--var) with bootstrap 4 (SCSS)

The file _functions-override.scss contains the custom functions to handle color conversions within sass and bootstrap.

Bootstrap does not like its sass variables set to css custom properties, e.g. var(--primary). If you use the code snippets below, you can do so, under some conditions.

In the most basic case, you should provide your color variables using the hsl format.

If you insert this using javascript, you can use the script apply-colors.jsx to let js handle the conversion from hex or rgb to hsl.

Reference the main.scss file to import the files in the correct order.

@Mau5Machine
Mau5Machine / docker-compose.yml
Last active July 17, 2025 20:13
Traefik Configuration and Setup
version: "3.3"
services:
################################################
#### Traefik Proxy Setup #####
###############################################
traefik:
image: traefik:v2.0
restart: always
@codebygina
codebygina / docker-compose.yml
Last active August 8, 2020 23:49
WordPress Development in Docker which actually works - outputs all WordPress (wp-content, wp-admin, wp-includes, wp-config.php etc) with debug enabled. Use it to create something nice!
version: '3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
@Quipyowert2
Quipyowert2 / FOSS Alternatives to Adobe's Premiere Pro.md
Created April 28, 2019 01:18
FOSS Alternatives to Adobe's Premiere Pro

Open Source Video Editors:

  1. Blender - I'm not sure if this one counts since it is more of a CAD program than a video editor.

  2. Avidemux:

Avidemux is a free video editor designed for simple cutting, filtering and encoding tasks. It supports many file types, including AVI, DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated using projects, job queue and powerful scripting.

  1. OpenShot:
@super3
super3 / readme.md
Last active July 21, 2020 11:03 — forked from jimmywarting/readme.md
Cors Proxies
Server SSL Metods Server country code Comments
[YaCDN][1] GET EU Unlimited size and unlimited requests (for now)
[crossorigin.me][2] GET US Require Origin header
2MB size limit
[cors-proxy.htmldriven][3] - CZ JSON response
don't work well with binary
[cors-proxy.taskcluster][4] POST US Only witelisted to taskcluster.net
Can send any header/method
[thingproxy][9] ANY US Limited to 100kb for both upload and download, max 10 req/sec
[whateverorigin][10] GET US Only supports JSONP
[cors.io][11] GET, HEAD US Only supports GET and HEAD request
[gobetween][12] GET US Only supports GET requests
@molcik
molcik / free-illustrator.md
Last active November 29, 2024 07:35
Illustrator never ending trial period

How Does It Work

All you have to do, to extend your trial period, is change number in TrialKey element in application.xml. This file is located in /Applications/Adobe Illustrator CC 2018/Support Files/AMT/AI/AMT. You can navigate there with this command:

cd /Applications/Adobe\ Illustrator\ */Support\ Files/AMT/AI/AMT

Then you have to open the file and edit it. You can use just nano editor in terminal.

@slardiere
slardiere / openssh.ps1
Last active February 7, 2022 22:31
Install OpenSSH on Windows
Add-Type -AssemblyName System.IO.Compression.FileSystem
function Unzip
{
param([string]$zipfile, [string]$outpath)
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath)
}
$url = 'https://github.com/PowerShell/Win32-OpenSSH/releases/latest/'
$request = [System.Net.WebRequest]::Create($url)
@dannote
dannote / final-cut-pro-trial-reset.swift
Last active October 24, 2025 07:34
Final Cut Pro X trial reset
#!/usr/bin/swift
// DISCLAIMER
// This script modifies an unencrypted file associated with the trial version of Final Cut Pro.
// Under the DMCA (17 U.S.C. § 1201), this modification does not qualify as circumvention of a technological
// protection measure (TPM), as it does not involve bypassing encryption, authentication, or similar protections.
// Distributing this code is therefore legal under the DMCA.
// This script is intended for educational and research purposes, such as exploring trial-related file structures,