Skip to content

Instantly share code, notes, and snippets.

@tgrushka
tgrushka / caffeinate
Last active August 7, 2024 20:44
Linux Gnome caffeinate shell script - Keep system awake / prevent sleep, like caffeinate on macOS
#!/usr/bin/bash
# caffeinate: Keep system awake / prevent sleep, like caffeinate on macOS.
# for Gnome desktop
# USAGE:
# Place this script somewhere in $PATH and set executable.
# Run `caffeinate` from terminal.
# Hit Ctrl-C to stop.
# To timeout, run `timeout SECONDS caffeinate`, where SECONDS is # of seconds.
@tgrushka
tgrushka / resume.json
Last active April 28, 2024 11:43
JSON Resume
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Thomas (Tom) Grushka, M.S., CPWA",
"label": "Leading Software and Data Engineering Wizard",
"image": "",
"email": "[email protected]",
"phone": "+1 720 495 7323",
"url": "https://linkedin.com/in/tgrushka",
"summary": "I’m a full-stack mobile and web engineer who architects apps and their infrastructures from the ground up. Having worked for both small and large companies, I am well-versed in a variety of programming frameworks and development processes. My expertise in accessibility is an advantage that adds unique value to my projects.",
// Adapted from https://github.com/jfortunato/esbuild-plugin-manifest/blob/develop/src/index.ts
// Plugin I modified to make esbuild generate a manifest for Spring Boot application. No longer used.
import fs from "fs"
import path from "path"
import util from "util"
export default (options = {}) => ({
name: "manifest",
setup(build) {
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.core.io.ClassPathResource
import org.springframework.integration.config.EnableIntegration
import org.springframework.integration.dsl.integrationFlow
import org.springframework.integration.file.FileHeaders
import org.springframework.integration.file.dsl.Files
import org.springframework.integration.file.filters.ChainFileListFilter
import org.springframework.integration.file.filters.FileListFilter
import org.springframework.integration.file.filters.SimplePatternFileListFilter