Skip to content

Instantly share code, notes, and snippets.

View jcrd's full-sized avatar
📀
Remastering

James Reed jcrd

📀
Remastering
View GitHub Profile
@jcrd
jcrd / lambda_github_merge_upstream.py
Last active May 24, 2020 22:28
AWS Lambda function to push merged upstream into remote github branch
from os import environ
from subprocess import run
from tempfile import mkdtemp
url = 'https://{0}:{1}@github.com/{0}/{2}'
upstream = environ['UPSTREAM_URL']
name = environ['GITHUB_USERNAME']
email = environ['GITHUB_EMAIL']
branch = environ['ORIGIN_BRANCH']
origin = url.format(name, environ['GITHUB_TOKEN'], environ['GITHUB_REPO'])
@jcrd
jcrd / extrace-0.7.spec
Created December 21, 2020 16:53
extrace rpm spec
Name: extrace
Version: 0.7
Release: 1%{?dist}
Summary: trace exec() calls system-wide
License: GPLv2
URL: https://github.com/leahneukirchen/extrace
Source0: https://github.com/leahneukirchen/extrace/archive/v0.7.tar.gz
BuildRequires: gcc
@jcrd
jcrd / Makefile.gnupg
Last active December 21, 2020 16:54
Makefile to import/export gnupg keys and configuration
# Requires gnupg version >= 2.1
ownertrust: trustdb.gpg
gpg --export-ownertrust > ownertrust
export: Makefile private-keys-v1.d pubring.kbx ownertrust
tar -czf gnupg.tar.gz $^
import:
gpg --import-ownertrust ownertrust
@jcrd
jcrd / lesspass-10.1.0.spec
Last active November 5, 2021 00:27
lesspass pypi rpm spec
# Created by pyp2rpm-3.3.5
%global pypi_name lesspass
Name: python-%{pypi_name}
Version: 10.1.0
Release: 1%{?dist}
Summary: LessPass stateless password generator
License: GPL-3.0
URL: https://github.com/lesspass/lesspass
@jcrd
jcrd / hugo-extended-0.89.4.spec
Last active November 19, 2021 00:51
hugo extended rpm spec
%global tarball hugo_extended_%{version}_Linux-64bit.tar.gz
%global srcpath /src/github.com/gohugoio
Name: hugo
Version: 0.89.4
Release: 1%{?dist}
Summary: The world’s fastest framework for building websites
License: ASL 2.0 and MIT
URL: https://github.com/gohugoio/hugo
@jcrd
jcrd / godot-3.4.3.spec
Last active March 15, 2022 23:23
godot rpm spec
# Headless is editor binary to run without X11, e.g. for exporting games from CLI
%bcond_without headless
# Server is template (optimized, no tools) binary to run multiplayer servers
%bcond_without server
# Undefine for stable
#define prerel 1
%define status stable
%define uversion %{version}-%{status}
@jcrd
jcrd / python3-hid.spec
Created August 8, 2022 20:07
python hid package spec
%global pypi_name hid
%global pypi_version 1.0.5
Name: python-%{pypi_name}
Version: %{pypi_version}
Release: 1%{?dist}
Summary: ctypes bindings for hidapi
License: MIT
URL: https://pypi.org/project/hid/
@jcrd
jcrd / i3lock.service
Created August 19, 2022 00:14
sessiond session services
[Unit]
Description=Lock X session with i3lock
Documentation=man:i3lock(1)
PartOf=graphical-session.target
[Service]
ExecStart=/usr/bin/i3lock -n
ExecStopPost=/usr/bin/sessionctl unlock
[Install]
@jcrd
jcrd / cheatsheet.spec
Last active October 17, 2022 16:09
cheatsheet rpm spec
Name: cheatsheet
Version: 0.1.0
Release: 1%{?dist}
Summary: A command-line cheatsheet for the command-line
License: MIT
URL: https://github.com/atlasamerican/cheatsheet
Source0: https://github.com/atlasamerican/cheatsheet/archive/refs/tags/v0.1.0.tar.gz
Requires: git
@jcrd
jcrd / clight.spec
Last active February 3, 2023 21:06
clight and deps rpm specs
Name: Clight
Version: 4.9
Release: 1%{?dist}
Summary: A C daemon that turns your webcam into a light sensor. It will adjust screen backlight based on ambient brightness.
License: GPL-3.0
URL: https://github.com/FedeDP/clight
Source0: https://github.com/FedeDP/Clight/archive/refs/tags/4.9.tar.gz
BuildRequires: cmake