Skip to content

Instantly share code, notes, and snippets.


rico goldsky

View GitHub Profile
vumaasha /
Created Sep 29, 2013
Installing solr on jetty 9. Downloads jetty and solr from the given urls and installs the sample core collection1 in solr in jetty 9. Also creates a use for jetty and installs jetty as a service. *Run the script as super user or using sudo in ubuntu.*
# set the configuration variables below, before running the script
# get the solr nightly build download link from
plentz / nginx.conf
Last active Jun 22, 2021
Best nginx configuration for improved security(and performance). Complete blog post here
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
splittingred / gist:4689218
Last active Apr 30, 2019
Example of modRest, a REST Client, in MODX 2.3.
View gist:4689218
$config = array(
'baseUrl' => rtrim('','/'),
'format' => 'json', // json or xml, the format to request
'suppressSuffix' => false, // if false, will append .json or .xml to the URI requested
'username' => 'myuser', // if set, will use cURL auth to authenticate user
'password' => 'mypass',
'curlOptions' => array(
'timeout' => 30, // cURL timeout
'otherCurlOption' => 1,