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
' A windows vbscript to delete old files. Simply make a .bat file and thow it in Windows scheduled tasks | |
' Example, same file in C:\batch\DeleteOldFiles.vbs and make C:\batch\CleanupThisServer.bat: | |
' | |
' cd C:\batch | |
' cscript DeleteOldFiles.vbs "D:\SMTPExpress\EasyMail SMTP Express\logfiles" 90 | |
' cscript DeleteOldFiles.vbs "D:\DynaMailPDF\" 720 txt 2 (this one uses max depth =2) | |
'-------------------------------------------------------------------------------------- | |
' Objective: To delete old files from a given folder and all subfolders below | |
' Created by: MAK | |
' Created Date: June 21, 2005 |
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 python | |
# Clean up old files around the server, called weekly Sunday 8am | |
# mReschke 2012-05-01 | |
import os | |
import sys | |
import subprocess | |
import traceback | |
import datetime |
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
###################################################################################################### | |
## mReschke .xinitrc/.xsession X11 control file ## | |
## See http://fluxbox.sourceforge.net/docbook/en/html/app-setup.html for help on .xinitrc/.xsession ## | |
###################################################################################################### | |
## Run before window manager loads ## | |
# Fix to make QT apps look like GTK theme | |
GTK2_RC_FILES="$HOME/.gtkrc-2.0" |
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
------------------------------------------------------------------------------- | |
-- xmonad.hs | |
-- Taken from default config + Mr.Elendigs file + mReschke Custom Additions | |
------------------------------------------------------------------------------- | |
-- Compiler flags -- | |
{-# LANGUAGE NoMonomorphismRestriction #-} | |
-- Imports -- | |
-- stuff | |
import XMonad |
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
Config { font = "-*-terminus-*-*-*-*-12-*-*-*-*-*-*-u" | |
, bgColor = "#000000" | |
, fgColor = "#1793D1" | |
, position = TopSize L 100 16 | |
, lowerOnStart = True | |
, commands = [ Run Network "eth0" ["-L", "64", "-H", "128", "-l", "#8Dc342", "-n", "#D07735" ,"-h", "#cc2000", "-t", "<dev>: <rx> : <tx>"] 10 | |
, Run Cpu ["-L","25", "-H","50", "-l", "#8DC342", "-n","#D07735", "-h","#cc2000"] 10 | |
, Run Memory ["-t","Mem: <usedratio>%"] 10 | |
, Run Date "%a %b %_d %Y %I:%M:%S" "date" 10 | |
, Run CoreTemp ["-t", "Temp: <core0>C : <core1>C : <core2>C : <core3>C"] 10 |
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 bash | |
# Create a new nginx php-fpm site | |
# mReschke 2015-01-01 | |
if [ "$1" == "" -o "$2" == "" ]; then | |
echo "Usage: serve url.example.com /var/www/example/public" | |
exit 1 | |
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
#!/bin/bash | |
#Compare md5sums of all files between two directories | |
#mReschke 2012-06-14 | |
src=$1 | |
dest=$2 | |
if [ "$src" != "" -a "$dest" != "" ]; then | |
if [ -e "$src" -a -e "$dest" ]; then |
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 | |
# Setup mrcore5 to my (mreschke) personal dbox liking (including dynatron code)a | |
# Run from inside dbox php shell | |
# Be sure you have proper github ssh keys in the php container, test first | |
# mReschke 2015-11-04 |
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 | |
# Create, Edit, Search and List a single GPG encrypted file | |
# Copyright (C) 2014 Matthew Reschke | |
# License MIT <mreschke.com/license/mit> | |
# Written by Matthew Reschke <mreschke.com/me> 2014-01-24 | |
file="$1" | |
option="$2" |
NewerOlder