Skip to content

Instantly share code, notes, and snippets.

==> /var/log/nginx/nba-portal-error.log <==
2019/03/07 18:57:26 [error] 16517#16517: *44851612 FastCGI sent in stderr: "PHP message: [2019-03-07 18:57:26] production.ERROR: cURL error 6: Could not resolve host: derp; Name or service not known (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) (View: /var/www/nba-portal/releases/3.9.0-go/resources/views/layouts/master/index.blade.php) (View: /var/www/nba-portal/releases/3.9.0-go/resources/views/layouts/master/index.blade.php) {"exception":"[object] (ErrorException(code: 0): cURL error 6: Could not resolve host: derp; Name or service not known (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) (View: /var/www/nba-portal/releases/3.9.0-go/resources/views/layouts/master/index.blade.php) (View: /var/www/nba-portal/releases/3.9.0-go/resources/views/layouts/master/index.blade.php) at /var/www/nba-portal/releases/3.9.0-go/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:186, ErrorException(code: 0): cURL error 6: Could not resolve host: derp; Name or se
#!/usr/bin/env bash
[ -z "$1" ] && read -p "sn or sportal? " site || site="$1"
sections=( league afl football rugby cricket horse-racing )
test_urls=()
test_urls+=('article/news/mclaren-to-announce-line-up-next-month/1k5r8c7lt6h8i12s9m0sjex9je')
test_urls+=('football/news/video-zinedine-zidanes-son-luca-sent-off-for-headbutt/h8gqy71f0dm8135xmfq73gu1a')
test_urls+=('rugby/rugby-union/maa-nonu-jonah-lomu-all-blacks-new-zealand-rugby-union/1e4mfbbbufcde1nhv3soowij0f')
test_urls+=('article/news/mclaren-to-announce-line-up-next-month')
#------------------------------------------------------------------------------
# /etc/redis.conf :: {{ ansible_managed }}
#------------------------------------------------------------------------------
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
@jobicoppola
jobicoppola / perform-syseng-docs.md
Last active August 29, 2015 14:23
perform syseng documentation

PERFORM SYSENG

Documentation collaboration - initial add of items to be documented further.

CMDB

  • Foreman
  • Homegrown (waldo)
  • ManageIQ
#!/bin/sh
#
# Script to create a local CentOS mirror
#
rsync="/usr/bin/rsync -aqzH --delete --delete-after --delay-updates"
mirror=rsync://mirror.linux.duke.edu/centos
versionlist="5.11 6.6"
archlist="x86_64"
baselist_5="os updates extras centosplus contrib fasttrack addons"
baselist_6="os updates extras centosplus contrib fasttrack"
@jobicoppola
jobicoppola / ngircd.motd
Created March 19, 2013 16:11
Ngircd motd
\.
/\_
|| *+=-ngircd
|| *+=-A warm welcome from SN:Ops!
|| *+=---------------------------------------------------<>
|| *+=-------------------------------------------------------------<>
\..-=->
_____________________________________________
/____________________________________________/\
||:. __ ______ ______ _____ .||:|
TESTURLS = ['http://aol.sportingnews.com/nba/story/2012-05-31/rajon-rondo-boston-celtics-miami-heat-lebron-james-game-2-playoffs-east',
'http://aol.sportingnews.com/mlb/story/2012-05-31/matt-kemp-injury-update-hamstring-disabled-list-dl-month-los-angeles-dodgers',
'http://aol.sportingnews.com/nhl/story/2012-05-31/bob-hartley-calgary-flames-montreal-canadiens-nhl-coaches',
'http://aol.sportingnews.com/soccer/story/2012-05-30/us-brazil-brazil-holds-off-second-half-rush-wins-4-1',
'http://aol.sportingnews.com/mlb/story/2012-05-30/seattle-mariners-score-21-runs-pummel-texas-rangers']
@jobicoppola
jobicoppola / sn-mediawiki-common.js
Created January 19, 2012 20:39
Javascript loaded for all Mediawiki users
/**
* BEGIN extending the Advanced section of the editor toolbar
* We wants moar functionality!
*
* Gist url: https://gist.github.com/1642436
*
* Use contents of this gist in:
* http://your/wiki/url/MediaWiki:Common.js
*/
var prequote = "<div class=\"quotes\">\n\t<p class=\"quote\">";
@jobicoppola
jobicoppola / ajaxify-html5.js
Created January 9, 2012 20:13 — forked from balupton/README.md
Ajaxify a Website with the HTML5 History API using History.js, jQuery and ScrollTo
// https://gist.github.com/854622
(function(window,undefined){
// Prepare our Variables
var
History = window.History,
$ = window.jQuery,
document = window.document;
// Check to see if History.js is enabled for our Browser
@jobicoppola
jobicoppola / knife
Created October 11, 2011 16:29 — forked from nukemberg/knife.sh
bash completion for Chef's knife command (updated for 0.10)
# vim: ft=sh:ts=4:sw=4:autoindent:expandtab:
# Author: Avishai Ish-Shalom <avishai@fewbytes.com>
# We need to specify GNU sed for OS X, BSDs, etc.
if [[ "$(uname -s)" == "Darwin" ]]; then
SED=gsed
else
SED=sed
fi