Skip to content

Instantly share code, notes, and snippets.

View wyan's full-sized avatar
👾
mingling with retro stuff, yearning for the VT52, still looking at the fnords

Alice Wyan wyan

👾
mingling with retro stuff, yearning for the VT52, still looking at the fnords
  • CIFP Camino de la Miranda
View GitHub Profile
#!/usr/bin/env python3
from datetime import datetime
import sys
import re
if len(sys.argv) < 6:
print("\nTK4- ANSI art to HLASM Tool\n\nUsage:")
usage = '''{} ansi_file tk4_user source_file_member cursor_x cursor_y > JCL_FILE\n

Simple (LOL) CICS DOGE "Good Morning" screen (i.e. overly complicated hello world)

CICS is like this mystery wrapped in an enigma wrapped in a riddle. Sure you've heard about it, your company might even rely on it day to day for some really important transactions. But if you wanted to quickly learn how to write and deploy a CICS transaction (or application) its basically impossible. Sure you could grab the Murach book, which is great, but its not a 101 level tutorial, they don't even comment about how to use CEDA to install your cics program and mention compiling COBOL and assembling maps in passing.

Throughout this writeup I'm going to refer to CICS like a web server. Yes, i know its the proto-webserver. I don't care, its the roaring 20's. With that in mind, some quick terminology:

  • Transaction: 4 characters long, think of this like a URL. We'll use DOGE as our transaction.
  • Region: This is like "servers". Imagine you had 3 tomcat servers running on different ports, same deal here, except we call th
@andrebreves
andrebreves / open-keg
Last active March 26, 2022 15:20
Make homebrew keg-only formulae available inside a interactive subshell, by setting some PATH variables
#!/usr/bin/env bash
set -Eeuo pipefail
# Formatting
if [[ -t 1 && $(tput colors) -ge 8 ]]; then
_rst_="$(tput sgr0)" ; _bol_="$(tput bold)" ; _und_="$(tput smul)"
_red_="$(tput setaf 1)"; _grn_="$(tput setaf 2)"; _ylw_="$(tput setaf 3)"; _blu_="$(tput setaf 4)"
else
_rst_=""; _bol_=""; _und_=""
_red_=""; _grn_=""; _ylw_=""; _blu_=""
@tuklusan
tuklusan / hecnet-nodes-for-pydecnet.sh
Last active January 21, 2024 21:43
hecnet-nodes-for-pydecnet.sh: Grabs HECnet node database and converts to format expected by Paul Koning's DECnet/Python
#!/bin/bash
# --
# hecnet-nodes-for-pydecnet.sh
# grabs HECnet node list from MIM and produces node names configuration
# file for DECnet/Python
#
# Author: Supratim Sanyal <supratim at riseup dot net>
# --
@aveao
aveao / bird1-bird-vultr.conf
Last active February 23, 2025 15:54
BIRD 1 and 2 configs for BGP stuffs (HE Tunnelbroker, Vultr etc)
router id [our IPv4];
protocol bgp vultr
{
local as [our ASN];
source address [our IPv4 from vultr];
import all;
export filter {
if net ~ [[the IPv4 block we want to announce]] then accept;
reject;
@valerionew
valerionew / blink_38khz_1_prescaler.c
Created September 3, 2018 18:38
Blinking a led at 38kHz on an attiny10. Gaining extra precision by swithching from the default :8 prescaler to the :1 prescaler (8MHz clock)
@rppowell-lasfs
rppowell-lasfs / java-hibernate-sqlite.md
Last active March 10, 2024 19:12
Java Hibernate-Sqlite Simple Example 2018-04-22

Java Hibernate/Sqlite Example

Dependencies

// https://mvnrepository.com/artifact/org.hibernate/hibernate-core
compile group: 'org.hibernate', name: 'hibernate-core', version: '5.2.16.Final'

// https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc
compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.21.0.1'
@jokeru
jokeru / aws_delete-default-vpc.sh
Created March 31, 2018 15:14
Script to delete all AWS default VPCs from all regions using AWS CLI
#!/usr/bin/env bash
if [ "$AWS_PROFILE" = "" ]; then
  echo "No AWS_PROFILE set"
  exit 1
fi
for region in $(aws ec2 describe-regions --region eu-west-1 | jq -r .Regions[].RegionName); do
@dylanmckay
dylanmckay / facebook-contact-info-summary.rb
Last active December 3, 2024 21:48
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# NOTE: Requires Ruby 2.1 or greater.
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
@jblang
jblang / rc2014.md
Last active April 1, 2025 07:19
RC2014 Links