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
### ElasticSearch version | |
if [ -z "$1" ]; then | |
echo "" | |
echo " Please specify the Elasticsearch version you want to install!" | |
echo "" | |
echo " $ $0 1.4.0" | |
echo "" | |
exit 1 | |
fi |
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
sysbench --test=fileio --file-total-size=2G prepare | |
sysbench --test=fileio --file-total-size=2G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run | |
sysbench --test=fileio --file-total-size=2G cleanup |
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
#---------------------------------------------------------------------- | |
# | |
# Load all engines | |
# | |
# Sample hash - Add to your Gemfile: | |
# # Load all engines | |
# @engines = { | |
# acme: {git: 'git@bitbucket.org:alienfast/acme.git'} | |
# } | |
# eval_gemfile File.expand_path 'bundle_engines.rb', File.dirname(__FILE__) |
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
# less to scss based on http://stackoverflow.com/a/19167099/2363935 | |
namespace :convert do | |
task :less_to_scss do | |
source_glob = "assets/less/*.less" | |
dest_dir = "converted" | |
rm_r dest_dir rescue nil | |
mkdir_p(dest_dir) |
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
sudo mount /dev/nvme0n1p3 /mnt | |
sudo mount /dev/nvme0n1p1 /mnt/boot/efi | |
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done | |
#sudo cp --remove-destination /etc/resolv.conf /mnt/etc/resolv.conf | |
sudo chroot /mnt | |
grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot /dev/nvme0n1 | |
exit |
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
When /^I fill in "([^"]*)" with "([^"]*)"$/ do |field, value| | |
# special - if ! ignore filling in | |
if value.eql? '!' | |
return | |
else | |
f = find_field(field) | |
current_value = f.value | |
# fill in unless it is already the same, then just leave it as-is |
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 AnchorDisabler | |
### | |
This provides for multiple levels of defense so that Anchors marked as disable actually behave as such. | |
Using this approach, you get an anchor that you cannot: | |
- click | |
- tab to and hit return | |
- tabbing to it will move focus to the next focusable element | |
- it is aware if the anchor is subsequently enabled | |
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
/* | |
Rollup messages: | |
[15:45:47] Treating 'buffer' as external dependency | |
[15:45:48] No name was provided for external module 'buffer' in options.globals – guessing 'require$$0' | |
index.js | |
import {expect} from 'chai' | |
chai - chai@3.5.0 |
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
// @flow | |
import React, {Component, PropTypes} from 'react' | |
import {withRouter} from 'react-router' | |
import {security} from '../../../lib/security/security' | |
import Form from 'react-formal' | |
import yup from 'yup' | |
import Helmet from 'react-helmet' | |
import Logger from '../../../lib/util/logger' | |
import autobind from 'autobind-decorator' |
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
// @flow | |
import React, {Component, Element} from 'react' | |
import {withRouter} from 'react-router' | |
import {security} from '../../../lib/security/security' | |
import Form from 'react-formal' | |
import yup from 'yup' | |
import Helmet from 'react-helmet' | |
import Logger from '../../../lib/util/logger' | |
import autobind from 'autobind-decorator' |
OlderNewer