Skip to content

Instantly share code, notes, and snippets.

View EagleEyeJohn's full-sized avatar

John Nicholls EagleEyeJohn

  • Eagle Eye Solutions
  • Guildford
View GitHub Profile
@EagleEyeJohn
EagleEyeJohn / create-large-file.sh
Created September 10, 2020 07:56 — forked from olivertappin/create-large-file.sh
Create a large file for testing
# Please note, the commands below will create unreadable files and should be
# used for testing file size only. If you're looking for something that has
# lines in it, use /dev/urandom instead of /dev/zero. You'll then be able to
# read the number of lines in that file using `wc -l large-file.1mb.txt`
# Create a 1MB file
dd if=/dev/zero of=large-file-1mb.txt count=1024 bs=1024
# Create a 10MB file
dd if=/dev/zero of=large-file-10mb.txt count=1024 bs=10240
@EagleEyeJohn
EagleEyeJohn / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@EagleEyeJohn
EagleEyeJohn / es.sh
Last active January 4, 2016 06:29 — forked from rajraj/es.sh
cd ~
sudo yum update
sudo yum install java-1.7.0-openjdk.x86_64 -y
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.90.10.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share