This function generates a nicely formatted changelog, great for GitHub releases, from the commit summaries since the specified revision/tag.
Usage:
$ gchlg v1.0.0
## CHANGELOG| require 'json' | |
| regex = /(?<quote>['"])media\/(?<name>.*?)\k<quote>/ | |
| manifest = JSON.load File.read('./public/packs/manifest.json') | |
| glob = File.join 'app', '**', '*.*' | |
| Dir[glob].each do |filename| | |
| next unless filename =~ /^app\/.*\.(erb|rb|js|css|sass|scss|coffee|es6|jsx)$/ |
| import boto3 | |
| import json | |
| import logging | |
| import os | |
| from base64 import b64decode | |
| LOCAL_IPS = ['::1', '127.0.0.1', '0.0.0.0'] | |
| ENCRYPTED_ACL_ID = os.environ['encryptedAclId'] |
| export NVM_DIR="$HOME/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
| [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
| autoload -U add-zsh-hook | |
| load-nvmrc() { | |
| local node_version="$(nvm version)" | |
| local nvmrc_path="$(nvm_find_nvmrc)" | |
| if [ -n "$nvmrc_path" ]; then |
| # Copies .sample/.example files, removing the .sample/.example extension | |
| function unsample() { | |
| for file in **/?(.)*.@(sample|example); do | |
| cp $file ${file/.(sample|example)/} | |
| done | |
| } |
| for file in *.sample; do cp $file ${file/.sample/}; done |
| # encoding: UTF-8 | |
| # pt-BR translations for Devise | |
| pt-BR: | |
| devise: | |
| confirmations: | |
| confirmed: "Sua conta foi confirmada com sucesso. Você está logado." | |
| send_instructions: "Dentro de minutos, você receberá um e-mail com instruções para a confirmação da sua conta." | |
| send_paranoid_instructions: "Se o seu endereço de e-mail estiver cadastrado, você receberá uma mensagem com instruções para confirmação da sua conta." | |
| failure: | |
| already_authenticated: "Você já está logado." |
| How to Setup Assembla's Perforce repo on your machine | |
| ============================================= | |
| 1. Install the P4V client. | |
| _During setup, there'll be a wizard to help you connect. Feel free to go through it, but it probably won't work, due to some special configurations Assembla requires._ | |
| 1. Create a file named `p4config.txt` somewhere on your computer (preferably somewhere you have write access) | |
| 1. Copy this into it (replace `[username]` with your Assembla username): | |
| ``` | |
| P4PORT=perforce.assembla.com:1666 | |
| P4HOST=beings-of-light.tribal-phase |