Skip to content

Instantly share code, notes, and snippets.

View jacky9813's full-sized avatar

JackyCCChen jacky9813

  • Nextlink Technology
View GitHub Profile
Dim verbose
verbose = True
' verbose = False
Sub WordCallback(FilePath)
On Error Resume Next
Dim outputPath, oDoc
outputPath = FilePath & "x"
If verbose Then
Wscript.Echo FilePath & " => " & outputPath
@jacky9813
jacky9813 / yum-mirror
Created June 14, 2020 12:49
Bash script for mirroring yum repositories registered in the system
#!/usr/bin/env bash
BASEDIR=$(pwd)
PROGRAMDIR=$(dirname $(readlink -f "${BASH_SOURCE[0]}"))
REPOSINFODIR=/etc/yum.repos.d
SYNCSTARTTIME=$(date "+%Y%m%d%H%M%S")
SYNCLOGDIR=$BASEDIR/logs/sync/$SYNCSTARTTIME
GLOBALLOGFILE=SyncLog.log
ALLREPOS=false
VERBOSE=false
SHOWREPOS=false
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.