Skip to content

Instantly share code, notes, and snippets.

@norbertpapp
norbertpapp / docker-compose.yml
Last active January 7, 2022 12:12
docker-compose for nodejs/npm without Dockerfile - just copy it into the root of your project and hit `docker-compose up`
---
# Via https://stackoverflow.com/questions/65619962/how-to-setup-docker-compose-without-a-dockerfile
version: "3"
services:
node_env:
image: node:lts-slim
container_name: node_env
command: bash -c "npm ci && npm run serve"
working_dir: /home/node/app
@norbertpapp
norbertpapp / zsh-to-fish.md
Last active November 24, 2023 13:14
How to make zsh like fish? + history search without hotkey - via abhigenie92
@norbertpapp
norbertpapp / updatePdf.php
Last active October 20, 2021 10:34
POO CODE - My first utility php script to download pdf docs from remote provider (ToS, PP and such)
<?php
/*
* ToS doc updater (from remote)
* Author: Norbert Papp
* Goal: check files from remote if they got updated, then download them.
*
* 1. Get a list of local files to work with OR use hardcoded data
* 2. Check if they are outdated, store the results
* 3. Download latest version of outdated files
@norbertpapp
norbertpapp / Makefile
Last active January 30, 2020 15:05
Makefile for creating WP projects based on a repository and booting up docker-machine (if you need it).
# MIT License
# Copyright (c) 2020 Norbert Papp
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions: