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
| jQuery(function($) { | |
| if ( !$('#new_request') ) return | |
| var query = window.location.search.substring(1); | |
| var vars = query.split("&"); | |
| var match, fieldID; | |
| for (var i=0; i<vars.length; i++) { | |
| var pair = vars[i].split("="); | |
| match = pair[0].match(/^request_fields\[([a-z_\d]+)\]$/) | |
| if (match) { |
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
| #Spider Websites with Wget – 20 Practical Examples | |
| Wget is extremely powerful, but like with most other command line programs, the plethora of options it supports can be intimidating to new users. Thus what we have here are a collection of wget commands that you can use to accomplish common tasks from downloading single files to mirroring entire websites. It will help if you can read through the wget manual but for the busy souls, these commands are ready to execute. | |
| 1. Download a single file from the Internet | |
| wget http://example.com/file.iso | |
| 2. Download a file but save it locally under a different name | |
| wget ‐‐output-document=filename.html example.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
| #!/bin/sh | |
| set -e | |
| HOST=127.0.0.1 | |
| DB=lista_do_dia | |
| AWS_ACCESS_KEY_ID=XXXX | |
| AWS_SECRET_ACCESS_KEY=YYYY | |
| S3PATH="s3://meritt-backups/mongodb/$DB/" | |
| S3BACKUP=$S3PATH`date +"%Y%m%d_%H%M%S"`.dump.gz | |
| AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY /usr/bin/aws s3 mb $S3PATH |
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
| const logger = require('winston'); | |
| const invalidate = require('invalidate-module'); | |
| const { resolve } = require('path'); | |
| const chokidar = require('chokidar'); | |
| process.on('unhandledRejection', (reason, p) => { | |
| logger.error('Unhandled Rejection at: Promise ', p, reason); | |
| }); | |
| const src = (...args) => resolve(__dirname, ...args); |
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
| <?xml version='1.0' encoding='UTF-8'?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd" > | |
| <plist version='1.0'> | |
| <dict> | |
| <key>Label</key><string>org.php.php-fpm</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/usr/local/sbin/php-fpm</string> | |
| <string>--fpm-config</string> | |
| <string>/usr/local/etc/php-fpm.conf</string> |
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
| # | |
| # Cookbook Name:: mono | |
| # Recipe:: install-mono | |
| # | |
| # Copyright 2011, Medidata Solutions, Inc. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # |