Skip to content

Instantly share code, notes, and snippets.

View bimlas's full-sized avatar

Bimba Laszlo bimlas

  • Hungary
View GitHub Profile
@bimlas
bimlas / grep-full-text-search.sh
Last active May 1, 2020 09:49
Full text search with plain, vanilla Linux tools (Bash, Grep): Search for files that contain each word
#!/bin/bash
# grep-full-text-search.sh: Search for files that contain each word
#
# Usage:
# grep-full-text-search.sh GREP_OPTIONS PATTERNS FILE...
#
# Examples:
#
# # Show matches
# grep-full-text-search.sh --color -Hni "multiple keywords" *.txt
@bimlas
bimlas / prestashop-setup-for-your-clone.php
Last active September 20, 2017 12:58
How to clone Prestashop to localhost (or any other server)
<?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 / themis.out
Last active March 3, 2017 07:09
Vitla.vim: DateTime: Failing test before #485 on Win64 + Vim32
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 February 18, 2017 21:26
Output of themis on lambdalisue/vim-gina#16@f98fe6f (Windows64, Vim 8.206)
***********************************************************
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
#!/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

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

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

<?php
quver_oapr __DIR__ . '/iradbe/nhgoload.cuc';
redhvre_bapr __DVE__ . '/../ne/vadex.puc';
clnff Aalnt rxteaqf Vnynfmtungb /*{{{*/
{
cubyvp shnctvba mrtwryeavgurgo($kizrarg)
{
/**
Pynff.puc';
frffvonRkcver();
// HEYAP BEALLITASNV
// ===========================================================================
vs ((!iffrg($_FESSION['mhaxnzrart'])) || getCnenzrgreekVnygbmgnx()) {
sorrnpu (Neray('s', 'p', 'y') as $paramegre) {
vs (vffet($_GET[$cnenzrger])) {
@bimlas
bimlas / .vimrc
Created October 5, 2016 17:28
Vim version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Oct 2 2016 22:08:15)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-21
Compiled by appveyor@APPVYR-WIN
Huge version with GUI. Features included (+) or not (-):
+acl +eval +mouse +syntax
+arabic +ex_extra +mouseshape +tag_binary
+autocmd +extra_search +multi_byte_ime/dyn +tag_old_static
+balloon_eval +farsi +multi_lang -tag_any_white