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 | |
# Prepares sites to be updated though the install.sh | |
ORIGIN_PATH=/var/www/vhosts/placetopay.com/sites/ | |
HOME_PATH=/home/diegocalle/ | |
BACKUP_PATH=/home/diegocalle/backup/co_ | |
ACTION=$1 | |
cd ${HOME_PATH} |
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
import java.math.BigInteger; | |
import java.security.SecureRandom; | |
import java.text.SimpleDateFormat; | |
import java.util.Base64; | |
import java.io.UnsupportedEncodingException; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.util.Date; | |
import java.util.Locale; |
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 | |
/** | |
* This will generate a 2001 Asobancaria file | |
*/ | |
$name = 'testing.txt'; | |
$nit = '8909002860'; | |
$date = date('Ymd'); |
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
var crypto = require('crypto'); | |
/** | |
* Generates authentication data in order to communicate with PlacetoPay Web Checkout service | |
* | |
* USAGE: | |
* | |
* var authGenerator = new RedirectionAuth("YOUR_LOGIN", "YOUR_TRANKEY"); | |
* var auth = authGenerator.asObject(); | |
* |
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.IO; | |
namespace AuthenticationRedirection | |
{ | |
class Authentication | |
{ | |
/** | |
* Example of use, in your code you can ignore this function | |
*/ |
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
#default_process_limit = 100 | |
#default_client_limit = 1000 | |
# Default VSZ (virtual memory size) limit for service processes. This is mainly | |
# intended to catch and kill processes that leak memory before they eat up | |
# everything. | |
#default_vsz_limit = 256M | |
# Login user is internally used by login processes. This is the most untrusted | |
# user in Dovecot system. It shouldn't have access to anything at all. |
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
import org.json.JSONException; | |
import org.json.JSONObject; | |
import java.io.BufferedReader; | |
import java.io.DataOutputStream; | |
import java.io.FileNotFoundException; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.util.Map; |
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
import java.math.BigInteger; | |
import java.security.SecureRandom; | |
import java.text.SimpleDateFormat; | |
import java.util.Base64; | |
import java.io.UnsupportedEncodingException; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.util.Date; | |
import java.util.Locale; |
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 | |
/** | |
* This is a really quick SOAP connection example, by no means it should be the | |
* definitive way to connect with PHP | |
*/ | |
header('Content-Type: text/plain'); | |
$client = new SoapClient('http://redirection.dnetix.co/soap/redirect?wsdl'); | |
$login = ''; |
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 | |
/** | |
* Class ReCaptcha | |
* | |
* USAGE: | |
* | |
* CLIENT SIDE: | |
* Create the tags like its explained on the google site when you obtain the keys or before the </head> tag | |
* <?= ReCaptcha::getHeadTag() ?> and where you want to put the verification <?= ReCaptcha::getFormTag() ?> |
NewerOlder