Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View palimondo's full-sized avatar

Pavol Vaskovic palimondo

View GitHub Profile
palimondo / brew upgrade nginx --devel (nginx-1.1.18) failed
Created April 6, 2012 21:38
Failed upgrade to --devel nginx-1.1.18
==> Upgrading nginx
==> Downloading
Already downloaded: /Library/Caches/Homebrew/nginx-1.1.18.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/nginx-1.1.18.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file auto/lib/pcre/conf
Hunk #1 succeeded at 162 with fuzz 2 (offset 7 lines).
patching file conf/nginx.conf
==> ./configure --prefix=/usr/local/Cellar/nginx/1.1.18 --with-http_ssl_module --with-pcre --conf-path=/usr/local/etc/nginx/nginx.conf --pid-path=/usr/local/var/run/ --lock-path=/usr/local/var/nginx/nginx.lock
palimondo / gist:5998280
Last active December 19, 2015 18:19
Concise Auto Layout macros
#define Left NSLayoutAttributeLeft
#define Right NSLayoutAttributeRight
#define Top NSLayoutAttributeTop
#define Bottom NSLayoutAttributeBottom
#define Leading NSLayoutAttributeLeading
#define Trailing NSLayoutAttributeTrailing
#define Width NSLayoutAttributeWidth
#define Height NSLayoutAttributeHeight
#define CenterX NSLayoutAttributeCenterX
#define CenterY NSLayoutAttributeCenterY
palimondo / gist:ffec7c42dbc97261d9ca9fdecc8a0614
Created March 14, 2017 22:39
Additions to dump the memory layout of indirect enums.
enum List<Element> {
case End
indirect case Node(Element, List<Element>)
struct ManyListEnumHolder<Element> {
var a: List<Element>
var b: List<Element>
var c: List<Element>
var d: List<Element>
var e: List<Element>
palimondo / main.swift
Created April 27, 2018 13:31
// main.swift
// FuncVsImperative
// Created by Pavol Vaskovic on 17.12.2014.
// Copyright (c) 2014 Pavol Vaskovic. All rights reserved.
import Cocoa
palimondo / check.log
Last active August 21, 2018 17:11
Benchmark_Driver check --verbose -f [A-Z].* > check.log
DEBUG Checking tests: Ackermann, AngryPhonebook, AnyHashableWithAClass, Array2D, ArrayAppend, ArrayAppendArrayOfInt, ArrayAppendAscii, ArrayAppendAsciiSubstring, ArrayAppendFromGeneric, ArrayAppendGenericStructs, ArrayAppendLatin1, ArrayAppendLatin1Substring, ArrayAppendLazyMap, ArrayAppendOptionals, ArrayAppendRepeatCol, ArrayAppendReserved, ArrayAppendSequence, ArrayAppendStrings, ArrayAppendToFromGeneric, ArrayAppendToGeneric, ArrayAppendUTF16, ArrayAppendUTF16Substring, ArrayInClass, ArrayLiteral, ArrayOfGenericPOD2, ArrayOfGenericRef, ArrayOfPOD, ArrayOfRef, ArrayPlusEqualArrayOfInt, ArrayPlusEqualFiveElementCollection, ArrayPlusEqualSingleElementCollection, ArrayPlusEqualThreeElements, ArraySetElement, ArraySubscript, ArrayValueProp, ArrayValueProp2, ArrayValueProp3, ArrayValueProp4, BinaryFloatingPointPropertiesBinade, BinaryFloatingPointPropertiesNextUp, BinaryFloatingPointPropertiesUlp, BitCount, ByteSwap, COWArrayGuaranteedParameterOverhead, COWTree, CSVParsing2, CSVParsingAlt2, CSVParsingAltIndices
palimondo / UniversalDeclaration.swift
Created December 13, 2018 23:52
String Benchmarking Corpus UDHR
/// Text Corpus in various scripts and languages.
/// Uses the Article 1 of Universal Declaration of Human Rights.
/// Individual entries are documented in format:
/// Language[, Variant] - Script
/// Statistics on language use are from Ethnologue (2018), as cited on
/// * T - Estimated Total Speakers (not reliable)
/// * L1 - First Language Speakers
palimondo / ChatGPT 4
Last active January 5, 2024 12:46
ChatGPT can analyze the secret message from the GEMINI demo with a few hints from the user (

ChatGPT4 Decoding the secret message from GEMINI demo

Below is the transcript of my conversation with ChatGPT4 (4.5 Turbo). I had to manually copy the responses into this gist, because Share lint to Chat gave me error: "Sharing conversations with images is not yet supported".

I have copied the image with secret message from Google's write-up How it’s Made: Interacting with Gemini through multimodal prompting.


Uploaded image This is a secret message. What does it say?