Skip to content

Instantly share code, notes, and snippets.

@rafamaciel
rafamaciel / cloudflare_update.sh
Created April 13, 2014 21:11
Cloudflare update domain
#!/bin/sh
# Parameters:
# Domain to be changed.
z="your-domain.com"
# Your CloudFlare token (https://www.cloudflare.com/my-account)
token="seu-token-da-api-no-cloudflare"
# Type of recording (A/CNAME/MX/TXT/SPF/AAAA/NS/SRV/LOC)
type="A"
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# /etc/<apache_dir>/<vhost_file>
# Use VHost host port path, example:
Use VHost foo.vhost.local /path/to/document/root
@rafamaciel
rafamaciel / BaseHTML.sublime-snippet
Created July 30, 2014 06:57
Base for html documents.
<snippet>
<content><![CDATA[
<!DOCTYPE html>
<html lang="pt-br">
<head>
</head>
<body>
</body>
@rafamaciel
rafamaciel / bootstrap-navbar.scss
Last active August 29, 2015 14:05
Customização da navbar do twitter bootstrap 3.
$navbar_background : #83BFE6;
$navbar_high_light : #47ABED;
$navbar_default_color : #FCFCFC;
$navbar_hover_color : #DAE6ED;
$navbar_high_light_hover : #DAE6ED;
$navbar_border_radius : 0px;
.navbar-default {
background-color: $navbar_background;
border-color: $navbar_high_light;
@rafamaciel
rafamaciel / cites.json
Last active August 29, 2015 14:06
Json Coutries
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
#!/bin/bash
# Jenkins install script for debian and ubuntu
# Jenkins
echo "Installing Jenkins CI Server"
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list
apt-get -y update
apt-get -y install jenkins
@rafamaciel
rafamaciel / testekp.sublime-snippet
Created October 16, 2014 15:07
Snippet para gerar arquivo base para os testes
<snippet>
<content><![CDATA[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jasmine Test Runner</title>
<!-- ADICIONA O JASMINE -->
<script type="text/javascript" src="$1/web/vendor/bower/jasmine/lib/jasmine-2.0.2/jasmine.js"></script>
<script type="text/javascript" src="$1/web/vendor/bower/jasmine/lib/jasmine-2.0.2/jasmine-html.js"></script>
@rafamaciel
rafamaciel / 0_reuse_code.js
Last active August 29, 2015 14:07
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
@rafamaciel
rafamaciel / .editorconfig
Created March 17, 2015 12:42
Basic configuration of editorconfig to work with python
;
; Global Editor Config for Adaptive Labbers
;
; This is an ini style configuration. See http://editorconfig.org/ for more information on this file.
;
; Top level editor config.
root = true
; Always use Unix style new lines with new line ending on every file and trim whitespace
[*]
end_of_line = lf