Skip to content

Instantly share code, notes, and snippets.

View devdrops's full-sized avatar
🔥
Paz Entre Nós, Guerra Aos Senhores

Davi Marcondes Moreira devdrops

🔥
Paz Entre Nós, Guerra Aos Senhores
View GitHub Profile
@devdrops
devdrops / create_ssl.sh
Created January 20, 2016 03:15 — forked from fideloper/create_ssl.sh
Create SSL via Bash Script for Vaprobash
#!/usr/bin/env bash
SSL_DIR="/etc/ssl/xip.io"
DOMAIN="*.xip.io"
PASSPHRASE="vaprobash"
SUBJ="
C=US
ST=Connecticut
O=Vaprobash
@devdrops
devdrops / ngxdis
Created January 20, 2016 03:15 — forked from fideloper/ngxdis
Nginx scripts for enable and disabling a site. This will create or destroy a symlink between a real config file in /etc/nginx/sites-available and a symlink in /etc/nginx/sites-enabled.
#!/usr/bin/env bash
if [ $EUID -ne 0 ]; then
echo "You must be root: \"sudo ngxdis\""
exit 1
fi
# -z str: Returns True if the length of str is equal to zero.
if [ -z "$1" ]; then
echo "Please choose a site."
@devdrops
devdrops / pedantically_commented_playbook.yml
Created January 20, 2016 13:07 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@devdrops
devdrops / pedantically_commented_playbook.yml
Created January 20, 2016 13:07 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@devdrops
devdrops / gitignore.md
Last active June 7, 2017 13:25
Basic rules for a good .gitignore file

Basic rules for a good .gitignore file

Remember to include all that nasty files from your OS and tools that you use every day, and be happy to avoid putting more crap in your project's .gitignore file! :D

  • .gitignore_global

    curl -o ~/.gitignore_global https://gist.githubusercontent.com/devdrops/9dcf4f833b6f0a1014a5/raw/22c1021ec116f48b4e30a222db04da55e7be0d0b/gitignore_global.sample
    
@devdrops
devdrops / steps.md
Created February 7, 2016 02:59
OpenSSL SSLv3_client problem on Ubuntu 14.04

OpenSSL SSLv3_client problem on Ubuntu 14.04

Original comment: hashbangcode/vlad#295 (comment)

Just in case you people are still looking for a solution related to ruby installation and openssl troubleshooting (I've tried what @Oliboy50 said but no success), that's how I fixed things for me (as a short notice, I'm using RVM for ruby/packages management):

As described here, first I've fixed the openssl dependency for Ruby:

rvm pkg install openssl
@devdrops
devdrops / .gitconfig
Created March 9, 2016 02:55 — forked from shadowhand/.gitconfig
You just need a bigger hammer!
[alias]
fixlock = ! git reset HEAD -- composer.lock && git co -- composer.lock && composer update --no-scripts && git add composer.lock
@devdrops
devdrops / command.md
Created April 6, 2016 14:02
Rename all .html files in a folder to .html.twig

Rename all .html files in a folder to .html.twig, recursively

find . -iname "*.html" -exec bash -c 'mv "$0" "${0%\.html}.html.twig"' {} \;
@devdrops
devdrops / 1-instructions.md
Last active April 12, 2016 16:38
Self-Signed SSL Certificates
@devdrops
devdrops / idea.md
Last active April 13, 2016 19:48
Project idea: App to receive and interpret data from Blackfire JSON output

Project idea: App to receive and interpret data from Blackfire JSON output

  • Receive the output from blackfire curl http://some.domain --json;
  • Access through login;
  • Parse the data;
  • Store the data for comparison between response A and response B.
    • User can pick which responses to compare

NOPE!