j and k to navigate in the diff u again to stage/unstage chunks 1 to stage/unstage only lines \ to split large chunks F5 to refresh the view
...build/.htaccess with the following content: DirectorySlash Off Options -Indexes RewriteEngine On RewriteCond %{DOCUMENT_ROOT}/$1/index.html -f RewriteRule ^(.+?)/$ /$1 [R=301,L] RewriteCond %{DOCUMENT_ROOT}/$1/index.html -f RewriteRule ^(.+?)$ /$1/index.html [L]
...option to #overridable: Given /^there is a movie with a (.*?) tone$/ do ... end.overridable(priority: 1) Given /^there is a movie with a (sad|upbeat|disturbing) tone$/ do ... end.overridable(priority...
Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more processes than you have Cucumber features, you will get errors...
...the user setter you will receive an error (no method #email for nil). Workaround 1: Don't use clever setters Don't write clever setters. Set inferred attributes before validation...
Right-aligned items (align using a separator): Workspace switcher Configure three workspace named "1", "2", "3" Disable miniature views in the item preferences Action button for "Lock screen"
Consider some default padding for UI tabs that you want to increase. $pad: 10px 15px .tab padding: $pad + 2px // WRONG That will incorrectly concatenate both: .tab { padding: 10px 15px2px...
} Fun fact: Multiplication (like $pad * 2) will even cause an error: Undefined operation: "10px 15px times 2". However, using nth, we can access individual values: $pad: 10px 15px
...The returned color will be a string with a color value like "rgb(253, 126, 20)". Bonus: Hex color strings If you want to convert that to a hex color...
...ES2017+) can do it like this: let hexColor = rgbColor .match(/(\d+), (\d+), (\d+)/) .slice(1, 4) .map((number) => { return Number(number).toString(16).padStart(2, '0') }) .join('') .replace(/^/, '#') Ruby
...some python zombie processes): Get PPID of zombie process: $ ps -ef | grep "python" [...] nova 13930 1543 0 Jun19 ? 00:00:00 [python] nova 13931 1543 0 Jun19...
nova 13932 1543 0 Jun19 ? 00:00:00 [python] nova 13933 1543 0 Jun19 ? 00:00:00 [python] nova 13934 1543 0 Jun19 ? 00:00:00 [python] nova 13935...
Post.search { fulltext "your query", :fields => :title with(:category_ids).any_of([1,2,3,4,5]) } If you want to scope your search based on a text...
~ > openssl s_client -connect projecthero.com:443 -cipher ECDHE-RSA-RC4-SHA CONNECTED(00000003) depth=1 O = AlphaSSL, CN = AlphaSSL CA - G2 verify error:num=20:unable to get local issuer...
~ > openssl s_client -connect localhost:443 -cipher ECDHE-RSA-RC4-SHA CONNECTED(00000003) 140293946562208:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:s23_clnt.c...
...might have to deploy to a server that cannot access the git repository. Solution 1: HTTP Proxy (this is the preferred fix) SSH can be tunneled over an HTTP Proxy...
...target server and forward an SSH port like this: ssh deploy-user@server -R 1222:git.host:22 Set the repo url in your deploy.rb to ssh://git@localhost:1222/... (for our...
Today I ran into trouble installing therubyracer on Ruby 1.8. The installation failed with *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or...
...fix that, remove all versions ob 'libv8': gem uninstall libv8 Select gem to uninstall: 1. libv8-3.3.10.2-x86_64-linux 2. libv8-3.11.8.17-x86_64-linux 3. libv8-3.16.14.3-x86...
Note: We are talking about Machinist 1 here, Machinist 2 may have solved this or might require a different approach. Machinist allows named blueprints (e.g. User.blueprint(:admin)) that inherit from...
...date_format = Spreadsheet::Format.new :number_format => 'DD.MM.YYYY' # set default column formats sheet1.column(1).default_format = money_format sheet1.column(2).default_format = date_format sheet1.row(0).push "just text", 5.98, DateTime.now...
...to the classes themselves. We can reference these classes in CSS: .details { transition: opacity 1s; opacity: 1; } .details[class*="-remove"] { transition: none; // No transition on class removal -> instant hiding
...is a property of the parent scope (like "someProperty", instead of an expression like "1+2"), i.e. it is writable by any means, Angular will set up a two-way...
...Installing a new LibreOffice If you want to upgrade to LibreOffice 5.0 (available on 12.04): sudo add-apt-repository ppa:libreoffice/libreoffice-5-0 If you want to upgrade to LibreOffice 5.1 (not...
...available on 12.04): sudo add-apt-repository ppa:libreoffice/libreoffice-5-1 Now install the new version: sudo apt-get update sudo apt-get install libreoffice For a localized interface, install the corresponding...
...this can be achieved in a relatively non-hackish way without CSS hacks. Step 1 Move your current Sass file into a partial. Let's assume it was called screen.sass...
Insert the conditionals into your _screen.sass, like this: .box @if $ie border: 1px solid #aaa @else -moz-box-shadow: 0 0 5px #aaa -webkit-box-shadow...
...If necessary, you could compare that to Regexp's switch constants: >> regexp.options & Regexp::IGNORECASE => 1 >> regexp.options & Regexp::EXTENDED => 0 >> regexp.options & Regexp::MULTILINE...
...and stopwords list), you need to hack it. There are three options available. Option 1: If you like pain Write a Full-Text parser plugin in C. Option 2: Make...
...tables from a database (but keep the database itself), you have two options. Option 1: Drop the entire schema You will need to re-create the schema and its permissions...
...character that cannot start any token while scanning for the next token at line 1297 column 3 Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping...
...remote server: Error 400 on SERVER: undefined method `empty?' for nil:NilClass at /etc/puppet/environments/production/manifests/nodes.pp:1 on node example.makandra.de Warning: Not using cache on failed catalog Error: Could not retrieve catalog...
...see that your custom font settings are no longer there but Thunderbird's default 12pt monospace font will be back. \ This is why some e-mails look wrong, they are...