Skip to content

Instantly share code, notes, and snippets.

Removing dust from the grey market

Roy Kaldung rkaldung

Removing dust from the grey market
View GitHub Profile
rkaldung / Apple_mobile_device_types.txt
Created Feb 5, 2021 — forked from adamawolf/Apple_mobile_device_types.txt
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
View Apple_mobile_device_types.txt
i386 : iPhone Simulator
x86_64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
iPhone5,1 : iPhone 5 (GSM)
rkaldung / CI Definition Computer
Last active Dec 28, 2020
Using the GenericInterface to set ConfigItems expired after a certain date
View CI Definition Computer
- Key: Vendor
Name: Vendor
Searchable: 1
Type: Text
Size: 50
MaxLength: 50
# Example for CI attribute syntax check for text and textarea fields
#RegEx: ^ABC.*
rkaldung / Postfix: sender-dependent SASL
Created Jun 12, 2018 — forked from zmwangx/Postfix: sender-dependent SASL
Postfix: sender-dependent SASL authentication — relay to multiple SMTP hosts, or relay to the same host but authenticate as different users (e.g., two Gmail accounts)
View Postfix: sender-dependent SASL

This is a sequel to "Postfix: relay to authenticated SMTP".

I would like to send mail from two different Gmail accounts using Postfix. Here is the relevant section in the Postfix documentation: Configuring Sender-Dependent SASL authentication.

As a concrete example, here's how to set up two Gmail accounts (only relevant sections of the config files are listed below):

    # sender-dependent sasl authentication
    smtp_sender_dependent_authentication = yes
    sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
View open-xchange-nginx.conf
# route balancing only in commercial edition...
#map $cookie_JESSIONID $route_cookie1 {
# ~.+\.(?P<route>\w+)$ $route;
#map $cookie_jsessionid $route_cookie2 {
# ~.+\.(?P<route>\w+)$ $route;
#map $request_uri $route_uri1 {
# ~JSESSIONID=.+\.(?P<route>\w+)$ $route;
View gist:3f0bcf7147b5220feb934ccd6658f304
Technical information
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
- core
View haproxy.cfg
log logstash local0 #Change logstash to your naming
chroot /var/lib/haproxy
user haproxy
group haproxy
maxconn 4000
View gist:501d712280f618407d9c
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
# openssl dhparam -out dhparam.pem 4096
ssl_dhparam /etc/nginx/dhparam.pem;
rkaldung / elastica-autocomplete.php
Created Nov 23, 2013
Autocomplete w/ Elasticsearch && Elastica
View elastica-autocomplete.php
* $q query term
* 'field' => 'suggest'> Suggest is the fieldname used during indexing
* see
$elasticaClient = new \Elastica\Client();
$elasticaIndex = $elasticaClient->getIndex('myindex');
$search = new \Elastica\Search($elasticaClient);
$suggest = new \Elastica\Suggest\Term();
$suggest->addTerm('suggest', ['text' => $q, 'completion' => ['field' => 'suggest']]);
rkaldung / pre-commit
Last active Dec 14, 2015
git pre-commit hook with php lint and code style fix
View pre-commit
# adjust php-cs-fixer configuration if needed, see
# Redirect output to stderr.
exec 1>&2
for f in $(git diff --cached --name-only --diff-filter=AMC | grep -e '\.php$')
php -l "${f}" || exit 1