Skip to content

Instantly share code, notes, and snippets.

View ssaluk's full-sized avatar

Sergiy Salyuk ssaluk

View GitHub Profile
@daltheman
daltheman / NSData+Compression.swift
Created June 18, 2015 04:32
Simple Swift NSData Extension that shows how to use Apple LZFSE Compression Algorithm
/*
NSData+Compression.swift
Created by Danilo Altheman on 17/06/15.
The MIT License (MIT)
Copyright © 2015 Quaddro - Danilo Altheman. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
@BretFisher
BretFisher / pcat-install.sh
Last active February 6, 2024 14:41
On macOS: Install pygmentize and alias pcat for shell code syntax highlighting
# first install pygmentize to the mac OS X or macOS system with the built-in python
sudo easy_install Pygments
# then add alias to your ~/.bash_profile or ~/.bashrc or ~/.zshrc etc.
alias pcat='pygmentize -f terminal256 -O style=native -g'