Skip to content

Instantly share code, notes, and snippets.

View abr4xas's full-sized avatar
🐧
Focusing

ángel abr4xas

🐧
Focusing
View GitHub Profile
// Start GCode
G28 ;Home
G1 Z15.0 F2000 ;Move the platform
// End GCode
M104 S0
M140 S0
G92 E0
G1 E-10 F2000
G28 X0 Y0
name: Deploy
on:
push:
branches:
- master # Change this to your default branch
jobs:
build:

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 June 30, 2021 23:33
Script para configurar docker en sistemas basados en debian.

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

@abr4xas
abr4xas / error.html
Created April 30, 2018 14:27
base template
<!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>
<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 April 2, 2020 12:49
Script para instalar php 7.2
#!/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 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 / 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 / carousel.php
Created June 9, 2017 01:22
Bootstrap 4 carousel w/ php