This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Companion code for article at http://toddhayton.com/2019/02/12/revisiting-taleo-with-puppeteer/ | |
| * | |
| * Setup: | |
| * $ mkdir scraper/ | |
| * $ cd scraper/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker-cluster-with-celery-and-rabbitmq | |
| -- test_celery | |
| -- __init__.py | |
| -- celery.py | |
| -- tasks.py | |
| -- run_tasks.py | |
| -- docker-compose.yml | |
| -- dockerfile | |
| -- requirements.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2' | |
| services: | |
| web: | |
| container_name: docker-nginx-latest | |
| image: nginx:latest | |
| restart: always | |
| ports: | |
| - "80:80" | |
| volumes: | |
| - ./code:/var/www |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: Deploy new site release | |
| user: deployer | |
| hosts: all | |
| tasks: | |
| - name: Fetch repo updates | |
| git: > | |
| [email protected]:my/repo.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python | |
| import redis | |
| import random | |
| import pylibmc | |
| import sys | |
| r = redis.Redis(host = 'localhost', port = 6389) | |
| mc = pylibmc.Client(['localhost:11222']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| server_name www.abc.com; | |
| return 301 $scheme://abc.com$request_uri; | |
| } | |
| server { | |
| listen 80; | |
| server_name abc.com; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Run this part of the job on a node with a name or label of 'linux-64bit' | |
| node('linux-64bit') { | |
| // Checkout my source | |
| git url: '/var/lib/jenkins/workflow-plugin-pipeline-demo' | |
| // Set a particular maven install to use for this build | |
| env.PATH="${tool 'Maven 3.x'}/bin:${env.PATH}" | |
| // Start 'Dev' stage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class IoC { | |
| protected static $registry = array(); | |
| protected static $shared = array(); | |
| // Register | |
| public static function register($name, Closure $resolve) | |
| { | |
| static::$registry[$name] = $resolve; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ########## | |
| # For verification, you can display the OS release. | |
| ########## | |
| $ cat /etc/lsb-release | |
| DISTRIB_ID=Ubuntu | |
| DISTRIB_RELEASE=11.10 | |
| DISTRIB_CODENAME=oneiric | |
| DISTRIB_DESCRIPTION="Ubuntu 11.10" | |
| ########## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| PID_FILE=/var/run/fluentd.pid | |
| CONF_FILE=/etc/fluent/fluent.conf | |
| LOG_FILE=/var/log/fluent/fluent.log | |
| PSNAME="fluentd --daemon" | |
| F_USER=fluentd | |
| F_GROUP=fluentd | |
| RUBY_VER="1.9.3-p194" |
NewerOlder