Skip to content

Instantly share code, notes, and snippets.

View benmezger's full-sized avatar
:octocat:
hacking

Ben Mezger benmezger

:octocat:
hacking
View GitHub Profile
go: downloading github.com/stretchr/testify v1.10.0
go: downloading github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2
go: downloading github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
./build/wakatime-cli-linux-amd64 --log-file /tmp/TestSendHeartbeats1380917822/002/698413309 --api-url http://127.0.0.1:44795 --key 00000000-0000-4000-8000-000000000000 --config /tmp/TestSendHeartbeats1380917822/001/wakatime.cfg3140078481 --internal-config /tmp/TestSendHeartbeats1380917822/001/wakatime-internal.cfg2629372460 --entity testdata/main.go --cursorpos 12 --offline-queue-file /tmp/TestSendHeartbeats1380917822/001/4071657990 --offline-queue-file-legacy /tmp/TestSendHeartbeats1380917822/001/1568464852 --ai-line-changes 123 --human-line-changes 456 --lineno 42 --lines-in-file 100 --time 1585598059 --hide-branch-names .* --project wakatime-cli --project-folder /build/wakatime/src/wakatime-cli-1.131.0 --write --verbose
logs: {"level":"debug","now":"2025-08-25T12:36:59Z","caller":"cmd/run.go:138

$2a$11$gPkdE5FvuGbANwGCajAcZem3IvLCCAN4h/gbZKhUQn9XrCCYzb7ma

From 0084195e500acb1e483fb5a6e7fea40e75a3ef3a Mon Sep 17 00:00:00 2001
From: Ben Mezger <[email protected]>
Date: Sun, 27 Mar 2022 03:03:10 -0300
Subject: [PATCH] hibernate: finally get hibernate to work in xps
---
default/grub | 2 +-
mkinitcpio.conf | 2 +-
systemd/sleep.conf | 2 ++
3 files changed, 4 insertions(+), 2 deletions(-)
@benmezger
benmezger / riscv.md
Created February 18, 2022 23:05 — forked from cb372/riscv.md
Writing an OS in Rust to run on RISC-V

(This is a translation of the original article in Japanese by moratorium08.)

(UPDATE (22/3/2019): Added some corrections provided by the original author.)

Writing your own OS to run on a handmade CPU is a pretty ambitious project, but I've managed to get it working pretty well so I'm going to write some notes about how I did it.

[
{
"id":5,
"type":"M",
"question":"Multiple choice question",
"scale_start":"None",
"scale_start_text":"None",
"scale_end":"None",
"scale_end_text":"None",
"check_choices":[
@benmezger
benmezger / config.el
Created July 11, 2020 15:46
Emacs doom - problematic org-projectile
(use-package! org-projectile
:config
(map! :leader
(:prefix "n"
:desc "projectile-project-complete-read" "p" #'org-projectile-project-todo-completing-read))
(defun org-projectile-get-project-todo-file (project-path)
(message "Called")
(message project-path)
(concat org-directory "/projects/" (file-name-nondirectory (directory-file-name project-path)) ".org")))
options {
IGNORE_CASE = true;
JAVA_UNICODE_ESCAPE = true;
STATIC = false;
DEBUG_PARSER = true;
LOOKAHEAD = 1;
DEBUG_LOOKAHEAD = true;
}
PARSER_BEGIN(LanguageParser)
/* LanguageParser.java */
/* Generated By:JavaCC: Do not edit this line. LanguageParser.java */
package compiler.parser;
import javax.swing.text.html.parser.Parser;
import java.util.List;
import java.util.ArrayList;
import java.io.InputStream;
import java.io.ByteArrayInputStream;
import java.lang.StringBuilder;
module polar-sapiens
go 1.14
require (
github.com/go-pg/pg/v10 v10.0.0-beta.2
github.com/go-playground/validator/v10 v10.3.0
github.com/golang-migrate/migrate/v4 v4.11.0
github.com/google/uuid v1.1.1
github.com/julienschmidt/httprouter v1.3.0
@benmezger
benmezger / crt0.S
Last active January 20, 2020 01:06
/* Move section to .init that is allocatable and executable. */
.section .init, "ax"
.align 2
.global _start
_start:
.cfi_startproc
.cfi_undefined ra
# _setup_mtrap if interrupt is not enabled