This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CONFIG_FILE="/etc/ysfgateway" | |
TARGET_KEY="Startup" | |
REPLACEMENT_VALUE="FCS00390" | |
# Turn off read-only | |
sudo mount -o remount,rw / ; sudo mount -o remount,rw /boot | |
# Edit /etc/ysfgateway | |
sudo sed -i "s/\($TARGET_KEY *= *\).*/\1$REPLACEMENT_VALUE/" $CONFIG_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @name VARCHAR(50) -- database name | |
DECLARE @path VARCHAR(256) -- path for backup files | |
DECLARE @fileName VARCHAR(256) -- filename for backup | |
DECLARE @fileDate VARCHAR(20) -- used for file name | |
-- specify database backup directory | |
SET @path = 'E:\DB_Backups\' | |
-- specify filename format | |
SELECT @fileDate = CONVERT(VARCHAR(20),GETDATE(),112) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SQL Error Status Fields (Numeric Order) | |
D SQL_SUCCESS C CONST('00000') | |
D SQL_NO_MORE_ROWS... | |
D C CONST('02000') | |
D SQL_DUPLICATE_RECORD... | |
D C CONST('23505') | |
D SQL_ROW_LOCKED... | |
D C CONST('57033') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
H ActGrp(*caller) BndDir('MODULES') DftActGrp(*no) | |
//************************************************************************* | |
// Program . . . . . AMORT | |
// | |
// Created on . . . | |
// by . . . | |
// | |
// Description . . . | |
// | |
// CHANGE LOG: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FDSPFDP IF E DISK | |
C eval *inlr = *on | |
C read QWHFDML | |
C dow (not %eof) | |
C callList plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ********************************************************************** */ | |
/* Program . . . . . ALERT */ | |
/* */ | |
/* Created on . . . 04/09/2010 */ | |
/* by . . . Mike Wills (http://mikewills.me) */ | |
/* */ | |
/* Description . . . */ | |
/* */ | |
/* CHANGE LOG: */ | |
/* Date | Name | Description */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
www.mankatofreepress.com###ta_background | |
www.mankatofreepress.com###ta_invisible | |
www.mankatofreepress.com###ta_pagesLeftPopup | |
www.mankatofreepress.com##.ta_bottomLeftPopup | |
www.mankatofreepress.com##.ta_popup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Schedule this to run once a day with cron. Doesn't matter what time since it parses yesterday's hits (by default). | |
# I only tested this on the Marco.org server, which runs CentOS (RHEL). No idea how it'll work on other distributions, but it's pretty basic. | |
# Required variables: | |
RSS_URI="/rss" | |
MAIL_TO="[email protected]" | |
LOG_FILE="/var/log/httpd/access_log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Data; | |
using IBM.Data.DB2.iSeries; | |
namespace Mike.Wills.IbmI | |
{ | |
public static class IbmISql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code was taken off the PCTECH mailing list from the following message thread: | |
// http://archive.midrange.com/pctech/201108/msg00084.html | |
// Written by Jim O. and slj | |
Sub split_up() | |
Dim rLastCell As Range | |
Dim rCells As Range | |
Dim strName As String |
NewerOlder