Skip to content

Instantly share code, notes, and snippets.

View LawrenceJGD's full-sized avatar

Lawrence González LawrenceJGD

  • Venezuela
  • 13:37 (UTC -04:00)
View GitHub Profile
@LawrenceJGD
LawrenceJGD / current-browser.desktop
Last active December 27, 2025 09:26
A script for opening links in the currently open browser instead of the default one
[Desktop Entry]
Version=1.1
Type=Application
Name=Current Browser
Icon=application-x-executable
Exec=$HOME/.local/bin/current-browser
Actions=
Categories=Network;WebBrowser;
MimeType=application/json;application/pdf;application/rdf+xml;application/rss+xml;application/x-xpinstall;application/xhtml+xml;application/xml;audio/flac;audio/ogg;audio/webm;image/avif;image/gif;image/jpeg;image/png;image/svg+xml;image/webp;text/html;text/xml;video/ogg;video/webm;x-scheme-handler/chrome;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/mailto;
Keywords=Internet;WWW;Browser;Web;Explorer;
@LawrenceJGD
LawrenceJGD / json_to_sql.py
Created December 25, 2021 23:07
Convierte los tipos de datos de arreglos u objetos de JSON en una tabla de SQLite.
#!/usr/bin/python3
"""Script para convertir estructuras de JSON en tablas de SQLite."""
from __future__ import annotations
import argparse
import json
import os.path
import sys
@LawrenceJGD
LawrenceJGD / paste.awk
Created November 10, 2021 06:56
Simulate paste behavior in AWK
#!/usr/bin/awk -f
# Usage: paste.awk FILES ...
#
# FILES: path to the files that will be *pasted*
# Closes all the open files
function close_files( file) {
for (file = 1; file < ARGC; file++) {
close(ARGV[file])
@LawrenceJGD
LawrenceJGD / csv.awk
Last active May 13, 2022 23:43
(G)AWK script for parsing CSV files that comply with RFC 4180
#!/usr/bin/gawk -f
# Copyright 2021 Lawrence González
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
@LawrenceJGD
LawrenceJGD / PKGBUILD
Created June 13, 2021 05:22
PKGBUILD for scalc
# Maintainer: Steven Guikal <aur-void@fluix.one>
pkgname=scalc
pkgver=0.2.0
pkgrel=1
pkgdesc='A very simple stack-based calculator that aims to be small, flexible, and extensible.'
arch=(x86_64)
url='https://sr.ht/~arivigo/scalc/'
license=('MIT')
depends=(glibc)
source=("$pkgname-$pkgver.tar.gz::https://git.sr.ht/~arivigo/$pkgname/archive/$pkgver.tar.gz")
@LawrenceJGD
LawrenceJGD / 0001-Fix-soundfont-search-path.patch
Last active June 11, 2021 23:35
PKGBUILD for lzdoom package
From c70f3a7973eef99c6709f11be75d7fe1bdc29efd Mon Sep 17 00:00:00 2001
From: Jan Cholasta <jan@cholasta.net>
Date: Mon, 5 Mar 2018 16:17:24 +0100
Subject: [PATCH] Fix soundfont search path
---
src/gameconfigfile.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gameconfigfile.cpp b/src/gameconfigfile.cpp