Skip to content

Instantly share code, notes, and snippets.

@the21st
the21st / gist:2ce87fb574ef1f4115a69b204dc3fa65
Created February 6, 2024 11:59
Snowflake memory leak logs
2024-02-06 11:55:49,304 - MainThread ssl_wrap_socket.py:43 - inject_into_urllib3() - DEBUG - Injecting ssl_wrap_socket_with_ocsp
2024-02-06 11:55:49,305 - MainThread auth.py:90 - <module>() - DEBUG - cache directory: /root/.cache/snowflake
2024-02-06 11:55:49,442 - MainThread connection.py:274 - __init__() - INFO - Snowflake Connector for Python Version: 2.8.0, Python Version: 3.9.17, Platform: Linux-5.10.199-190.747.amzn2.x86_64-x86_64-with-glibc2.28
2024-02-06 11:55:49,443 - MainThread connection.py:519 - connect() - DEBUG - connect
2024-02-06 11:55:49,444 - MainThread connection.py:809 - __config() - DEBUG - __config
2024-02-06 11:55:49,444 - MainThread connection.py:933 - __config() - INFO - This connection is in OCSP Fail Open Mode. TLS Certificates would be checked for validity and revocation status. Any other Certificate Revocation related exceptions or OCSP Responder failures would be disregarded in favor of connectivity.
2024-02-06 11:55:49,444 - MainThread connection.py:951 - __config() - INFO - Set

Keybase proof

I hereby claim:

  • I am the21st on github.
  • I am the21st (https://keybase.io/the21st) on keybase.
  • I have a public key ASCY7UJXScQxlcLCjWfj0bzeNSc2MLwv1ncc0C6jOJYeHQo

To claim this, I am signing this object:

@the21st
the21st / cmyk.scala
Last active June 28, 2016 11:46
failing twelvemonkeys cmyk image load
import java.awt.color.ColorSpace
import java.io.File
import javax.imageio.stream.FileImageInputStream
import javax.imageio.{ImageIO, ImageReadParam, ImageTypeSpecifier}
import scala.collection.JavaConverters._
val file = new File("cmyk.jpg")
val iis = new FileImageInputStream(file)
val jpegReaders = ImageIO.getImageReaders(iis).asScala.toVector
lazy val oddNumbers: Stream[Int] = 1 #:: oddNumbers.map(_ + 2)
@the21st
the21st / EnglishPluralizationService.cs
Created February 12, 2014 09:44
.NET pluralize decompiled
private string InternalPluralize(string word)
{
if (this._userDictionary.ExistsInFirst(word))
return this._userDictionary.GetSecondValue(word);
if (this.IsNoOpWord(word))
return word;
string prefixWord;
string suffixWord = this.GetSuffixWord(word, out prefixWord);
if (this.IsNoOpWord(suffixWord) || this.IsUninflective(suffixWord) || (this._knownPluralWords.Contains(suffixWord.ToLowerInvariant()) || this.IsPlural(suffixWord)) || this._irregularPluralsPluralizationService.ExistsInFirst(suffixWord))
return prefixWord + suffixWord;