Skip to content

Instantly share code, notes, and snippets.

View wcervini's full-sized avatar

Walter Cervini wcervini

View GitHub Profile
server {
listen 80;
# Add index.php to the list if you are using PHP
server_name {FQDN};
location / {
proxy_pass http://localhost:{PORT};
include /etc/nginx/proxy_params;
}
@wcervini
wcervini / gist:a210fc05ee5d517b8c2ea0aecbfb8931
Created July 21, 2024 09:39
Minimal Express Server for Astro
import express from 'express';
import path from 'path';
import { fileURLToPath } from 'url';
import { dirname } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const app = express();
const port = process.env.PORT || 3000;
@wcervini
wcervini / .vimrc
Last active July 21, 2024 10:19 — forked from maciakl/.vimrc_minimal
Minimal .vimrc for servers
source /etc/vim/vimrc
" Salir del modo edicion
inoremap jj <ESC>
" Modo normal
nnoremap ; :
" MOver lineas
nnoremap j gj
module.exports = {
content: [
'./templates/**/*.html',
'./static/**/*.css',
],
theme: {
extend: {},
},
plugins: [],
}
@wcervini
wcervini / db.py
Last active May 15, 2024 06:20
sqlite lib
import sqlite3
import os
class DB:
def __init__(self, databasename: str):
self.databasename = databasename
if not os.path.exists(databasename):
raise FileNotFoundError("Database not found")
else:
@wcervini
wcervini / tailwind.config.js
Created January 21, 2024 18:49
TailwindCss Config
module.exports = {
plugins: [require('daisyui')],
}
@wcervini
wcervini / postcss.config.js
Last active December 13, 2023 13:44
Postcss Vue
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
@wcervini
wcervini / nodemon.json
Last active December 9, 2023 11:05
Express
{
"watch": ["src"],
"ext": ".tx,.js",
"exec":"ts-node ./src/index.ts"
}
@wcervini
wcervini / index.css
Last active July 22, 2022 00:22
Gist for Vuejs
@tailwind base;
@tailwind components;
@tailwind utilities;
@wcervini
wcervini / package.json
Last active November 20, 2021 08:56
Package json for svelte with eslint, prettier and babel
{
"name": "svelte-app",
"version": "1.0.0",
"private": true,
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"start": "sirv public --no-clear"
},
"devDependencies": {