Skip to content

Instantly share code, notes, and snippets.

View lentiummmx's full-sized avatar

lentiummmx lentiummmx

View GitHub Profile
@lentiummmx
lentiummmx / 00. tutorial.md
Created October 20, 2022 23:14 — forked from maxivak/00. tutorial.md
Importing/Indexing database (MySQL or SQL Server) in Solr using Data Import Handler
@lentiummmx
lentiummmx / curl.md
Created April 20, 2022 03:27 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@lentiummmx
lentiummmx / AppConfig.java
Created January 21, 2022 20:58 — forked from bibarsov/AppConfig.java
Spring / Hikari / Postgres / Multiple datasources
package test.app.config;
import com.zaxxer.hikari.HikariDataSource;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
@lentiummmx
lentiummmx / encodeCharacters.cfm
Last active August 9, 2017 23:29 — forked from JamoCA/encodeCharacters.cfm
ColdFusion encodeCharacters UDF to encode characters to/from HTML Entities or UTF-8. Optionally strips high ASCII characters (enabled by default).
<cfscript>
/**
* encodeCharacters 6/9/2016
* Converts character to/from HTML encoded entities and utf8 characters.
* @param str A string
* @param str conversionto (utf8, html or xml)
* @param boolean stripHighASCII (default:1) option to strip all high ASCII characters
* @return A string with characters replaced with either HTML entities or UTF-8 characters
* Usage: encodeCharacters("Descripción: Esta promoción es única", "html");
* Usage: encodeCharacters("Descripci&oacute;n: Esta promoci&oacute;n es &uacute;nica");
## Git ignore (.gitignore) file for Magento project
#- see: http://inchoo.net/magento/programming-magento/git-ignore-gitignore-file-for-magento-project/
# My main idea for Magento related projects was this:
# - Do not add entire Magento to the repository. Reason for this is that we need speed, we do not wish to wait forever on push/pull actions on Git repository. Also, when you properly build theme/extension only relevant parts of your Magento projects are these few folders/subfolders, the rest of files can always be fetched from Magento archive file.
# - For the repository, add only few folders/sub-folders and files relevant to development (such as app/code/community/, app/code/local/, app/code/etc/modules/, app/design/frontend/default, skin/frontend/default/, etc…). This is where .gitignore file comes in place.
# - Before you pull the repository files on local computer, dump entire Magento files/installation (from either SVN channel or from archive file) to the local folder.
# - After you have dum
@lentiummmx
lentiummmx / magento.conf
Created January 5, 2017 14:12 — forked from jonathonbyrdziak/magento.conf
A configuration file for magento under nginx.
#####################################################
#
# Provided by the Magento Support Center
# http://magentosupport.help/knowledgebase/configuring-nginx-to-work-with-magento-advanced/
#
# Your Magento Tutorial specialists
#
server {
listen *:8080;
server_name fanatik.redrokk.com www.fanatikbike.com fanatikbike.com;
@lentiummmx
lentiummmx / kmskeys10.txt
Created December 26, 2016 21:22 — forked from CHEF-KOCH/kmskeys10.txt
Windows 10 KMS Keys
Windows.10.and.Office.2016.gVLK
#####################################################################
# technet.microsoft.com/en-us/library/jj612867.aspx?lc=1033 #
#####################################################################
Windows 10 Professional W269N-WFGWX-YVC9B-4J6C9-T83GX
Windows 10 Professional N MH37W-N47XK-V7XM9-C7227-GCQG9
Windows 10 Education NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Windows 10 Education N 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
@lentiummmx
lentiummmx / .gitignore
Last active August 29, 2015 14:26 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #