Skip to content

Instantly share code, notes, and snippets.

@dsisnero
dsisnero / abi.cr
Created March 5, 2026 18:32 — forked from ysbaddaden/abi.cr
Parse LLVMDataLayout string + alignof, sizeof & offsetof ints, floats & aggregates + ABI for Crystal::Type(s)
require "./data_layout"
# I must require the WHOLE COMPILER just to load crystal/types, and then it
# takes as long as compiling the compiler to compile just this file and to do
# nothing.
require "compiler/requires"
class Crystal::ABI
@nil_type : DataLayout::Aggregate?
@proc_type : DataLayout::Aggregate?
@dsisnero
dsisnero / development.log
Last active January 16, 2024 20:08
development.log
{"level":"info","msg":"language: en-US","time":"2024-01-16T12:23:19-07:00"}
{"command":"git --version","level":"debug","msg":"RunCommand","time":"2024-01-16T12:23:19-07:00"}
{"level":"info","msg":"git --version (279.4195ms)","time":"2024-01-16T12:23:19-07:00"}
{"command":"git rev-parse --git-dir","level":"debug","msg":"RunCommand","time":"2024-01-16T12:23:19-07:00"}
{"level":"info","msg":"git rev-parse --git-dir (268.7094ms)","time":"2024-01-16T12:23:20-07:00"}
{"command":"git rev-parse --is-bare-repository","level":"debug","msg":"RunCommand","time":"2024-01-16T12:23:20-07:00"}
{"level":"info","msg":"git rev-parse --is-bare-repository (263.753ms)","time":"2024-01-16T12:23:20-07:00"}
{"level":"info","msg":"starting main loop","time":"2024-01-16T12:23:20-07:00"}
{"level":"info","msg":"Updating is currently not supported for windows until we can fix permission issues","time":"2024-01-16T12:23:20-07:00"}
{"command":"git rev-parse --is-bare-repository","level":"debug","msg":"RunCommand","time":"2024-01-16T12:23:20
2024/01/16 12:58:19 An error occurred! Please create an issue at: https://github.com/jesseduffield/lazygit/issues
*errors.errorString The system cannot find the path specified.
E:/windows_home/.cache/go/mod/github.com/jesseduffield/lazygit@v0.40.2/pkg/commands/oscommands/cmd_obj_runner.go:200 (0xfdaa14)
sanitisedCommandOutput: return outputString, errors.New(outputString)
E:/windows_home/.cache/go/mod/github.com/jesseduffield/lazygit@v0.40.2/pkg/commands/oscommands/cmd_obj_runner.go:107 (0xfd9a9c)
(*cmdObjRunner).RunWithOutputAux: output, err := sanitisedCommandOutput(cmdObj.GetCmd().CombinedOutput())
E:/windows_home/.cache/go/mod/github.com/jesseduffield/lazygit@v0.40.2/pkg/commands/oscommands/cmd_obj_runner.go:45 (0xfd9176)
(*cmdObjRunner).Run: _, err := self.RunWithOutputAux(cmdObj)
@dsisnero
dsisnero / request_helpers.rb
Created October 12, 2023 11:37 — forked from dogweather/request_helpers.rb
Use CSS Selectors in RSpec Request Specs
def css(selector)
html.css(selector).text
end
def html
Nokogiri::HTML(response.body)
end
@dsisnero
dsisnero / Makefile
Created May 24, 2023 20:27 — forked from straight-shoota/Makefile
Makefile for Crystal + Shards
-include Makefile.local # for optional local options
DOC_SOURCE ::= src/**
BUILD_TARGET ::= bin/app
# The shards command to use
SHARDS ?= shards
# The crystal command to use
CRYSTAL ?= crystal
��
@dsisnero
dsisnero / neovim_eval_ruby.rb
Created November 18, 2022 00:01 — forked from mctaylorpants/neovim_eval_ruby.rb
EvalRuby plugin for Neovim
# EvalRuby: Run Ruby without leaving Neovim
#
# Usage:
# - While on a line of Ruby, or in Visual mode
# with multiple lines selected, type :EvalRuby.
#
# Installation:
# 1. Install neovim-ruby: https://github.com/neovim/neovim-ruby
#
# 2. Put this file in your plugins directory
@dsisnero
dsisnero / hawthjit.rb
Created September 15, 2022 04:23 — forked from jhawthorn/hawthjit.rb
A "MJIT Custom Compiler" JIT in ~100 lines of Ruby
# $ ruby -v
# ruby 3.2.0dev (2022-09-11T14:08:14Z master 684353fc03) [x86_64-linux]
# $ ruby --mjit=pause --mjit-wait --mjit-min-calls=5 hawthjit.rb
# 246
# 246
# 246
# 246
# attempting to compile block in <main>
# can't compile putself
# attempting to compile double
@dsisnero
dsisnero / .travis.yml
Created September 7, 2022 20:27 — forked from LukeMathWalker/.travis.yml
Travis CI - Rust setup
language: rust
cache: cargo
rust:
- stable
before_cache: |
cargo install cargo-tarpaulin
before_script:
- rustup component add rustfmt
- rustup component add clippy
- cargo install cargo-audit
@dsisnero
dsisnero / audit-on-push.yml
Created September 7, 2022 20:27 — forked from LukeMathWalker/audit.yml
GitHub Actions - Rust setup
name: Security audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
runs-on: ubuntu-latest
steps: