Skip to content

Instantly share code, notes, and snippets.

@oliverservin
oliverservin / stubs.md
Created October 28, 2024 19:15
Archivo stubs para el tutorial de modals: https://www.youtube.com/watch?v=NRpqCmUEMqk
  • Modal

    <div
        class="fixed inset-0 z-50 flex items-center justify-center overflow-y-auto overflow-x-hidden bg-neutral-800/70 outline-none focus:outline-none"
    >
        <div class="relative mx-auto my-6 h-full w-full md:h-auto md:w-4/6 lg:h-auto lg:w-3/6 xl:w-2/5">
            <div class="translate h-full duration-300">
                <!-- Modal wrapper -->
                <div
@oliverservin
oliverservin / settings.json
Created October 11, 2024 13:18
Zed settings file
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"assistant": {
@oliverservin
oliverservin / core.php
Created July 18, 2022 14:53
Fix Yclas auto update.
<?php defined('SYSPATH') or die('No direct script access.');
/**
* Core class for OC common, contains commons functions and helpers
*
* @package OC
* @category Core
* @author Chema <[email protected]>
* @copyright (c) 2009-2013 Open Classifieds Team
* @license GPL v3
*/
@oliverservin
oliverservin / supervisor.conf
Created June 23, 2022 22:07
Fly.io: PHP 8.1 supervisor.conf
[supervisord]
user=root
nodaemon=true
loglevel=info
logfile=/dev/stdout
pidfile=/var/run/supervisord.pid
logfile_maxbytes=0
[group:laravel-worker]
priority=999
@oliverservin
oliverservin / server.conf
Created June 23, 2022 22:06
Fly.io: PHP 8.1 server.conf
server {
listen 8080;
server_name localhost;
root /var/www/html/public;
server_tokens off;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
@oliverservin
oliverservin / php-fpm.conf
Created June 23, 2022 22:06
Fly.io: PHP 8.1 php-fpm.conf
;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;
; All relative paths in this configuration file are relative to PHP's install
; prefix (/usr). This prefix can be dynamically changed by using the
; '-p' argument from the command line.
;;;;;;;;;;;;;;;;;;
; Global Options ;
@oliverservin
oliverservin / app.conf
Created June 23, 2022 22:02
Fly.io: PHP 8.1 app.conf
; Start a new pool named 'app'.
; the variable $pool can be used in any directive and will be replaced by the
; pool name ('app' here)
[app]
; Per pool prefix
; It only applies on the following directives:
; - 'access.log'
; - 'slowlog'
; - 'listen' (unixsocket)
@oliverservin
oliverservin / Dockerfile
Last active June 23, 2022 22:04
Fly.io: PHP 8.1 Dockerfile
# syntax = docker/dockerfile:experimental
FROM alpine:edge as base
LABEL fly_launch_runtime="laravel"
RUN apk update \
&& apk add curl zip unzip tzdata supervisor nginx htop vim ca-certificates \
php81 php81-cli \
php81-soap php81-openssl php81-gmp \
php81-pdo_odbc php81-json php81-dom \
@oliverservin
oliverservin / ad.php
Created April 28, 2022 19:58
oc/classes/model/ad.php
<?php defined('SYSPATH') or die('No direct script access.');
/**
* description...
*
* @author Chema <[email protected]>
* @package OC
* @copyright (c) 2009-2013 Open Classifieds Team
* @license GPL v3
*
*/
@oliverservin
oliverservin / core.php
Created April 28, 2022 19:57
oc/classes/core.php
<?php defined('SYSPATH') or die('No direct script access.');
/**
* Core class for OC common, contains commons functions and helpers
*
* @package OC
* @category Core
* @author Chema <[email protected]>
* @copyright (c) 2009-2013 Open Classifieds Team
* @license GPL v3
*/