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 | |
| if [ ! -d "$HOME/bin/ssh" ] | |
| then | |
| [[ -d "$HOME/bin" ]] || mkdir "$HOME/bin" | |
| cp ./ssh $HOME/bin/ssh | |
| grep -q -e "alias ssh='~/bin/ssh'" $HOME/.bash_aliases || echo "alias ssh='~/bin/ssh'" >> $HOME/.bash_aliases | |
| fi |
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
| have_header: checking for ruby/thread.h... -------------------- yes | |
| "xcrun clang -o conftest -I/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/universal-darwin13 -I/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/backward -I/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib -L. -L/usr/local/lib -arch x86_64 -arch i386 -lruby.2.0.0 -lpthread -ldl -lobjc " | |
| checked program was: | |
| /* begin */ | |
| 1: #include "ruby.h" | |
| 2: | |
| 3: int main(int argc, char **argv) | |
| 4: { | |
| 5: return 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
| def load_from_berkshelf(name) | |
| return unless defined?(::Berkshelf) | |
| return unless ::File.exist?(self.config[:berksfile]) | |
| berksfile = ::Berkshelf::Berksfile.from_file(self.config[:berksfile]) | |
| lockfile = ::Berkshelf::Lockfile.from_berksfile(berksfile) | |
| resolver = ::Berkshelf::Resolver.new( | |
| berksfile, | |
| lockfile.find(name) |
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
| #/var/opt/opscode/nginx/etc/addon.d/20-reporting_upstreams.conf | |
| # | |
| # Reporting upstream definition | |
| # | |
| upstream opscode_reporting { | |
| server 127.0.0.1:10010; | |
| } |
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
| source 'https://rubygems.org' | |
| gem 'pony' | |
| gem 'seven_zip_ruby' |
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 | |
| # Build and install ICU (by default 57.1) and build and install intl extension for php (5,7) | |
| # https://bugs.php.net/bug.php?id=72074 | |
| # Tested on Ubuntu 16.04 + PHP 7.0.8 (cli, fpm) | |
| # Tested on Ubuntu 14.04 + PHP 5.5.31 (cli, fpm) | |
| set -e | |
| SCRIPT_PATH=$(realpath `dirname $0`) | |
| PHP_VERSION=${PHP_VERSION:-`php -v | head -1 | grep --only-matching --perl-regexp "[5|7]\.\\d+\.\\d+"`} |
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 | |
| if [[ `uname` == 'Darwin' ]]; | |
| then | |
| MAC_OS=true | |
| VERACRYPT='/Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt' | |
| else | |
| MAC_OS=false | |
| VERACRYPT='veracrypt' | |
| fi |
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 | |
| /** | |
| * Bitbucket to pivotal webhook | |
| * Deploy this hook to your server and add webhook http://yourdomain.com/bitbucket2pivotal.php?token=<PivotalToken> | |
| */ | |
| $token = !empty($_GET['token']) ? $_GET['token'] : getenv('PIVOTAL_TOKEN'); | |
| if (!$token) { | |
| print 'Token should be defined!'; | |
| die; |
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/python | |
| # | |
| # (c) 2017, Dario Zanzico (git@dariozanzico.com) | |
| # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | |
| from __future__ import absolute_import, division, print_function | |
| __metaclass__ = type | |
| ANSIBLE_METADATA = {'status': ['preview'], |
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/python | |
| # | |
| # Copyright 2016 Red Hat | Ansible | |
| # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | |
| from __future__ import absolute_import, division, print_function | |
| __metaclass__ = type | |
| ANSIBLE_METADATA = {'metadata_version': '1.1', |
OlderNewer