requires: bundler
- Genarate a new plugin and change the default dummy app location to
spec/dummy
rails plugin new foobar --dummy-path=spec/dummy
- Add development and test gems to
Gemfile
.
# sample Gemfile
#!/bin/bash | |
# Modified from http://stackoverflow.com/a/1617048/359287 | |
# By Hadi Badjian @hadibadjian | |
# | |
# Usage: | |
# source ~/bash-short-pwd.sh | |
# export PS1='$(__short_pwd)$ ' | |
# | |
# Example: | |
# ~/p/y/b/docs$ |
# https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh | |
source ~/git-prompt.sh | |
# https://gist.github.com/hadibadjian | |
source ~/bash-short-pwd.sh | |
export PS1='$(__short_pwd)\[\033[32m\]$(__git_ps1 " (%s)")\[\033[00m\]$ ' | |
LS_COLORS=$LS_COLORS:'di=0;35:fi=0;37:ln=0;37:pi=0;37:so=5:bd=5:cd=5:or=31:mi=0:ex=33:*.rpm=90' | |
export LS_COLORS |
requires: bundler
spec/dummy
rails plugin new foobar --dummy-path=spec/dummy
Gemfile
.# sample Gemfile
--- | |
Language: Cpp | |
AccessModifierOffset: 0 | |
AlignEscapedNewlinesLeft: true | |
AlignTrailingComments: true | |
AllowShortBlocksOnASingleLine: false | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: false | |
AllowShortIfStatementsOnASingleLine: true | |
AllowShortLoopsOnASingleLine: false |
ssh-keygen -t rsa -C 'email@example.com'
config
file and include host details as in provided example file. Add an indentifier to differentiate hosts for similar host names./Users/hadi/.ssh/
├── config
├── id_rsa_example_enterprise
├── id_rsa_example_enterprise.pub
Navigate to /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates
and modify ___FILEBASENAME___.x
accordingly.
Use the following command to generate Xcode build settings and configurations for a given target:
xcodebuild -project example.xcodeproj -target "Example" -showBuildSettings
// inspired by https://gist.github.com/DinoChiesa/75796b27828cf8e15c91 | |
function calculateHMAC(config, messageDictionary) { | |
var template = 'AppAuth method=${algorithm} applicationId=${applicationId} signature=${signature}'; | |
var hashf = (function() { | |
switch (config.algorithm) { | |
case 'HMAC-SHA1': return CryptoJS.HmacSHA1; | |
case 'HMAC-SHA256': return CryptoJS.HmacSHA256; | |
case 'HMAC-SHA512': return CryptoJS.HmacSHA512; | |
default : return null; |