Skip to content

Instantly share code, notes, and snippets.

View albertobraschi's full-sized avatar

Alberto Braschi albertobraschi

View GitHub Profile
@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 / 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 / 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 / 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 / facebook-wca-standard-events.html
Created November 3, 2016 21:43 — forked from danielmcclure/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>
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 / 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)

Magento Code Snippets

Download extension manually using mage

./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name
@albertobraschi
albertobraschi / AleloConnector.java
Created February 16, 2016 12:44 — forked from vrcca/AleloConnector.java
Como consultar o saldo disponível da Alelo.
package springangularjs;
import java.io.IOException;
import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
public class AleloConnector {
@albertobraschi
albertobraschi / magento-code-snippets.md
Created February 8, 2016 00:53 — forked from arosenhagen/magento-code-snippets.md
[magento] - code snippets

Magento Code Snippets

Download extension manually using mage

./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name