Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View skalee's full-sized avatar

Sebastian Skałacki skalee

View GitHub Profile
@skalee
skalee / out.log
Last active April 11, 2020 09:11
Tester for broken EXIF autorotate in Jimp
------------
testing: Landscape_1.jpg
orientation: 1
width: 600
height: 450
non-0 bytes: yes
sleeping... 500ms
orientation: 1
width: 600
height: 450
@skalee
skalee / ASCIIDOC.adoc
Last active April 14, 2019 16:04
YARD render code listings incorrectly

In AsciiDoc…​

Ruby snippet (language specified)

two = 1 + 1
eleven = "1" + "1"
raise if Failure.problem
@skalee
skalee / Wrong.adoc
Last active April 9, 2019 22:19
Asciidoctor's "warnings about indexing" bug

Probably a bug

About this list

  1. This list has many items, which are split across several sections.

  2. List items in document include index number. That is, they are formatted like:

    1. This list has many items, which are split across several sections.
FROM ubuntu:xenial
RUN apt-get update
# If you want custom PPAs, you need following.
RUN apt-get install -y software-properties-common
# Git is obligatory for obvious reasons.
# bzip2 provides bzip2
# cURL is necessary to download RVM.
@skalee
skalee / README.md
Last active July 30, 2018 01:54
SSC likes counter (GreaseMonkey)

Public Domain.

Preview:

Preview

git clone git@github.com:riboseinc/rnp.git
./build_macos.sh
make install
@skalee
skalee / gist:f724b3c69657aa0b836a9208b2505af1
Last active April 16, 2018 12:12
Mail transport encoding is difficult to set - Pry session
[5] pry(main)> Mail::VERSION.version
=> "2.7.0"
[6] pry(main)> part = Mail::Part.new
=> #<Mail::Part:70253998469580, Multipart: false, Headers: <Content-Type: text/plain>>
[7] pry(main)> part.body = "Whatever"
=> "Whatever"
[8] pry(main)> puts part.encoded
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
@skalee
skalee / spaces.apib
Created November 13, 2017 12:55
How fixture resolving in Ribose API docs could look like
## Group Space
### Spaces [/spaces]
#### Index [GET]
+ Request (application/json)
+ Response 200 (application/json)
+ Attributes (object)
Checking apiary.apib… FAIL
warning code 5 in line 195 - ignorning unrecognized block:
[comment]: <> (REFERENCE section)
warning code 6 in line 2667 - no value(s) specified:
`body`: (string) - Body of invitation message to the invitees
warning code 6 in line 2705 - no value(s) specified:
`s`: (string) - pagination synchronization string
warning code 6 in line 2800 - no value(s) specified:
`s`: (string) - pagination synchronization string
warning code 6 in line 2843 - no value(s) specified:
URI stdlib Addressable

''

"#<URI::Generic >"

"#<Addressable::URI:0x3fee8408a4f0 URI:>"