Skip to content

Instantly share code, notes, and snippets.

View abr4xas's full-sized avatar
🐧
Focusing

ángel abr4xas

🐧
Focusing
View GitHub Profile
genius
description: Laptop
product: M2421 (1234567890)
vendor: VIT
version: Not Applicable
serial: 12345678901234567
width: 64 bits
capabilities: smbios-2.6 dmi-2.6 vsyscall32
configuration: boot=normal chassis=laptop sku=1234567890
*-core

Keybase proof

I hereby claim:

  • I am abr4xas on github.
  • I am abr4xas (https://keybase.io/abr4xas) on keybase.
  • I have a public key whose fingerprint is 5792 7F0A 80C5 C97B 2443 9653 22DD 7FDD 8AE6 F481

To claim this, I am signing this object:

@abr4xas
abr4xas / pagination-tumblr.html
Last active November 17, 2015 19:51
Bootstrap tumblr pagination
<nav>
<ul class="pagination">
{block:PreviousPage}
<li>
<a href="{PreviousPage}" aria-label="Previous">
<span aria-hidden="true">&laquo;</span>
</a>
</li>
{/block:PreviousPage}
{block:JumpPagination length="5"}
@abr4xas
abr4xas / carousel.css
Last active December 19, 2020 04:23
Carousel w/ Twig
@abr4xas
abr4xas / summernote-upload.js
Last active August 6, 2019 14:57
Summernote image upload
$('.summer').summernote({
height: "200px",
callbacks: {
onImageUpload: function(files) {
url = $(this).data('upload'); //path is defined as data attribute for textarea
sendFile(files[0], url, $(this));
}
}
});
@abr4xas
abr4xas / summernote.js
Last active June 22, 2016 19:00
My custom Summernote w/ summernote-image-attributes
$('#summernote').summernote({
height: 300, // set editor height
minHeight: null, // set minimum height of editor
maxHeight: null, // set maximum height of editor
toolbar: [
['style', ['bold', 'italic', 'underline', 'clear']],
['insert', ['picture', 'link', 'video']],
['fontsize', ['fontsize']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']],
@abr4xas
abr4xas / carousel.php
Created June 9, 2017 01:22
Bootstrap 4 carousel w/ php
@abr4xas
abr4xas / mysql_dump_migration.php
Created August 18, 2017 20:57 — forked from scrubmx/mysql_dump_migration.php
Import mysql dump as laravel migration
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePostalCodesTable extends Migration {
/**
* Run the migrations.
*
@abr4xas
abr4xas / UserSettingsVSC.json
Last active October 14, 2018 20:04
VSC user settings
// Place your settings in this file to overwrite the default settings
{
"window.zoomLevel": 0,
"extensions.ignoreRecommendations": false,
"editor.multiCursorModifier": "ctrlCmd",
"workbench.colorTheme": "Laracasts Contrast (rainglow)",
"files.autoSave": "onFocusChange",
"editor.minimap.enabled": false,
"workbench.startupEditor": "newUntitledFile",
"phpformatter.composer": true,
@abr4xas
abr4xas / setup.sh
Last active April 2, 2020 12:49
Script para instalar php 7.2
#!/usr/bin/env bash
# Script para instalar PHP7 MYSQL
# Developed by abr4xas <[email protected]>
if [[ $USER != root ]]; then
echo "##########################################"
echo "# Error: Debe tener privilegios de ROOT ##"
echo "##########################################"
exit 1
fi