\n\s*<category domain="((?!post_tag).)*" nicename=".*">.*</category>
\n\s*((?!)[\s\S])*
#!/bin/bash | |
version="1.0.0" | |
print_help() { | |
echo "Usage: csmap [dir]" | |
echo "" | |
echo "This command generated a \"csmap.txt\" file containing a SHA256 checksum of" | |
echo "each file of a directory recursively. If a \"csmap.txt\" file exists," | |
echo "it generates a temporary \"csmap.compare.txt\" file, do the mapping and" | |
echo "compare it with the \"csmap.txt\" file." |
hg st --rev TAG --rev default -n | xargs zip to_push.zip |
<?php | |
class TotalTime | |
{ | |
public function __construct($seconds) | |
{ | |
$this->total_seconds = (int) $seconds; | |
$this->_getTime(); | |
} | |
/** |
/** | |
* Get the number of milliseconds since Sunday at 00:00:00 [UTC]. | |
*/ | |
Date.prototype.toUTCWeekMilliseconds = function() { | |
return (this.getUTCDay()*24*60*60*1000) // Days | |
+ (this.getUTCHours()*60*60*1000) // Hours | |
+ (this.getUTCMinutes()*60*1000) // Minutes | |
+ (this.getUTCSeconds()*1000) // Seconds | |
+ this.getUTCMilliseconds(); // Milliseconds | |
} |
function addLeadingZero(value) { | |
if (value < 10 && value >= 0) { | |
return('0'+value); | |
} | |
else if (value < 0 && value > -10) { | |
return('-0'+Math.abs(value)); | |
} | |
return value; | |
} |
alias ll='ls -la' | |
# search in files and directories | |
search () { grep -rHinC0 "$*" .; } | |
# DEFINE COLORS | |
# MAKES IT EASIER TO CHANGE SHELL COLORS | |
# Reset | |
Color_Off="\[\033[0m\]" # Text Reset |
#!/usr/bin/perl | |
# sessauth.pl: A non-graphical Session Authentication Agent for | |
# FireWall-1 3.x | |
# | |
# Author: Dameon D. Welch ([email protected]) | |
# Version: 1.0 | |
# Date: 12 August 1998 | |
# | |
# This program is designed to listen on port 261 for session authentication |
#!/usr/bin/php | |
<?php | |
/** | |
* PHP script that perform a find and replace in a database dump (tested with | |
* MySQL) with adjustments of the PHP serialize founded. | |
* | |
* Don't forget to escape your "special characters": | |
* "a$b" -> "a\$b" | |
* "a"b" -> "a\"b" | |
* "a`b" -> "a\`b" |