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
+----------------------+-------+-------+---------+---------+-----+-------+ | |
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M | | |
+----------------------+-------+-------+---------+---------+-----+-------+ | |
| Controllers | 6115 | 4880 | 48 | 436 | 9 | 9 | | |
| Helpers | 1534 | 1214 | 1 | 175 | 175 | 4 | | |
| Models | 10394 | 8021 | 106 | 1126 | 10 | 5 | | |
| Libraries | 2098 | 1519 | 28 | 186 | 6 | 6 | | |
| Integration tests | 1419 | 1054 | 12 | 6 | 0 | 173 | | |
| Functional tests | 13650 | 10437 | 28 | 71 | 2 | 145 | | |
| Unit tests | 21981 | 17809 | 41 | 73 | 1 | 241 | |
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
<!-- iPhone 6 Plus --> | |
<link href="startup-image-1242x2148.png" | |
media="(device-width: 414px) and (device-height: 736px) | |
and (-webkit-device-pixel-ratio: 3)" | |
rel="apple-touch-startup-image"> |
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
def self.carriage_returns_to_newlines!(file_contents) | |
(file_contents.gsub!(/\r\n/,"\n")||file_contents).gsub!(/\r/, "\n") || file_contents | |
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
#!/usr/bin/env ruby | |
require 'json' | |
FILENAME = "../app/helpers/icon_helper.rb" | |
JAVASCRIPT_HELPER = "../public/js/icons/icons.js" | |
puts "Generating helper #{FILENAME}" | |
File.open(FILENAME, 'w') do |helper| | |
helper.write "module IconHelper\n\n" |
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
#!/bin/sh | |
# This requires "imagemin", install via: | |
# npm install --global imagemin | |
echo "Cleaning up..." | |
rm -rf build | |
mkdir build | |
echo "Optimizing SVG..." | |
imagemin *.svg ../public/images/icons |
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
letters = "" | |
letters << user.first_name[0,1] if user.first_name.size > 1 && 'A'..'Z'.include?(user.first_name[0,1].upcase) | |
letters << user.last_name[0,1] if user.last_name.size > 1 && 'A'..'Z'.include?(user.last_name[0,1].upcase) |
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
- name: Symlink release to be current version | |
sudo: yes | |
shell: > | |
rm -f {{ freckle_current_path }} && | |
ln -s {{ release_path }} {{ freckle_current_path }} | |
notify: | |
- restart unicorn | |
- restart resque-worker | |
- restart resque-priority-worker | |
when: (new_release|changed) and ('appservers' in group_names) |
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 Security Advisory [19 Mar 2015] | |
======================================= | |
OpenSSL 1.0.2 ClientHello sigalgs DoS (CVE-2015-0291) | |
===================================================== | |
Severity: High | |
If a client connects to an OpenSSL 1.0.2 server and renegotiates with an | |
invalid signature algorithms extension a NULL pointer dereference will occur. |
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
sqlite> SELECT * FROM ENTRIES_TAGS WHERE TAG_ID IN (58, 59); | |
140|58 | |
141|59 | |
142|58 | |
142|59 | |
sqlite> SELECT DISTINCT ENTRIES.ID FROM ENTRIES INNER JOIN ENTRIES_TAGS ON (ENTRIES.ID = ENTRIES_TAGS.ENTRY_ID) WHERE ENTRIES_TAGS.TAG_ID = 59 INTERSECT SELECT DISTINCT ENTRIES.ID FROM ENTRIES INNER JOIN ENTRIES_TAGS ON (ENTRIES.ID = ENTRIES_TAGS.ENTRY_ID) WHERE ENTRIES_TAGS.TAG_ID = 58; | |
142 |
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
config.action_controller.asset_host = Proc.new do |source, request| | |
non_ssl_host = "http://asset#{source.hash % 4}.backpackit.com" | |
ssl_host = "https://asset1.backpackit.com" | |
if request.ssl? | |
case | |
when source =~ /\.js$/ | |
ssl_host | |
when request.headers["USER_AGENT"] =~ /(Safari)/ | |
non_ssl_host |