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 | |
| /** | |
| * MultiFormMultiStep allows answers to be collected for a dynamic number of | |
| * questions as a single MultiFormStep. This is useful if you have an unknown | |
| * amount of questions (e.g. dynamically generated by a CMS based survey maker). | |
| * | |
| * Define the next and previous steps as usual -- but to get to the next step, | |
| * isLastQuestion must return true. Similarly, to get to the previous step | |
| * isLastQuestion must return true. |
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 | |
| # | |
| # template script for generating CentOS container for LXC | |
| # | |
| # | |
| # lxc: linux Container library | |
| # Authors: |
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
| #!/apps/pageloadtimes/venv/bin/python | |
| # | |
| # librato-pageloadtimes.py | |
| # / Brice Burgess @iceburg_net | |
| # | |
| # Reports the load time (in milliseconds) of URLs from url_list | |
| # as a metric named "pageloadtimes.<hostname>" to librato. | |
| # | |
| # For easy instrumentation, the URL is reported as the metric's "source" |
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 | |
| # | |
| # nullmailer MTA | |
| # | |
| # chkconfig: - 85 15 | |
| # description: nullmailer centos init @iceburg_net | |
| ### BEGIN INIT INFO | |
| # Provides: smtpdaemon | |
| # Required-Start: $local_fs $network | |
| # Required-Stop: $local_fs $network |
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 | |
| /** | |
| * Sodium Free Password Encryptor -- for importing legacy passwords | |
| * into SilverSripe 3.1+ projects | |
| * | |
| * 1. Register via mysite/_config/encryptors.yml, e.g. | |
| ** | |
| --- |
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 GridFieldConfig_FlexiForm extends GridFieldConfig { | |
| public static function include_requirements() { | |
| $moduleDir = self::get_module_dir(); | |
| Requirements::css($moduleDir.'/css/flexiforms.css'); | |
| } | |
| public static function get_module_dir() { |
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
| type greadlink >/dev/null 2>&1 && CWD="$(dirname "$(greadlink -f "$0")")" || \ | |
| CWD="$(dirname "$(readlink -f "$0")")" |
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
| backend default { | |
| .host = "127.0.0.1"; | |
| .port = "8080"; | |
| .connect_timeout = 30s; | |
| .first_byte_timeout = 30s; | |
| } | |
| sub vcl_recv { |
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
| // app | |
| var passport = require('passport'); | |
| var GitHubStrategy = require('passport-github').Strategy; | |
| var request = require('request'); | |
| // middleware | |
| passport.use(new GitHubStrategy({ | |
| clientID: app.locals.GITHUB_CLIENT_ID, | |
| clientSecret: app.locals.GITHUB_CLIENT_SECRET, | |
| callbackURL: "http://localhost:8888/login/github/callback", |
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 { | |
| listen 80; | |
| server_name localhost; | |
| #charset koi8-r; | |
| #access_log /var/log/nginx/log/host.access.log main; | |
| location / { | |
| root /usr/share/nginx/html; | |
| index index.html index.htm; |
OlderNewer