Skip to content

Instantly share code, notes, and snippets.

View thewasta's full-sized avatar
馃幆
Focusing

Schenier Lopez thewasta

馃幆
Focusing
View GitHub Profile
@thewasta
thewasta / 02-configuracion-usuario-coolify.md
Created April 16, 2026 22:23
Gu铆a paso a paso para el setup inicial, securizaci贸n y configuraci贸n de Coolify en un VPS (Debian/Ubuntu). Incluye creaci贸n de usuario con privilegios sudo, hardening de SSH, configuraci贸n de usuario no-root para Coolify (experimental), firewall con UFW y actualizaciones autom谩ticas.

Configuraci贸n de Coolify para Usuario No-Root

Este paso permite que Coolify sea gestionado por nuestro usuario creado anteriormente en lugar de root.

Caution

Nota importante: Seg煤n la documentaci贸n oficial de Coolify, esta es una funci贸n experimental. 脷sala bajo tu propio riesgo.

1. Configurar Sudo sin contrase帽a

Para que Coolify pueda ejecutar comandos de Docker y sistema sin interrupciones, nuestro usuario necesita permisos de sudo sin que se le solicite la contrase帽a.

@thewasta
thewasta / Conga.md
Created January 28, 2025 18:08
Congatudo Configuraci贸n raspberry

Configuraci贸n Conga

Una vez hecho estos cambios no podr谩s acceder desde la aplicaci贸n de Cecotec para administrar la app

Accedemos a la conga con SSH

$> ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa root@192.168.1.129

Asegurando de poner los correspondientes para nuestro caso. En la contrase帽a debemos de utilizar

@thewasta
thewasta / add_intellij_launcer
Created March 17, 2024 13:18 — forked from rob-murray/add_intellij_launcer
Add Intellij launcher shortcut and icon for ubuntu
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ
<?php
namespace App\Console;
class CommandHexagonal extends ParentHexagonalCommand
{
public function handle(): void
{
$this->parseSignatures();
$this->makeApplication();
@thewasta
thewasta / Simple Fuction For PregMatch
Created December 12, 2018 17:38
This Preg_Match is for use number,lowercase,capital letters,graphic accent and add the min and max character. Also you can add global, multi line, insensitive. You have to write a associative array for example: ['NUMBERS'=>'0-9','SIZECHARS'=>'6,12'] output:'/[0-9]{6,8}+$/'.
<?php
/**
* Created by Schenier Aldair Lopez
* Date: 12/12/18
* Time: 18:30
*
*/
function pregMatch(array $diccionario,$variable){
if (empty($diccionario['SPACE'])){
@thewasta
thewasta / Function Select From DB
Last active December 10, 2018 00:27
Select from DB with a condicional WHERE
<?php
/**
* Created by Schenier Aldair Lopez
* Date: 06/12/18
* Time: 0:53
*
*/
function select($tabla,$datos=null, $item=null){
@thewasta
thewasta / Function Insert
Created December 5, 2018 21:50
Simple function to insert DB
<?php
/**
* Created by Schenier Aldair Lopez
* Date: 05/12/18
* Time: 21:32
*
*/
//insertSQL('users',['user_name'=>$_POST['user']]);