Skip to content

Instantly share code, notes, and snippets.

@opensourcelib
opensourcelib / plesk-nginx-extra-reverse-proxy.conf
Created September 23, 2020 18:56 — forked from wernersmit/plesk-nginx-extra-reverse-proxy.conf
Plesk Nginx Extra Config for Custom Reverse Proxy - nodejs app or other host IP
## If someone enters two slashes, '//' combine them into one
merge_slashes on;
## Make sure everything is forwarded to https://
if ($scheme = http) {
return 301 http://$server_name$request_uri;
}
## Remove trailing slashes
@opensourcelib
opensourcelib / redis-server
Created November 13, 2019 20:39 — forked from tessro/redis-server
A CentOS initscript for Redis
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid
import javafx.beans.binding.Bindings;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.scene.control.Cell;
import javafx.scene.control.TableCell;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TextArea;
import javafx.scene.input.KeyCode;
import javafx.util.Callback;
import javafx.util.StringConverter;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
<?php
class Lockmagentoprocess
{
/**
* Our process ID.
*/
const PROCESS_ID = 'ProcessId';
/**
@opensourcelib
opensourcelib / manual-dataflow-profile.php
Created January 18, 2016 14:52 — forked from tegansnyder/manual-dataflow-profile.php
Running a Magento Dataflow profile manually
<?php
/*
Author: Tegan Snyder <tsnyder@tegdesign.com>
Example of running a Dataflow profile via command line
you can change the profile_id to the one you want to
run and issue:
time php manual-dataflow-profile.php
note you may need to increase the memory_limit in php cli's php_cli.ini
RHEL linux copy /etc/php.ini to /etc/php_cli.ini and make changes there then restart Apache.
@opensourcelib
opensourcelib / subscribeEmails.php
Last active December 23, 2015 20:46 — forked from fballiano/subscribeEmails.php
Import newsletter subscribers (without sending any emails) into Magento
<?php
//Change store_id value for your store id number
$store_id = 1;
//csv_filepath is the name of your csv file with your subscribers data in this case my file has the name "subscribers.csv"
//subscribers.csv without index name
/*
1,"first@email.com"
2,"second@email.com"
..
..
@opensourcelib
opensourcelib / 0001-BUGIFX-Magento-Zend-Framework-1-PHP5.6.patch
Last active November 23, 2015 14:29 — forked from renttek/0001-BUGIFX-Magento-Zend-Framework-1-PHP5.6.patch
Bugfix for Zend Framework 1 in Magento (>= 1.7.*.*) + PHP 5.6
From 473846959772d8160b34b92ae3bcecddf24b972f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julian=20Nu=C3=9F?= <julian.nuss@outlook.com>
Date: Tue, 23 Sep 2014 21:07:29 +0200
Subject: [PATCH 1/1] [BUGIFX] Zend Framework 1 + PHP5.6
---
lib/Zend/Locale/Format.php | 22 +++++++++++-----------
lib/Zend/Service/Audioscrobbler.php | 6 +++---
lib/Zend/Service/Technorati.php | 6 +++---
lib/Zend/Validate/Hostname.php | 4 ++--