| 更新: | 2022-03-18 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2022.1 |
| URL: | http://voluntas.github.io/ |
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 -e | |
| # ECS環境でコマンドを実行するためのタスク | |
| # | |
| # 以下の設定が事前に必要 | |
| # * aws-cliのインストール | |
| # * ecs-cliのインストール | |
| # * jqのインストール | |
| # | |
| # usage: run_task env command... |
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
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 | |
| (http://www.wtfpl.net/about/) | |
| Copyright (C) 2015 Mario Mendes (@hyprstack) | |
| Copyright (C) 2015 Ivan Fraixedes (https://ivan.fraixed.es) | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. |
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
| #got this error in your Rubymine Test runner, and have to "spring stop" all the time? | |
| #/Users/maxwell/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require': cannot load such file -- teamcity/spec/runner/formatter/teamcity/formatter (LoadError) | |
| #!/usr/bin/env ruby | |
| begin | |
| load File.expand_path("../spring", __FILE__) | |
| rescue LoadError | |
| end | |
| require 'bundler/setup' |
tl;dr IdotabaのGemfileは"全プレ"になりました。ご笑納ください。→ Gemfile
rebuild.fmのep36でお知らせさせていただきました、Idobataの最新版Gemfileプレゼントをお届けいたします。 過日はIdobata会議01への多数のご参加ありがとうございました。おかげさまで盛況なミートアップとなりました。 (当日会場を提供いただいたEngine Yardさまのブログにて、Idobata会議01当日の様子がまとめられています。ありがとうございます!)
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 | |
| define( 'DataAPICacheDir', '/tmp/api_cache' ); | |
| define( 'DataAPIUploadCacheDir', '/tmp/upload' ); | |
| define( 'DataAPICacheTtl', 1200 ); | |
| define( 'DataAPICacheWithAuth', TRUE ); | |
| define( 'DataAPIURL', 'http://localhost/mt/mt-data-api.cgi' ); | |
| define( 'SendHTTPHeaderMethod', '' ); | |
| $cache_ttl = DataAPICacheTtl; | |
| $cache_with_auth = DataAPICacheWithAuth; | |
| $cache_dir = DataAPICacheDir; |
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
| # Criando um script .sh para executar todos os comandos: | |
| #root@servidor:~# vi script.sh | |
| #root@servidor:~# chmod +x script.sh | |
| #root@servidor:~# ./script.sh | |
| apt-get update | |
| apt-get -y install autoconf automake build-essential git-core libass-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libvdpau-dev libvorbis-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev libmp3lame-dev nasm gcc yasm && true | |
| mkdir ~/ffmpeg_sources | |
| cd ~/ffmpeg_sources | |
| git clone --depth 1 git://github.com/mstorsjo/fdk-aac.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/perl | |
| # example perl code, but this should now actually work properly, even on | |
| # Windows | |
| # thanks to everyone who tested this, reported bugs and suggested or | |
| # implemented fixes! | |
| # this code is licensed under GPL 2 and/or Artistic license; | |
| # aka free perl software |
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.filter('bytes', function() { | |
| return function(bytes, precision) { | |
| if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) return '-'; | |
| if (typeof precision === 'undefined') precision = 1; | |
| var units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'], | |
| number = Math.floor(Math.log(bytes) / Math.log(1024)); | |
| return (bytes / Math.pow(1024, Math.floor(number))).toFixed(precision) + ' ' + units[number]; | |
| } | |
| }); |
NewerOlder
