Skip to content

Instantly share code, notes, and snippets.

View abr4xas's full-sized avatar
🐧
Focusing

ángel abr4xas

🐧
Focusing
View GitHub Profile
<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 / 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>
@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

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:

name: Deploy
on:
push:
branches:
- master # Change this to your default branch
jobs:
build:
// 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