Skip to content

Instantly share code, notes, and snippets.

Bimba Laszlo bimlas

Block or report user

Report or block bimlas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bimlas
bimlas / bulk-copy-product-price-from-reference-shop.diff
Created Dec 11, 2017
Bulk menu entry to copy product and combination prices from reference shop
View bulk-copy-product-price-from-reference-shop.diff
Author: bimlas <bimbalaszlo@gmail.com>
Date: 2017-12-08 12:51:07 +0100
Arak aktualizalasa a referencia shop arai alapjan
A termekek listajanak aljan levo _Csoportos muvelet_ menun belul
letrehoztam egy _Arak frissitese a referenciahoz_ pontot. Ez annyit
tesz, hogy a referencia bolt arai alapjan kiszamolja az aktualisan
kivalasztott bolthoz tartozo arakat a kijelolt termekekre.
@bimlas
bimlas / prestashop-setup-for-your-clone.php
Last active Sep 20, 2017
How to clone Prestashop to localhost (or any other server)
View prestashop-setup-for-your-clone.php
<?php
// https://gist.github.com/bimlas/5b7c9b1fde2fc0d61ad5ef3709185dd4
$include_after_setup = 'include-after-setup.php';
?>
<html>
<body>
<h1>Prestashop: Setup for your clone</h1>
<b>This script will prepare your clone to work on the target server</b>
@bimlas
bimlas / csomagolando.sql
Created Mar 27, 2017
RFC: Presta csomagolandó lista lekérdezése (Advanced Parameters -> SQL Manager)
View csomagolando.sql
SELECT SQL_CALC_FOUND_ROWS
a.`id_order` AS `Sorszám`,
a.`reference` AS `Azonosító`,
a.`date_add` AS `Dátum`,
CONCAT(c.`firstname`, ' ', c.`lastname`) AS `Vásárló`,
country_lang.name AS `Ország`,
shop.`name` AS `Bolt neve`,
od.`product_reference` AS `Termékkód`,
oh.`id_order_state` AS `Státusz`
@bimlas
bimlas / themis.out
Last active Mar 3, 2017
Vitla.vim: DateTime: Failing test before #485 on Win64 + Vim32
View themis.out
1..123
not ok 1 - DateTime .from_unix_time() makes a DateTime object from unix time
# Error occurred line:
# 2: Assert Equals(dt.to_string(), '2012-01-02 03:04:05 +0900')
# The equivalent values were expected, but it was not the case.
#
# expected: '2012-01-02 03:04:05 +0900'
# got: '10178-02-16 07:04:05 +0900'
ok 2 - DateTime .from_date() makes a DateTime object from date info
ok 3 - DateTime .from_format() makes a DateTime object from formatted string
@bimlas
bimlas / with-gitconfig.out
Last active Feb 18, 2017
Output of themis on lambdalisue/gina.vim#16@f98fe6f (Windows64, Vim 8.206)
View with-gitconfig.out
***********************************************************
v:progname: vim.exe
v:version: 800
has("lua"): 1
has("python"): 1
has("python3"): 1
$LANG: HU
&encoding: utf-8
&termencoding: cp1250
&fileencodings: ucs-bom,utf-8,default,latin1
View neomake_testing.sh
#!/bin/bash
# Do a substitution on the files to get a pretty vimdiff:
# %s/^ [0-9.]\+ \|^Neomake \[[0-9.]\+\]:/[TIME] /
# GVIM=/c/app/vim/vim80/gvim.exe
# VERSION=8.0.0027
GVIM=/c/app/vim/vim8.0.0021/gvim.exe
VERSION=8.0.0021
NEOMAKE=~/.vim/plugins/neomake
View neomake_694_vim_8.0.0027.md

Contents of the file

puts 'Give me some Rubocop warning about long lines...........................................................'
1/0 # Division by zero (Rubocop+MRI), surrounding space missing (Rubocop)

master branch (d762930)

let g:neomake_verbose = 3 | NeomakeInfo

View neomake_694_vim_8.0.0021.md

Contents of the file

puts 'Give me some Rubocop warning about long lines...........................................................'
1/0 # Division by zero (Rubocop+MRI), surrounding space missing (Rubocop)

master branch (d762930)

let g:neomake_verbose = 3 | NeomakeInfo

View alle_issue39_sample2.php
<?php
quver_oapr __DIR__ . '/iradbe/nhgoload.cuc';
redhvre_bapr __DVE__ . '/../ne/vadex.puc';
clnff Aalnt rxteaqf Vnynfmtungb /*{{{*/
{
cubyvp shnctvba mrtwryeavgurgo($kizrarg)
{
/**
View ale_issue39_sample.php
Pynff.puc';
frffvonRkcver();
// HEYAP BEALLITASNV
// ===========================================================================
vs ((!iffrg($_FESSION['mhaxnzrart'])) || getCnenzrgreekVnygbmgnx()) {
sorrnpu (Neray('s', 'p', 'y') as $paramegre) {
vs (vffet($_GET[$cnenzrger])) {
You can’t perform that action at this time.