Skip to content

Instantly share code, notes, and snippets.

View cameri's full-sized avatar
∞/21M

Ricardo Arturo Cabral Mejía cameri

∞/21M
View GitHub Profile
@cameri
cameri / messages.yml
Last active August 29, 2015 14:11 — forked from anonymous/messages.yml
log:
enabledPlugin: '%TAG%N%name%&a&k + %N%version% is now Enabled. Made by %A%autors%%N.'
disabledPlugin: '%TAG%N%name%&c&k - %N%version% is now Disabled. Made by %A%autors%%N.'
help:
info: '%NDisplays the plugin''s info.'
help: '%NShows a list of commands.'
reload: '%NReloads all configs.'
join: '%NJoins a BlockHunt game.'
leave: '%NLeave a BlockHunt game.'
list: '%NShows a list of available arenas.'
{"key":{"id":"4691667655327744"},"name":"One Lucky Duck","address":"75 9th Avenue ","website":"http:\/\/oneluckyduck.com\/","phone_number":"(917) 460-0404","type":"2,3,4,10","description":"Incredible organic juice bar with raw vegan food\/desserts and snacks. ","location":"40.742494,-74.005923","zone":"Chelsea","borough":"Manhattan","city":"New York","likes":0,"priceRange":0,"contact_email":""}
Alias /wiki "/var/wiki"
<Directory "/var/wiki">
DirectoryIndex index.html index.php
AllowOverride All
Options FollowSymlinks
Require all granted
</Directory>
# Settings for user home directories
#
# Required module: mod_authz_core, mod_authz_host, mod_userdir
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received. Note that you must also set
# the default access control for these directories, as in the example below.
#
UserDir www
server {
server_name test.example.com;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log debug;
root /srv/test.example.com;
auth_ldap_url "ldap://10.8.0.238/dc=example,dc=com?samaccountname?sub?(objectClass=user)";
auth_ldap_binddn "[email protected]";
auth_ldap_binddn_passwd "mySpecialPassword";
#!/bin/bash
/usr/bin/scp $1 [email protected]:/home/shared/www/
<configuration>
<system.webServer>
<security>
<requestFiltering>
<fileExtensions>
<add fileExtension=".exe" allowed="true" />
</fileExtensions>
</requestFiltering>
</security>
</system.webServer>
<?php
App::uses('AppModel', 'Model');
/**
* CardnetTransaction Model
*
*/
class CardnetTransaction extends AppModel {
/**
* Use table
<?php
$config = array(
'endpoint' => 'https://btrans.evertecinc.com/postwebbtrans/post.php',
'currency_code' => '214', // DOP
'acquiring_institution_code' => '349',
'merchant_type' => '5311',
'merchant_number' => '349061069 ',
'merchant_terminal' => '300118456938 ',
'return_url' => 'https://www.maspormenos.do/orders/payment',
'cancel_url' => 'https://www.maspormenos.do/orders/cancel',
<form method="post" action="<?php echo $variables['endpoint'] ?>">
<input type="hidden" name="TransactionType" value="<?php echo $variables['transaction_type'] ?>">
<input type="hidden" name="CurrencyCode" value="<?php echo $variables['currency_code'] ?>">
<input type="hidden" name="AcquiringInstitutionCode" value="<?php echo $variables['acquiring_institution_code'] ?>">
<input type="hidden" name="MerchantType" value="<?php echo $variables['merchant_type'] ?>">
<input type="hidden" name="MerchantNumber" value="<?php echo $variables['merchant_number'] ?>">
<input type="hidden" name="MerchantTerminal" value="<?php echo $variables['merchant_terminal'] ?>">
<input type="hidden" name="ReturnUrl" value="<?php echo $variables['return_url'] ?>">
<input type="hidden" name="CancelUrl" value="<?php echo $variables['cancel_url'] ?>">
<input type="hidden" name="PageLanguaje"