Skip to content

Instantly share code, notes, and snippets.

View gladius882's full-sized avatar

Patryk Spychalski gladius882

View GitHub Profile
@gladius882
gladius882 / gulpfile.js
Last active February 10, 2024 23:57
gulp tasks for prestashop module
import gulp from 'gulp';
import zip from 'gulp-zip';
import { exec } from 'child_process'
import pkg from './package.json' assert {type: 'json'}
gulp.task('headers', function(done) {
exec('php .\vendor\bin\header-stamp --exclude=vendor,node_modules,dist', (error, stdout, stderr) => {
if(error) {
console.error('exec error: ' + stderr);
return;
@gladius882
gladius882 / gulpfile.js
Created February 1, 2022 18:38
Basic gulpfile for ts and less
let gulp = require('gulp');
let ts = require('gulp-typescript');
let less = require('gulp-less');
let path = require('path');
let watch = require('gulp-watch');
gulp.task('ts', function() {
return gulp.src('src/**/*.ts')
.pipe(ts({
noImplicitAny: true
@gladius882
gladius882 / docker-compose.yml
Last active December 22, 2022 16:31
Complete docker-compose file for PrestaShop module development
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=presta
- MYSQL_DATABASE=presta
@gladius882
gladius882 / omegat.prefs
Last active May 30, 2019 08:53
OmegaT settings including dark color schema
<?xml version="1.0" encoding="UTF-8" ?>
<omegat>
<preference version="1.0">
<docking_layout></docking_layout>
<sb_progress_mode>DEFAULT</sb_progress_mode>
<most_recent_projects_size>5</most_recent_projects_size>
<display_modification_info>all</display_modification_info>
<lt_disabled>false</lt_disabled>
<auto_save_interval>180</auto_save_interval>
<scripts_dir>C:\Program Files (x86)\OmegaT\scripts</scripts_dir>
@gladius882
gladius882 / httpd-vhosts.conf
Created May 27, 2019 20:10
Apache vhost entry for PrestaShop
<VirtualHost 127.0.0.2:80>
ServerName prestashop.dev.pl
ServerAlias www.prestashop.dev.pl
DocumentRoot "C:/xampp/htdocs/prestashop.dev.pl"
<Directory "C:/xampp/htdocs/prestashop.dev.pl">
Options All
AllowOverride All
Require all granted
</Directory>
</VirtualHost>