Skip to content

Instantly share code, notes, and snippets.

View jeansymolanza's full-sized avatar

Jeansy Molanza jeansymolanza

View GitHub Profile
#!/bin/sh
set -e
rpmbuild -ba ~/rpmbuild/SPECS/rocket-unidata-8.1.2.spec
if [ $(rpm -qa | grep -i rocket-unidata-8.1.2-1.x86_64) ]; then
sudo rpm -e rocket-unidata-8.1.2-1.x86_64
fi
sudo rpm -ivh --nodeps ~/rpmbuild/RPMS/x86_64/rocket-unidata-8.1.2-1.x86_64.rpm
#!/bin/sh
set -e
echo "Starting Unidata 8.1.2 uninstall"
# Rolling back previous Unidata if it exists
if [[ -d /var/tmp/812_UPGR/pre/bin/ ]]; then
rsync -Kavr --delete /var/tmp/812_UPGR/pre/bin/* /usr/ud/bin/
fi
if [[ -d /var/tmp/812_UPGR/pre/lib/ ]]; then
#!/bin/sh
set -e
echo "Starting Unidata 8.1.2 install"
# Set environment variables
export UDTHOME=/usr/ud
export UDTBIN=$UDTHOME/bin
export PATH=$PATH:$UDTBIN
export LANG=C
Name: rocket-unidata
Version: 8.1.2
Release: 1
Summary: UniData 8.1.2 RPM package
License: Proprietary
%description
IBM UniData is an extended relational data server designed for embedding in vertical applications. UniData simplifies data management and query logic, providing more power for online high-transaction applications. Requires libnsl and ncurses-compat-libs packages.
%install
#!/bin/expect -f
set force_conservative 0 ;# set to 1 to force conservative mode even if
;# script wasn't run conservatively originally
if {$force_conservative} {
set send_slow {1 .1}
proc send {ignore arg} {
sleep .1
exp_send -s -- $arg
}
#!/usr/bin/python3
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.base import MIMEBase
from email import encoders
import os.path
import csv
from random import randint
<div>
<label for="email" class="block text-sm font-medium text-gray-700">Search candidates</label>
<div class="mt-1 flex rounded-md shadow-sm">
<div class="relative flex items-stretch flex-grow focus-within:z-10">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<!-- Heroicon name: solid/users -->
<svg class="h-5 w-5 text-gray-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path d="M9 6a3 3 0 11-6 0 3 3 0 016 0zM17 6a3 3 0 11-6 0 3 3 0 016 0zM12.93 17c.046-.327.07-.66.07-1a6.97 6.97 0 00-1.5-4.33A5 5 0 0119 16v1h-6.07zM6 11a5 5 0 015 5v1H1v-1a5 5 0 015-5z" />
</svg>
</div>
ps -eo pid,etime,comm,user | awk '{if ($3 ~ /KL/ || $3 ~ /kl/ && $2>604800) print $1, $4}' | while read pid user; do kill $pid; echo "Killed $pid process owned by $user which started running at $(ps -o lstart= -p $pid)" >> processes.txt; done
padded_number=$(printf "%02d" "${string//[!0-9]}")
=DATE(RIGHT(B1,4),MID(B1,4,2),LEFT(B1,2)) + TIME(MID(B1,12,2),MID(B1,15,2),MID(B1,18,2))