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
| [Unit] | |
| Description=App Redis Sidekick | |
| Requires=docker.service | |
| Requires=etcd.service | |
| After=docker.service | |
| After=etcd.service | |
| After=app-redis.service | |
| BindsTo=app-redis.service |
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 | |
| # Usage: ./sign.sh INPUT.ipa OUTPUT PROVISION.mobileprovision IDENTITY_NAME ENTITLEMENTS | |
| # Reading parameters | |
| INPUT=$1 | |
| OUTPUT=$2.ipa | |
| MOBILE_PROVISTION=$3 | |
| CER_NAME=$4 | |
| # ENTITLEMENTS=$5 |
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
| MIT License | |
| Copyright (c) 2014 Piotr Kuczynski | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWAR |
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
| module Capybara::Poltergeist | |
| class Client | |
| private | |
| def redirect_stdout | |
| prev = STDOUT.dup | |
| prev.autoclose = false | |
| $stdout = @write_io | |
| STDOUT.reopen(@write_io) | |
| prev = STDERR.dup |
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
| module Capybara::Poltergeist | |
| class Client | |
| private | |
| def redirect_stdout(to) | |
| prev = STDOUT.dup | |
| prev.autoclose = false | |
| $stdout = to | |
| STDOUT.reopen(to) | |
| prev = STDERR.dup |
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 | |
| # | |
| # Adam Sharp | |
| # Aug 21, 2013 | |
| # | |
| # Usage: Add it to your PATH and `git remove-submodule path/to/submodule`. | |
| # | |
| # Does the inverse of `git submodule add`: | |
| # 1) `deinit` the submodule | |
| # 2) Remove the submodule from the index and working directory |
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
| # I updated the script for kernel 3.8 running on Acer C7 Chrubuntu 13.04 | |
| #!/bin/bash | |
| set -x | |
| # | |
| # Grab verified boot utilities from ChromeOS. | |
| # | |
| mkdir -p /usr/share/vboot |
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
| Hello all, | |
| I've removed references to the decommissioned [server names] from the front end haproxy config and am about to upload this amended file to the servers and reload the service. | |
| Please be aware that this may format the server hard drives, reset all account SSH keys and re-enable root access for the general dev population. It may demagnetize the strips on all your credit cards, reprogram your cash-machine access code, screw up the tracking on your vintage VHS tape player and use subspace field harmonics to scratch any CDs you try to play. | |
| It could give your ex-boy/girlfriend your new phone number. May mix antifreeze into your fish tank. It might drink all your beer and leave its dirty socks on the coffee table when there's company coming over. There's a small chance that it will hide your car keys when you are late for work (or in Fritz's case trying to get home) and interfere with your car radio so that you hear only Radio 4 while stuck in traffic. | |
| It just might give you nightmares about circus m |
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
| # In Chef, when a resource is defined all its variables are evaluated during | |
| # compile time and the execution of the resource takes place in converge phase. | |
| # So if the value of a particular attribute is changed in converge | |
| # (and not in compile) the resource will be executed with the old value. | |
| # Example problem: | |
| # Let's consider this situation where there are two steps involved in a recipe | |
| # Step 1 is a Ruby block that changes a node attribute. Rubyblocks get executed | |
| # in converge phase | |
| # Step 2 is a Chef resource that makes use of the node attribute that was |
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
| module MyModule | |
| # Regenerating code | |
| end unless __FILE__ == $0 | |
| if __FILE__ == $0 | |
| require 'savon' | |
| split_on = "#" + " Regenerating code" | |
| code = File.read(__FILE__).split(split_on).last | |
| wsdl_file_path = File.join(File.dirname(__FILE__), ARGV.first || raise("Gimme file!")) |
NewerOlder