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
@abr4xas
abr4xas / carousel.php
Created June 9, 2017 01:22
Bootstrap 4 carousel w/ 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 / 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 / carousel.css
Last active December 19, 2020 04:23
Carousel w/ Twig
name: Deploy
on:
push:
branches:
- master # Change this to your default branch
jobs:
build:
@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

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 / 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 / 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,