Skip to content

Instantly share code, notes, and snippets.

@jwarner112
jwarner112 / writeup.md
Last active September 16, 2021 04:56
Introduction to the ASDF Version Manager

The ASDF version manager: an introduction

Introduction

Have you ever had to manage more than one version of a tool at once? If you're a developer, you probably have. Some tools have this in mind with solutions to make it easier -- Python has [virtual environments][1c], as one example. For those that don't (and some that do), third-party tooling arises to fill the gap.

@jwarner112
jwarner112 / example.py
Last active July 3, 2021 06:23
Unicode Textbox Utility
import textboxutil
LOREM_IPSUM = """
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque porttitor porttitor nulla id cursus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Duis eu viverra enim, quis hendrerit neque. Curabitur pellentesque fringilla eros, sit amet varius ex pellentesque eu. Fusce cursus lacinia congue. Vivamus dignissim diam sed sagittis vestibulum. Curabitur a finibus lorem, et rhoncus arcu. Donec fringilla, justo non interdum mattis, lorem mauris egestas nulla, vel molestie quam mauris in turpis. Nullam rutrum sapien sit amet ipsum elementum commodo. Donec sed orci tellus. Sed id scelerisque odio. Vestibulum rhoncus nisi consequat finibus posuere. Quisque mollis porta magna feugiat consectetur. Donec sed feugiat nisl.
Phasellus commodo suscipit ante ac efficitur. Integer egestas vestibulum ornare. Curabitur luctus faucibus sodales. Aenean et nibh purus. Vestibulum tempor pulvinar imperdiet. Nullam egestas quam ac nisl hendrerit,
@jwarner112
jwarner112 / autogen+make--libplist@2.2.0
Created August 19, 2020 21:08
Attempt to build libplist @ 2.2.0 on Ubuntu 18.04
$ uname -a
Linux librem15 5.4.0-42-generic #46~18.04.1-Ubuntu SMP Fri Jul 10 07:21:24 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ ./autogen.sh
libtoolize: putting auxiliary files in '.'.
libtoolize: linking file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: linking file 'm4/libtool.m4'
libtoolize: linking file 'm4/ltoptions.m4'
libtoolize: linking file 'm4/ltsugar.m4'
libtoolize: linking file 'm4/ltversion.m4'
@jwarner112
jwarner112 / pry.md
Last active June 11, 2020 18:51 — forked from lfender6445/gist:9919357
Pry (Ruby REPL) Cheatsheet

Pry Cheat Sheet

Command Line

  • pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)
  • pry -r ./config/environment.rb - load your rails into a pry session

Debugger

  • help ls -- Display command options for pry command ls
  • ls -- Show all of the available methods that can be called by an object