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
'use strict'; | |
var path = require('path'), | |
connect = require('connect'), | |
serveStatic = require('serve-static'), | |
vhost = require('vhost'), | |
morgan = require('morgan'), | |
args = require('yargs').argv; | |
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
'use strict'; | |
const express = require('express'); | |
const fs = require("fs"); | |
const args = require('yargs').argv; | |
const app = express(); | |
const router = express.Router(); | |
const host = args.host || 'http://localhost'; |
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
#!/bin/bash | |
cd /tmp && \ | |
wget https://download.robomongo.org/1.2.1/linux/robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz && \ | |
sudo mkdir -p /opt/robo3t/1.2.1/ && \ | |
sudo tar -zxvf robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz -C /opt/robo3t/1.2.1/ --strip-components=1 && \ | |
sudo ln -s /opt/robo3t/1.2.1/bin/robo3t /usr/local/bin |
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
/** | |
* Simple localStorage with Cookie Fallback | |
* v.1.0.0 | |
* | |
* USAGE: | |
* ---------------------------------------- | |
* Set New / Modify: | |
* store('my_key', 'some_value'); | |
* | |
* Retrieve: |
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
preferred_syntax = :scss | |
http_path = "/" | |
fonts_dir = "static/html_cms/fonts" | |
css_dir = "static/html_cms/css/assine-ja/" | |
sass_dir = "source/scss" | |
images_dir = "static/html_cms/img/assine-ja/" | |
if environment == :production | |
output_style = :compressed | |
line_comments = false |
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
#!/bin/bash | |
help() | |
{ | |
echo "" | |
echo "buildJenkins" | |
echo " Ferramenta para constução de pacotes de arquivos em linha de comandos." | |
echo "" | |
echo "UTILIZAÇÃO" | |
echo "" |
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
# no Computador cliente (remetente) | |
1) editar o arquivo *~/.ssh/config* e adicionar as seguintes linhas: | |
Host NOME_DO_SERVIDOR | |
Hostname IP_DO_SERVIDOR | |
User USUARIO_LOGADO_DO_SERVIDOR | |
IdentityFile CAMINHO_DA_CHAVE_RSA_PRIVADA | |
StrictHostKeyChecking no | |
2) Digitar: | |
ssh-keyscan -H NOME_DO_SERVIDOR >> ~/.ssh/known_hosts |
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_VERSION=`git --version | awk '{print $3}'` | |
URL="https://raw.github.com/git/git/v$GIT_VERSION/contrib/completion/git-completion.bash" | |
PROFILE="$HOME/.profile" | |
echo "Downloading git-completion for git version: $GIT_VERSION..." | |
if ! curl "$URL" --silent --output "$HOME/.git-completion.bash"; then | |
echo "ERROR: Couldn't download completion script. Make sure you have a working internet connection." && exit 1 | |
fi |
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
Show hidden characters
[ | |
{ "keys": ["super+d"], "command": "duplicate_line" }, | |
{ "keys": ["super+shift+d"], "command": "find_under_expand" }, | |
{ "keys": ["super+shift+o"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, | |
{ "keys": ["f10"], "command": "clone_file" }, | |
{ "keys": ["f12"], "command": "reindent", "args": {"single_line": false} }, | |
{ "keys": ["f13"], "command": "reindent", "args": {"single_line": false} }, | |
{ "keys": ["super+down"], "command": "sublimerge_go_down"}, | |
{ "keys": ["super+up"], "command": "sublimerge_go_up"}, | |
{ "keys": ["f19"], "command": "sftp_upload_file" }, |
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
[user] | |
name = XXXX | |
email = YYYY | |
[push] | |
default = simple | |
[alias] | |
dev = checkout dev | |
prod = checkout prod | |
st = status | |
ci = commit |