Skip to content

Instantly share code, notes, and snippets.

@wizardofzos
wizardofzos / terminal_emojis.md
Created February 28, 2023 00:34 — forked from nicolasdao/terminal_emojis.md
Terminal emojis. Keywords: terminal console symbol emoji emoticon icon
Emoji Name Text example
🚀 Rocket You're up
📦 Package Installing additional dependencies...
Hook Running completion hooks...
📄 Document Generating README.md...
🎉 Party Successfully created project hello-vue.
👉 Next Get started with the following commands:
Tick Task completed
Magic Assembling project...
import urllib2
import string
print "let's download all the GSEUK21 slides we can..."
#for i in string.digits:
for i in ['1','2','3','4','5','6']:
for a in ['A','B','C']:
for b in string.ascii_uppercase:
for ext in ['pdf', 'ppt', 'pptx', 'doc']:
deck = "%s%s%s.%s" % (i,a,b,ext)
@wizardofzos
wizardofzos / getdata.py
Last active August 23, 2021 16:58
SolarEdge API calls to Splunk
# SolarEdge API
# Docs: https://www.solaredge.com/sites/default/files/se_monitoring_api.pdf
# Just add running this file to a crontab and add "dasplunkfile" to splunk forwarder.
# It will take all data for today, minus the last entry (as that one fluctuates until end of perdiod)
# and prep a json file for splunk.
import requests
import datetime
import pprint
@wizardofzos
wizardofzos / fix#001
Last active May 23, 2021 22:15
Delete remnant DISCRETE datasetprofiles and remove non-existing users from accesslists ADCD 24B RACF
//FIXIT EXEC PGM=IKJEFT01,REGION=0M
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
/* Cleanup the DB@ ARCHLOG stuff :) */
DELDSD 'DSN710.ARCHLOG2.D01351.T1945222.B0000008' NOSET
DELDSD 'DSN710.ARCHLOG2.D01352.T1413499.A0000009' NOSET
DELDSD 'DSN710.ARCHLOG2.D01352.T1413499.B0000009' NOSET
DELDSD 'DSN710.ARCHLOG2.D01352.T1426322.A0000010' NOSET
DELDSD 'DSN710.ARCHLOG2.D01352.T1426322.B0000010' NOSET
DELDSD 'DSN710.ARCHLOG2.D01353.T1301406.A0000011' NOSET
@wizardofzos
wizardofzos / GSEUK20.py
Created November 3, 2020 13:34
gseukslides.py
import urllib2
import string
print "let's download all the GSEUK20 slides we can..."
#for i in string.digits:
for i in ['1','2','3','4','5','6']:
for a in ['A','B','C']:
for b in string.ascii_uppercase:
for ext in ['pdf', 'ppt', 'pptx', 'doc']:
deck = "%s%s%s.%s" % (i,a,b,ext)
@wizardofzos
wizardofzos / list.txt
Created June 21, 2020 09:48
compile/link output HWTHXPI1 from SYS1.SAMPLIB
1 J E S 2 J O B L O G -- S Y S T E M S 0 W 1 -- N O
0
05.42.39 JOB04990 ---- SUNDAY, 21 JUN 2020 ----
05.42.39 JOB04990 IRR010I USERID IBMUSER IS ASSIGNED TO THIS JOB.
05.42.39 JOB04990 ICH70001I IBMUSER LAST ACCESS AT 05:41:26 ON SUNDAY, JUNE 2
05.42.39 JOB04990 $HASP373 ZDOMTR STARTED - INIT 2 - CLASS A - SYS
05.42.39 JOB04990 IEF403I ZDOMTR - STARTED - TIME=05.42.39
05.42.40 JOB04990 $HASP375 ZDOMTR ESTIMATED LINES EXCEEDED
05.42.41 JOB04990 - -----TIMINGS (MINS.)-
05.42.41 JOB04990 -STEPNAME PROCSTEP RC EXCP CONN TCB SRB
@wizardofzos
wizardofzos / metrics.py
Created May 23, 2020 19:39
Get metrics from smart meter
# metrics.py - getting smart meter data via python
# based on http://gejanssen.com/howto/Slimme-meter-uitlezen
# and http://domoticx.com/p1-poort-slimme-meter-hardware/
import sys
import serial
import json
def parseLine(l):
@wizardofzos
wizardofzos / allTheSlides.py
Last active November 12, 2019 20:36
Download all the GSEUK19 slides
import urllib2
import string
print "let's download all the GSEUK19 slides we can..."
for a in string.ascii_uppercase:
for b in string.ascii_uppercase:
for ext in ['pdf', 'ppt', 'pptx', 'doc']:
deck = "%s%s.%s" % (a,b,ext)
url = "http://conferences.gse.org.uk/2019/presentations/%s" % deck
@wizardofzos
wizardofzos / convert.sh
Created November 11, 2019 21:12
zRCU - zigi Repository Conversion Utility
#!/bin/sh
#==============================================================================
#title :convert.sh
#description :This script will convert a git repository with z/OS datasets
# :into a zigi managable repository.
#author :Henri Kuiper
#date :2019/11/11
#version :1.0
#usage :sh /path/to/convert.sh [run inside your repo folder]
#notes :Make sure you know your dataset characteristics.
@wizardofzos
wizardofzos / breakit.sh
Created July 15, 2019 19:25
Shell Script that breaks my ZPDT
#!/bin/bash
mkdir -p broken
c=1
while [ $c -le 4000 ]
do
f=$RANDOM
touch broken/$f
setfacl -m "u:IBMUSER:rwx" broken/$f
clear