Skip to content

Instantly share code, notes, and snippets.

View Pinjontall94's full-sized avatar
🌱
Doing

Sam Johnson Pinjontall94

🌱
Doing
View GitHub Profile
@Pinjontall94
Pinjontall94 / guix.scm
Last active May 15, 2025 02:03
s3fh-1.0.1_guix.scm
(define-module (gnu packages s3fh)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system cmake)
#:use-module (guix build utils)
#:use-module (guix licenses)
#:use-module (guix gexp)
@Pinjontall94
Pinjontall94 / guix.scm
Last active May 15, 2025 20:06
hercules-390-v4.0.0-rc0_guix.scm
(define-module (gnu packages hercules)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system cmake)
#:use-module (guix build utils)
#:use-module (guix licenses)
#:use-module (guix gexp)
; SPDX-FileCopyrightText: 2025 Sammi Johnson <[email protected]>
;
; SPDX-License-Identifier: AGPL-3.0-or-later
;; Example metaconfig for Guile autotools projects
;; Usage:
;; Hand to sconfig/ac to construct an ac obj, then either:
;; REPL:
;; (ac-obj 'output "filename")
;; SHELL:
@Pinjontall94
Pinjontall94 / sconfig.scm
Created May 2, 2025 21:25
sconfig.scm (Guile autoconf generator)
; SPDX-FileCopyrightText: 2025 Sammi Johnson <[email protected]>
;
; SPDX-License-Identifier: AGPL-3.0-or-later
;; Guile Autoconf Generator
(define-module (sconfig))
;; Autoconf config constructor
(define (<ac> proj-name version email)
(let metaconfig ((ac-options-alist (list (list 'init proj-name version email))))

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@Pinjontall94
Pinjontall94 / guix.fish
Created June 17, 2024 20:51
Guix profile configuration for fish (i.e. fish-equivalent of ~/.guix-profile/etc/profile)
# Source this file to define all the relevant environment variables in Fish
# for this profile. An easy way to do this is to place this file in
# $XDG_CONFIG_HOME/fish/conf.d/
#
# You may want to define the 'GUIX_PROFILE' environment
# variable to point to the "visible" name of the profile, like this:
#
#
# When GUIX_PROFILE is undefined, the various environment variables refer
# to this specific profile generation.
@Pinjontall94
Pinjontall94 / discord_update.sh
Created May 3, 2024 23:19
update generic linux discord tarball in /opt/Discord
#!/bin/bash
set -e
#NOTE: all that really has to happen is the following:
# $ sudo rm -rf /opt/Discord && sudo tar -xf ~/Downloads/discord-*.tar.gz -C /opt/
# Globals
old_cwd="$(pwd)"
#!/usr/bin/python3
"""
Description: Will write the barcodes at the beginning of the output file.
Usage:
python merge_bcs_reads.py X Y Z
X: barcodes fastq file
Y: reads fastq file
Z: merged output file
"""