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
REM C:\Users\k.langer>echo %FNAME% | |
REM ARC_20150209_115340.zip | |
set hr=%time:~0,2% | |
if "%hr:~0,1%" equ " " set hr=0%hr:~1,1% | |
set FNAME=ARC_%date:~-4,4%%date:~-10,2%%date:~-7,2%_%hr%%time:~3,2%%time:~6,2%.zip | |
echo %FNAME% |
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 | |
# (c)2016 KenWare | |
# | |
PROJECTS_FILE=$HOME/projects.list | |
REPO_DIR=/opt/data/git/repositories | |
BACKUP_LOCATION=/opt/backups/git_backups | |
CURRENT_DATE=`date +"%Y%m%d%H%M%S"` | |
for repo in `cat ${PROJECTS_FILE}` ; do | |
TARGET_ZIP=${CURRENT_DATE}"_"`echo ${repo}| sed "s/[\/\.]/_/g"`".tar.gz" | |
echo "REPOSITORY: "${REPO_DIR}/${repo} |
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
@echo off | |
REM | |
REM Example of howto use a lockfile in BATCH language | |
REM | |
:INIT | |
CD \BatchJobs | |
ECHO Current Working Directory | |
CD |
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
@echo off | |
C: | |
REM ======================================================================= | |
REM Usage: | |
REM 1. Copy into a directory where you keep scripts | |
REM 2. Check the "My Locations" to ensure they align with your environment | |
REM 3. Confirm JAVA and Tomcat environment | |
REM 4. Launch and check for dysoweb-tomcat*.txt in your logs directory | |
REM | |
REM -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
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
cd dt_modules/sample | |
pwd | |
if [ ! -d "output_data" ]; then | |
mkdir output_data | |
fi |
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
synclient | |
synclient VertScrollDelta=-58 | |
synclient HorizScrollDelta=-58 |
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
# Take a listing of files and renames to be lowercase. The ls -1 is the selector of which files are impacted so be careful. | |
for f in `ls -1`; do mv -v "$f" "`echo $f | tr '[A-Z]' '[a-z]'`"; done |
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
#!/usr/bin/env python3 | |
# -*- coding: utf8 -*- | |
import pypyodbc | |
def show_odbc_sources(): | |
odbc_list = [] | |
for d in pypyodbc.drivers(): | |
odbc_list.append('%s' % (d)) |
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
Name: Syndaemon | |
Commaond: syndaemon -i 1.0 -K -R -t | |
Descriptiong: Turn off trackpad while typing for Ubuntu/XBuntu |
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
from tkinter import * | |
root = Tk() | |
text = Text(root, wrap=NONE, bg="black", fg="lightgreen", font=("Consolas", 10, "normal")) | |
BG_EVEN = 'BG_EVEN' | |
BG_ODD = 'BG_ODD' | |
text.tag_config('FG_FATAL', foreground='yellow', background='red') | |
text.tag_config('FG_ERROR', foreground='orange') |
OlderNewer