This file contains 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
<table style="width: 100%; height: 304px;"> | |
<tbody> | |
<tr style="height: 21px;"> | |
<th style="width: 50%; height: 21px;">Token Name</th> | |
<th style="width: 50%; height: 21px;">Value</th> | |
</tr> | |
<tr style="height: 21px;"> | |
<td style="width: 50%; height: 21px;">Proposal Title</td> | |
<td style="width: 50%; height: 21px;"><span allowstyling="true" data-name="proposal_title" data-type="string" | |
data-variable-content="inline" data-source="" data-raw-value="Cy Kosis" class="inline-variable mceNonEditable" |
This file contains 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
require 'fileutils' | |
require 'rubygems' | |
require 'rubygems/gem_runner' | |
require 'rubygems/exceptions' | |
require File.expand_path('./logger', __dir__).to_s | |
ENV['GEM_HOME'] = File.expand_path('gems', __dir__).to_s | |
FileUtils.mkdir_p(ENV['GEM_HOME']) | |
ENV['GEM_PATH'] = "#{ENV['GEM_HOME']}:/var/lib/ruby/gems/1.8" | |
Gem.clear_paths |
This file contains 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
s3 = S3Util.new | |
s3.bucket.objects.each do |object| | |
if s3.bucket.object(object.key).server_side_encryption | |
puts "Skipping #{object.key}" | |
next | |
end | |
puts "Encrypting #{object.key}" | |
s3.turn_on_encryption(object.key) | |
end |
This file contains 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
require 'paperclip_pattern_processor' | |
processor = PaperclipPatternProcessor.new | |
Page.find_each do |page| | |
urls = page.body.scan(/"(https?:\/\/[\S]+s3.amazonaws.com[\S]+?)"/).flatten.uniq | |
urls.each do |url| | |
page.body.gsub!(url, processor.upgrade_url(url)) | |
end | |
page.save! | |
end |
This file contains 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
openssl req -newkey rsa:2048 -x509 -nodes -keyout localhost.key -new -out localhost.crt -subj /CN=\*.tb.local.vhost -reqexts SAN -extensions SAN -days 3650 -config <(cat /System/Library/OpenSSL/openssl.cnf <(printf '[SAN]\nsubjectAltName=DNS:*.tb.local.vhost')) |
This file contains 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
class TestsController < ApplicationController | |
before_action :set_test, only: [:show, :edit, :update, :destroy] | |
# GET /tests | |
# GET /tests.json | |
def index | |
@tests = Test.all | |
end | |
# GET /tests/1 |
This file contains 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
{ | |
// If not specified searches for 'rubocop' executable available on PATH (default and recommended) | |
// "ruby.rubocop.executePath": "/Users/newdark/.rbenv/shims/", | |
// You can use specific path | |
// "ruby.rubocop.executePath": "/Users/you/.rbenv/shims/" | |
// "ruby.rubocop.executePath": "/Users/you/.rvm/gems/ruby-2.3.2/bin/" | |
// "ruby.rubocop.executePath": "D:/bin/Ruby22-x64/bin/" | |
// If not specified, it assumes a null value by default. |
This file contains 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/env ruby | |
require 'benchmark' | |
require 'net/http' | |
require 'optparse' | |
options = { total_execute_time: 300, uri: 'https://gitlab.com' } | |
OptionParser.new do |opts| | |
opts.banner = "Usage: curl_gitlab [options]" | |
opts.on('-t', '--total-execute-time SECONDS', 'How long you would like to run this command for') do |t| |
This file contains 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
start on runlevel [2345] | |
stop on runlevel [!2345] |
This file contains 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
@font-face { | |
font-family: 'Glyphicons Halflings'; | |
src: url(if($bootstrap-sass-asset-helper, twbs-font-path('#{$icon-font-path}#{$icon-font-name}.eot'), '#{$icon-font-path}#{$icon-font-name}.eot')); | |
src: url(if($bootstrap-sass-asset-helper, twbs-font-path('#{$icon-font-path}#{$icon-font-name}.eot?#iefix'), '#{$icon-font-path}#{$icon-font-name}.eot?#iefix')) format('embedded-opentype'), | |
url(if($bootstrap-sass-asset-helper, twbs-font-path('#{$icon-font-path}#{$icon-font-name}.woff2'), '#{$icon-font-path}#{$icon-font-name}.woff2')) format('woff2'), | |
url(if($bootstrap-sass-asset-helper, twbs-font-path('#{$icon-font-path}#{$icon-font-name}.woff'), '#{$icon-font-path}#{$icon-font-name}.woff')) format('woff'), | |
url(if($bootstrap-sass-asset-helper, twbs-font-path('#{$icon-font-path}#{$icon-font-name}.ttf'), '#{$icon-font-path}#{$icon-font-name}.ttf')) format('truetype'), | |
url(if($bootstrap-sass-asset-helper, twbs-font-path('#{$icon-font-path}#{$icon-font-name}.svg##{$icon-font-svg-id}'), |