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 | |
useage() { | |
printf "\n\e[1;4mAscii Escape Code Helper Utility\e[m\n\n" | |
printf " \e[1mUseage:\e[m colors.sh [-|-b|-f|-bq|-fq|-?|?] [start] [end] [step]\n\n" | |
printf "The values for the first parameter may be one of the following:\n\n" | |
printf " \e[1m-\e[m Will result in the default output.\n" | |
printf " \e[1m-b\e[m This will display the 8 color version of this chart.\n" | |
printf " \e[1m-f\e[m This will display the 256 color version of this chart using foreground colors.\n" | |
printf " \e[1m-q\e[m This will display the 256 color version of this chart without the extra text.\n" |
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 | |
IF EXIST TREE ( | |
RMDIR /S /Q TREE | |
ECHO Tree Removed. | |
GOTO :EOF | |
) | |
FOR %%A IN (1,2,3) DO ( | |
ECHO Creating [ %%A ] and it's sub directories... | |
FOR %%B IN (%%A_1,%%A_2,%%A_3) DO ( |
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
@if (@X)==(@Y) @end /* Harmless hybrid line that begins a JScript comment | |
::************ Documentation *********** | |
::REPL.BAT version 4.1 | |
::: | |
:::REPL Search Replace [Options [SourceVar]] | |
:::REPL /?[REGEX|REPLACE] | |
:::REPL /V | |
::: | |
::: Performs a global regular expression search and replace operation on |
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 | |
SETLOCAL | |
:: Help is a special type of flag which is also | |
:: the default which has many ways to trigger. | |
IF "%1"=="" ( SET hflag_help=1 ) ELSE ( SET hflag_help=0) | |
IF "%1"=="/?" ( SET hflag_help=1 & SHIFT ) | |
IF "%1"=="-?" ( SET hflag_help=1 & SHIFT ) | |
IF "%1"=="--help" ( SET hflag_help=1 & SHIFT ) | |
:: The other flags are all similar. |
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 | |
while read -r; do | |
printf "%b\n" "$REPLY" | |
done < $1 | |
printf "\e[0m" |
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
@set @junk=1 /* | |
@cscript //nologo //E:jscript %~f0 %* | |
@goto :eof */ | |
var args=WScript.Arguments, shell=WScript.CreateObject("WScript.Shell"), bForced, nStartIndex, sFilter; | |
if(args.length==0||(args.length==1&&(bForced=args(0).toLowerCase()=='-f'||args(0).toLowerCase()=='--force'))) | |
err(1, "You must provide a starting value to begin counting at."); | |
if(args(0)=='-?'||args(0).toLowerCase()=='--help') { showHelp(); WScript.Quit(0); } | |
if(isNaN(nStartIndex=parseInt(args(bForced?1:0)))||nStartIndex<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
<?php | |
// BEGIN CONFIGURATION | |
$server_name = gethostname().' - Development Machine'; | |
$search = dirname(__FILE__); // The directory you want to search. | |
// This uses a filesystem style pattern and ignores case (even on linux systems). | |
$ignore = array('.*','index.*','*.bak','aspnet_client'); // Files with these names are always ignored. | |
$usr = array( // These describe the user whom can log in and what group they are in |
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
@set @junk=1 /* | |
@cscript //nologo //E:jscript %~f0 %* | |
@goto :eof */ | |
var args=WScript.Arguments, argCnt=args.Length, stdin=WScript.StdIn, stdout=WScript.StdOut; | |
var replaceSingleQuotes=false, printMatchesOnly=false, matchString, flagString, regex, argDx=0; | |
if(argCnt==0) { | |
throw new Error("You must provide search criteria."); | |
} |
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.IO; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace BuildSite { | |
public class Kolor { |
OlderNewer