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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" | |
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<title><?php echo $title; ?></title> | |
<link rel="shortcut icon" type="image/png" href="favicon.png" /> | |
<link rel="stylesheet" href="./css/reset.css" type="text/css" media="all" /> | |
<link rel="stylesheet" href="./css/text.css" type="text/css" media="all" /> | |
<link rel="stylesheet" href="./css/style.css" type="text/css" media="screen, projection" /> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<!-- BEGIN HEAD --> | |
<head> | |
<title>Sample Page</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<link rel="Shortcut Icon" href="./favicon.ico" type="image/x-icon" /> | |
<link rel="stylesheet" href="./css/style.css" type="text/css" media="screen,handheld" /> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<!-- BEGIN HEAD --> | |
<head> | |
<title>Sample Page</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<link rel="Shortcut Icon" href="./favicon.ico" type="image/x-icon" /> | |
<link rel="stylesheet" href="./css/style.css" type="text/css" media="screen,handheld" /> |
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
DELIMITER ;; | |
CREATE FUNCTION overlap_interval(x INT,y INT,a INT,b INT) | |
RETURNS INTEGER DETERMINISTIC | |
BEGIN | |
DECLARE | |
overlap_amount INTEGER; | |
IF (((x <= a) AND (a < y)) OR ((x < b) AND (b <= y)) OR (a < x AND y < b)) THEN | |
IF (x < a) THEN | |
IF (y < b) 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/* | |
*.bak | |
######### | |
# Maven # | |
######### | |
target/ | |
pom.xml.tag | |
pom.xml.releaseBackup | |
pom.xml.versionsBackup |
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
@Injectable() | |
export class UploadService { | |
/** | |
* @param Observable<number> | |
*/ | |
private progress$: Observable<number>; | |
/** | |
* @type {number} | |
*/ |
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 | |
formail -R cc X-original-cc \ | |
-R to X-original-to \ | |
-R bcc X-original-bcc \ | |
-f -A"To: new@email.com" \ | |
| /usr/sbin/sendmail -t -i | |
# pipe all to a log instead, comment out formail code | |
#tee -a /tmp/trapmail.log > /dev/null |
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
Function New-PSWebServer { | |
<# | |
.Synopsis | |
Creates a web server that will invoke PowerShell code based on routes being asked for by the client. | |
.Description | |
New-PSWebServer creates a web server. The web server is composed of a schema that defines the client's requests to routes where PowerShell code is executed. | |
Under the covers, New-PSWebServer uses the HTTPListener .NET class to execute powershell code as requested, retrieves the results and sends data back through the httplistener web server framework. |
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
" Export current file to docx via pandoc | |
!F:\wilcoxjo\opt\pandoc\pandoc.exe -V links-as-notes=true --resource-path=.:F:\wilcox\Documents\support -f markdown+grid_tables -t docx %:p -o %:p:r.docx | |
" Open document in word | |
!C:\PROGRA~2\MICROS~1\Office16\WINWORD.EXE %:p:r.docx | |
" Export to windows clipboard in JIRA wiki format | |
!F:\wilcoxjo\opt\pandoc\pandoc.exe -V links-as-notes=true -f markdown -t jira %:p |clip | |
" Replace HTML with actual chars |
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
# Tree replacement | |
find . | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-- \1/" | |
# Test Firewall with basic linux tools | |
#### Command for Destination Server; Create a listener on target port | |
nc -l 8080 | |
#### Command for source server | |
echo > /dev/tcp/127.0.0.123/8085 && echo "Port is open" |
OlderNewer