Skip to content

Instantly share code, notes, and snippets.

View marcastel's full-sized avatar
🚀
Launching stuff

JM Marcastel marcastel

🚀
Launching stuff
View GitHub Profile
@marcastel
marcastel / mvn
Last active April 7, 2023 05:11
Maven `mvn` script
#! /bin/ksh
#! @brief Apache Maven Startup Script
#
# NOTE. If you are not using the AIT framework, replace all calls to `lq`(1) by `print -u2`, for example:
# lq +error "This is an error"
# becomes
# print -u2 "error: this is an error"
function mvn_getdir {
@marcastel
marcastel / gh-bootstrap
Last active August 27, 2021 23:49
Bootstrap ISLE make(1)-based build system
#! /bin/ksh
#! @brief Bootstrap ISLE make(1)-based build system
# Construct the man(1) page for this utility
typeset usage=$'[-][+NAME?\bgh-bootstrap\b - boostrapping utility for the first time cloning of ISLE GitHub repositories.]
[+DESCRIPTION?This is a small KornShell utility to automatically clone ISLE GitHub repositories that use our \bmake(1)\b-bassed
build system. Its operations are pretty straightforward: first the repository is cloned locally into the specified \bdirectory\b;
then the repository is cloned again within the new directory to create the special \bMakefiles\b folder and to link the master
\bMakefile\b file; finally it launches the first time configuration of the repository (\bmake first-insteall\b).]
[+?Simple. No magic. It avoids the hassle of typing all those commands!]
@marcastel
marcastel / al2-setup-apache
Last active April 27, 2020 11:12
Amazon Linux 2 / Apache automated install w/SSL (test certificates)
#! /bin/ksh
# NAME
#
# `al2-setup-apache` -- install Apache httpd on Amazon Linux 2 with SSL enabled
#
# DESCRIPTION
#
# This snippet allows to quickly setup Apache httpd on Amazon Linux 2 with SSL enabled. It will automatically create a test
# certificate and install `mod_ssl`. Obviously this is not for production systems.
#
{
"name": "ISLE Blacklist",
"description": "Blocks advertising and analytics servers.",
"denied-remote-domains": ["facebook.com", "twitter.com", "youtube.com"]
}
@marcastel
marcastel / df_notifier
Last active April 9, 2017 14:05
df_notifier -- macOS user notifications (à la Growl) from the command line
#!/bin/ksh
# @{ <script> df_uxnotifier
[[ -z $DF_NOTIFIERAPP ]] && DF_NOTIFIERAPP=/Applications/terminal-notifier.app
[[ -z $DF_NOTIFIERBIN ]] && DF_NOTIFIERBIN=/Contents/MacOS/terminal-notifier
# @{ USAGE
typeset -S usage=$'[-1]
@marcastel
marcastel / macos-devlp.md
Last active February 9, 2017 11:37 — forked from erikreagan/mac-apps.md
Mac developer must-haves

MacOS development environment

Using Erik Reagan's original gist as a base -- which doesn't seem to have been updated recently, hence my fork, I will maintain here an alternate version for programmers, who, like me:

  • Prefer CLI over UX, and the keyboard over the mouse
  • Spend most of their time in terminal environments
  • Primarily work in UNIX environments (AIX, macOS/BSD, Linux, ...)
  • Develop both back-end and front-end applications and software
  • Work in multiple language environments (C/C++, Perl, PHP, Javascript (full-stack), ...)
  • Prefer consolidating all build processes with one tool (i.e. GNU Make) rather than a cohort of language specific imitators (Ant, Grunt, ...)