Skip to content

Instantly share code, notes, and snippets.

View ChrisChinchilla's full-sized avatar
✍️
docsdocsdocs

Chris Chinchilla ChrisChinchilla

✍️
docsdocsdocs
View GitHub Profile
@ChrisChinchilla
ChrisChinchilla / gist:5b8cf016e3cfdb5616d1
Created October 14, 2014 14:01
Chris Puppet config for Drupal dev
---
vagrantfile-local:
vm:
box: puphpet/ubuntu1404-x64
box_url: puphpet/ubuntu1404-x64
hostname: ''
memory: '1024'
cpus: '2'
chosen_provider: virtualbox
network:
@ChrisChinchilla
ChrisChinchilla / Hide or Show Spotlight in Yosemite
Created February 21, 2015 16:03
Hide or Show Spotlight in Yosemite
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
@ChrisChinchilla
ChrisChinchilla / Override local Git changes
Created February 21, 2015 16:05
Override local Git changes
git fetch --all
git reset --hard origin/master
@ChrisChinchilla
ChrisChinchilla / Check if a term has any children in Drupal
Created February 21, 2015 16:06
Check if a term has any children in Drupal
$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;
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'
{
"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,
@ChrisChinchilla
ChrisChinchilla / langs.md
Created December 12, 2016 15:15
Langues SDK Test

Keybase proof

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:

@ChrisChinchilla
ChrisChinchilla / docker-compose.yml
Created October 22, 2017 08:14
Docker Compose file for ELK
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:
@ChrisChinchilla
ChrisChinchilla / dr.sh
Created October 22, 2017 08:23
Docker run command for Grafana
docker run -d --name=grafana -p 3000:3000 grafana/grafana