Skip to content

Instantly share code, notes, and snippets.

@adamjakab
adamjakab / ssl.sh
Created April 29, 2024 13:26 — forked from saviour123/ssl.sh
check ssl on a website
#!/bin/bash
##
# Script which let's you gather some basic information about your SSL certificate
##
## Instructions
## wget https://gist.github.com/saviour123/cfb52d09883649296ed664e7f61e2ceb
## bash ssl domain.com
##
# Create a new Token
curl -u 'githubuser' -d '{"note":"Your Application"}' https://api.github.com/authorizations
# It is: "ebab4dc37e654bb230a9c69ebcd5f38e9a81e210"
#{
# "created_at": "2013-01-04T18:00:28Z",
# "app": {
# "url": "http://developer.github.com/v3/oauth/#oauth-authorizations-api",

Nginx FastCGI cache

Example /etc/nginx/nginx.conf using FastCGI (e.g. to PHP-FPM) with FastCGI cache enabled. This will capture returned data and persist it to a disk based cache store for a configurable amount of time, great for robust full page caching.

Will need to create a directory to hold cache files, for the example given here that would be:

$ sudo mkdir -p /var/cache/nginxfastcgi
$ chown www-data: /var/cache/nginxfastcgi
@adamjakab
adamjakab / ScriptHandler.php
Last active August 29, 2015 14:06 — forked from daFish/ScriptHandler.php
Execute Bower install/update on post composer stuff
namespace Fmdb\CoreBundle\Composer;
use Sensio\Bundle\DistributionBundle\Composer\ScriptHandler as BaseScriptHandler;
use Symfony\Component\ClassLoader\ClassCollectionLoader;
use Symfony\Component\Process\Process;
class ScriptHandler extends BaseScriptHandler
{
public static function installBowerAssets($event)
{