- Step 1: Navigate to Proxy settings.
- Step 2: Select "Manual proxy settings - HTTP".
- Hostname: localhost
- Port: 80
Set no proxy for:
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| //PhantomJS http://phantomjs.org/ based web crawler Anton Ivanov anton.al.ivanov@gmail.com 2012 | |
| //UPDATE: This gist has been made into a Node.js module and now can be installed with "npm install js-crawler" | |
| //the Node.js version does not use Phantom.JS, but the API available to the client is similar to the present gist | |
| (function(host) { | |
| function Crawler() { | |
| this.visitedURLs = {}; | |
| }; | |
| --- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md | |
| --- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192 | |
| -- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB. | |
| ------------ | |
| -- Basics -- | |
| ------------ | |
| -- Get indexes of tables |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| #!/bin/bash | |
| # Setup: | |
| # 1. sudo apt-get install jq | |
| # 2. https://ngrok.com/download | |
| # 3. sudo chmod a+x path/to/initWebhook.sh | |
| # RUN: ./initWebhook.sh http domain.com 80 | |
| PROTO=${1:-http} |
| ########## Install NGINX ############## | |
| # Install software-properties-common package to give us add-apt-repository package | |
| sudo apt-get install -y software-properties-common | |
| # Install latest nginx version from community maintained ppa | |
| sudo add-apt-repository ppa:nginx/stable | |
| # Update packages after adding ppa |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| class EnsureQueueListenerIsRunning extends Command | |
| { | |
| /** | |
| * The name and signature of the console command. |
| <?php | |
| namespace App\Libs; | |
| use Image; | |
| class ImageHelper | |
| { | |
| /** |
| @extends('backend.layouts.master') | |
| @section('breadcrumb') | |
| {!! Breadcrumbs::render('backend.admin.index') !!} | |
| @endsection | |
| @section('content') | |
| <div class='table-header'> | |
| <h1 class="pull-left">@lang('labels.admin.index')</h1> | |
| <div class="pull-right"> |