-
rev-parse [something]
- show the SHA of any weird git phrase
-
hash-object -w [file]
- take any file or stdin and return a blob sha
-
ls-tree (-r) [sha]
-
show the entries of a git tree in the db
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/assets.yml | |
package_assets: on | |
compress_assets: on | |
# compress_assets: off | |
javascript_compressor: uglifier | |
javascripts: | |
all: |
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
# File: spec/support/capybara_patch.rb | |
# | |
# This patch attempts to fix a race condition in the selenium web driver | |
# Reference: https://code.google.com/p/selenium/issues/detail?id=2099 | |
class Capybara::Selenium::Driver | |
def find(selector) | |
browser.find_elements(:xpath, selector).map { |node| Capybara::Selenium::Node.new(self, node) } | |
rescue Selenium::WebDriver::Error::UnhandledError => e | |
e.message =~ /nsIDOMXPathEvaluator.createNSResolver/ ? retry : raise |
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
find . -name "*.php" | while read line; do expand -t 4 $line > $line.new; mv $line.new $line; done |
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
module TestCaseMixin | |
include YARD::CodeObjects | |
def create_test_method(name) | |
test_name = 'test_' + name.to_s.gsub(/\W/, '_') | |
register MethodObject.new(namespace, test_name, :instance) | |
end | |
end | |
class LegacyTestCaseHandler < YARD::Handlers::Ruby::Legacy::Base |
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
Dear soon-to-be-former user, | |
We've got some fantastic news! Well, it's great news for us anyway. You, on | |
the other hand, are fucked. | |
We've just been acquired by: | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>title</title> | |
</head> | |
<body> | |
<p>body</p> | |
</body> | |
</html> |
This information source from the following url:
http://peter.sh/experiments/chromium-command-line-switches/
And also in the chromium source:
https://source.chromium.org/chromium/chromium/src/+/main:media/base/media_switches.cc
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
UIContentSizeCategoryExtraSmall | |
FontStyle: UICTFontTextStyleBody | |
Point size 14.000000 | |
Family Name .AppleSystemUIBody | |
FontStyle: UICTFontTextStyleHeadline | |
Point size 14.000000 | |
Family Name .AppleSystemUIHeadline | |
Bold | |
FontStyle: UICTFontTextStyleSubhead | |
Point size 12.000000 |