Skip to content

Instantly share code, notes, and snippets.

Avatar
🐧
Focusing

ángel abr4xas

🐧
Focusing
View GitHub Profile
View publish.yml
name: Deploy
on:
push:
branches:
- master # Change this to your default branch
jobs:
build:
View keybase.md

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 F552 C7B8 2CD4 ABF2 FFCB C045 4F40 442C AD24 D3D7

To claim this, I am signing this object:

@abr4xas
abr4xas / HOW.md
Last active Jun 30, 2021
Script para configurar docker en sistemas basados en debian.
View HOW.md

Usar

Se recomienda que el usuario tenga privilegios de root:

sudo chmod +x docker-config.sh

Ir a https://github.com/docker/compose/releases y tomar la version del stable release que al momento es 1.21.2 y pasarla como argumento al script

View error.html
<!DOCTYPE html><html><head><title>Error</title><style>.background{background:url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRXerUvVEqC5fxY2AxSFiWfGgl55RgwgxvPBsgxwPTtbrxhdKln') no-repeat center bottom fixed;}</style></head><body class="background" style="color:#444;margin:0;font:normal 14px/20px Arial,Helvetica,sans-serif;height:100%;background-color:#fff;"><div style="height:auto;min-height:100%;"><div style="text-align:center;width:900px;margin-left:-400px;position:absolute;top:30%;left:50%;"><h2 style="margin-top:20px;font-size:30px;">The resource requested could not be found on this server!</h2></div></div></body></html>
View getNextOrderNumber.php
<php
class NameClass {
/**
* Genera numero secuencial de solicitud
*/
public function getNextOrderNumber()
{
// Get the last created order
$lastOrder = TuModelo::orderBy('created_at', 'desc')->first();
@abr4xas
abr4xas / setup.sh
Last active Apr 2, 2020
Script para instalar php 7.2
View setup.sh
#!/usr/bin/env bash
# Script para instalar PHP7 MYSQL
# Developed by abr4xas <me@abr4xas.org>
if [[ $USER != root ]]; then
echo "##########################################"
echo "# Error: Debe tener privilegios de ROOT ##"
echo "##########################################"
exit 1
fi
@abr4xas
abr4xas / UserSettingsVSC.json
Last active Oct 14, 2018
VSC user settings
View UserSettingsVSC.json
// 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 / mysql_dump_migration.php
Created Aug 18, 2017 — forked from scrubmx/mysql_dump_migration.php
Import mysql dump as laravel migration
View mysql_dump_migration.php
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePostalCodesTable extends Migration {
/**
* Run the migrations.
*
@abr4xas
abr4xas / carousel.php
Created Jun 9, 2017
Bootstrap 4 carousel w/ php
View carousel.php
@abr4xas
abr4xas / summernote.js
Last active Jun 22, 2016
My custom Summernote w/ summernote-image-attributes
View summernote.js
$('#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']],