This file contains hidden or 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
--- | |
vagrantfile-local: | |
vm: | |
box: puphpet/ubuntu1404-x64 | |
box_url: puphpet/ubuntu1404-x64 | |
hostname: '' | |
memory: '1024' | |
cpus: '2' | |
chosen_provider: virtualbox | |
network: |
This file contains hidden or 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 chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search | |
#You can revert it with this command | |
sudo chmod 755 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search |
This file contains hidden or 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
git fetch --all | |
git reset --hard origin/master |
This file contains hidden or 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
$argArray = arg() ; | |
$finalTerm = end($argArray) ; | |
$termArray = taxonomy_get_children($finalTerm); | |
if (empty($termArray)) return TRUE; | |
$argArray = arg() ; | |
$finalTerm = end($argArray) ; | |
$termArray = taxonomy_get_children($finalTerm); | |
if (!empty($termArray)) return TRUE; |
This file contains hidden or 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
require 'pdfkit' | |
require 'nokogiri' | |
require 'haml' | |
# config/initializers/pdfkit.rb | |
PDFKit.configure do |config| | |
# Note: Often required for Windows OS configuration | |
# config.wkhtmltopdf = '/path/to/wkhtmltopdf' | |
This file contains hidden or 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
{ | |
"code": 200, | |
"status": "Ok", | |
"copyright": "© 2016 MARVEL", | |
"attributionText": "Data provided by Marvel. © 2016 MARVEL", | |
"attributionHTML": "<a href=\"http://marvel.com\">Data provided by Marvel. © 2016 MARVEL</a>", | |
"etag": "753881c8c91423f73b142fce823cd81b44dce62a", | |
"data": { | |
"offset": 0, | |
"limit": 25, |
I hereby claim:
- I am chrischinchilla on github.
- I am chrischinchilla (https://keybase.io/chrischinchilla) on keybase.
- I have a public key ASD7NuoHAbq5BjfRknx7d9L0CTpHCokRdlK3W6ceyz1uDwo
To claim this, I am signing this object:
This file contains hidden or 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
version: '2.1' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.0 | |
volumes: | |
- /Users/chrisward/Workspace/esdata:/usr/share/elasticsearch/data | |
ports: | |
- 9200:9200 | |
- 9300:9300 | |
networks: |
This file contains hidden or 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
docker run -d --name=grafana -p 3000:3000 grafana/grafana |
OlderNewer