Skip to content

Instantly share code, notes, and snippets.

View jessp01's full-sized avatar

Jesse Portnoy jessp01

View GitHub Profile
@jessp01
jessp01 / gmessage.sh
Last active July 28, 2023 17:49
Sends a message to all logged in users (permission to pts devices required)
#===============================================================================
# FILE: gmessage.sh
# USAGE: gmessage.sh <message> [sender]
# DESCRIPTION: Sends a message to all logged in users (permission to pts devices required)
# OPTIONS: `sender` is an optional arg, $USER is used otherwise
# REQUIREMENTS: `toilet`, `lolcat`
# AUTHOR: Jesse Portnoy <jesse@packman.io>
# ORGANIZATION: Packman.io
# CREATED: 23/04/23 20:09:32 GMT
# REVISION: ---
@jessp01
jessp01 / github_changelog_gen.php
Created December 10, 2020 18:16
Github changelog generator
#!/usr/bin/php
// This script accepts a repo, branch and a personal GH token and generates a changelog consisting of all merged pulls on said branch
// It requires PHP CLI with the cURL extension enabled.
// Best suited for projects where each release is created from a separate branch but might be useful for projects with other release schemes..
<?php
if ($argc<4){
echo __FILE__ . ' <owner> <repo> <branch> <token> '."\n";
exit (1);
@jessp01
jessp01 / gist:6cc60a8afdbb76355d3b
Created April 18, 2015 15:27
build log for Nginx-VOD-module
+ ./configure --prefix=/etc/nginx --sbin-path=/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/log/nginx/error.log --http-log-path=/var/log/log/nginx/access.log --pid-path=/var/log/run/nginx.pid --lock-path=/var/log/run/nginx.lock --http-client-body-temp-path=/var/log/cache/nginx/client_temp --http-proxy-temp-path=/var/log/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/log/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/log/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/log/cache/nginx/scgi_temp --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-debug --add-module=./nginx-vod-module-master --add-module=./ngin