View fatturapa_v1.1.xsl
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
| <?xml version="1.0"?> | |
| <xsl:stylesheet | |
| version="1.1" | |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
| xmlns:a="http://www.fatturapa.gov.it/sdi/fatturapa/v1.1"> | |
| <xsl:output method="html" /> | |
| <xsl:template name="FormatDate"> | |
| <xsl:param name="DateTime" /> |
View 10-node_configuration.sh
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
| hacluster_pwd="$1" | |
| hafence_pwd="$2" | |
| HOSTNAME=$(hostname) | |
| HOSTID=$(echo $HOSTNAME | sed 's/.*-//') | |
| eths=$(ip address | grep '^[0-9]' | awk '{print $2}' | uniq | grep -v lo | sed 's/://g' | sed 's/@.*$//') | |
| eth1=$(echo $eths | awk '{print $1}') | |
| eth2=$(echo $eths | awk '{print $2}') | |
| eth3=$(echo $eths | awk '{print $3}') |
View 10-node_configuration.sh
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
| # Input params: | |
| hacluster_pwd="$1" | |
| hafence_pwd="$2" | |
| HOSTNAME=$(hostname) | |
| HOSTID=$(echo $HOSTNAME | sed 's/.*-//') | |
| eths=$(ip address | grep '^[0-9]' | awk '{print $2}' | uniq | grep -v lo | sed 's/://g' | sed 's/@.*$//') | |
| eth1=$(echo $eths | awk '{print $1}') | |
| eth2=$(echo $eths | awk '{print $2}') | |
| eth3=$(echo $eths | awk '{print $3}') |
View powershell-gui-dialogs.ps1
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
| # Show message box popup. | |
| Add-Type -AssemblyName System.Windows.Forms | |
| $result = [System.Windows.Forms.MessageBox]::Show("My message", "Window Title", [System.Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::None) | |
| # Show input box popup. | |
| Add-Type -AssemblyName Microsoft.VisualBasic | |
| $inputText = [Microsoft.VisualBasic.Interaction]::InputBox("Enter some value:", "Window Title", "Default value") | |
| # Show an Open File Dialog and return the file selected by the user. | |
| function Read-OpenFileDialog([string]$InitialDirectory, [switch]$AllowMultiSelect) |
View smtp_test_send_email.pl
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/perl | |
| use Net::SMTP; | |
| use utf8; | |
| # === Start of variables to modify === | |
| $from='<YOUR_FROM@YOUR_FROM_DOMAIN>'; | |
| $to ='<YOUR_RECIPIENT@YOUR_RECIPIENT_DOMAIN>'; | |
| $subject='test message with Net::SMTP'; | |
| $data='Test msg row 1 |
View smtp_test.pl
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/perl | |
| use Net::SMTP; | |
| $smtp=Net::SMTP->new(Host=>'localhost', Debug=>1); | |
| die "Unable to connect\n" unless $smtp; | |
| print $smtp->banner(); | |
| $smtp->quit; |
View datacite-test.pl
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/perl | |
| use LWP; | |
| use Crypt::SSLeay; | |
| use utf8; | |
| binmode(STDOUT,'utf8'); | |
| $user_name="<YOUR_USER>"; | |
| $user_pw="<YOUR_PASSW>"; | |
| $url="https://mds.test.datacite.org/"; | |
| $doi="10.5072/TEST/T2/89"; |