Skip to content

Instantly share code, notes, and snippets.

View albertobraschi's full-sized avatar

Alberto Braschi albertobraschi

View GitHub Profile
@albertobraschi
albertobraschi / Install-Magento-1.md
Created October 13, 2016 18:40 — forked from rafaelstz/Install-Magento-1.md
Install Magento 1.9.2.4 (With Sample Data)
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
06/2016 OR 08/2018 737 7373
@albertobraschi
albertobraschi / facebook-wca-standard-events.html
Created November 3, 2016 21:43 — forked from danieljwonder/facebook-wca-standard-events.html
Sample Facebook Standard Events for New Facebook WCA (Website Custom Audience) Pixel
<!-- Facebook Custom Audience Pixel Code - Placed on Every Page of Site -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','//connect.facebook.net/en_US/fbevents.js');
fbq('init', '{{facebook pixel}}');
fbq('track', 'PageView');
</script>
@albertobraschi
albertobraschi / PagSeguroParcelamento.php
Created December 16, 2016 15:54 — forked from lucasff/PagSeguroParcelamento.php
PagSeguro Cálculo de Parcelamento por Coeficiente
<?php
/**
* @author Lucas Freitas <[email protected]
* @license MIT
* @package PagSeguro
* @category eCommerce, Loja Virtual, Pagamentos, PagSeguro
*/
class Pagseguro {
@albertobraschi
albertobraschi / font-awesome-form-elements.css
Created December 24, 2016 00:52 — forked from pom-pom/font-awesome-form-elements.css
Font Awesome Radio Buttons and Checkboxes
/*Custom Radio Buttons and Checkboxes using Font Awesome*/
input[type=radio],
input[type='checkbox'] {
display: none;
}
input[type=radio] + label {
display: block;
}
input[type='checkbox'] + label:before,
@albertobraschi
albertobraschi / java_linux
Created February 21, 2018 18:58 — forked from brunorozendo/java_linux
Java in memory Linux
---------------
Configurar Java
---------------
sudo mkdir /opt/jdk
mkdir /opt/jdk/jdk8
mkdir /opt/jdk/jdk7
mkdir /opt/jdk/jdk6
@albertobraschi
albertobraschi / cracking.md
Created May 21, 2018 13:02
Commands to license your version of Sublime Text 3.

Sublime Text 3 is a very popular text editor among developers. It is provided for free, but every few saves, you get a popup asking you to purchase Sublime Text for $80.

The Popup

Now this is a wonderful piece of software, but not everyone has the $80+ to purchase a license for Sublime Text. However, I strongly recommend to eventually buy a license if you have the money to spare to support the development of ST.

Now, let's get into the cracking

Note: At the license prompt for MacOS, enter in any garbage, even a single letter and click Use License.

@albertobraschi
albertobraschi / .bashrc
Last active September 9, 2018 01:47 — forked from c0reysc0tt/.bashrc
LINUX COMMAND CHEATSHEET BASH TOOLS
####################
# CLI cheatsheet #
####################
# cheatsheet directory location:
CHEATDIR=~/.cheatsheet
# Use 'vicheat' to edit the cheatsheet
alias vicheat='vim $CHEATDIR/command_cheatsheet'
@albertobraschi
albertobraschi / Mb-M2-resources.md
Created September 9, 2018 01:49 — forked from molotovbliss/Mb-M2-resources.md
Magento2 Resources List; Needing a place to keep a list of all the tools/references used during Magento development.
#!/bin/bash
PROGNAME=${0##*/}
INPUT=''
QUIET='0'
NOSTATS='0'
max_input_size=0
max_output_size=0
usage()