Instructions on to encrypt a file on OSX 10.9. Based of this StackOverflow post.
- Homebrew
- osxfuse
brew install Caskroom/cask/osxfuse - encfs
brew install encfs
Instructions on to encrypt a file on OSX 10.9. Based of this StackOverflow post.
brew install Caskroom/cask/osxfusebrew install encfs| apply plugin: 'idea' | |
| idea { | |
| module { | |
| testOutputDir = file('build/test-classes') | |
| } | |
| } | |
| task initGradleTest << { | |
| def imlFile = '<path to iml>.iml' |
| #!/bin/sh | |
| set -o pipefail | |
| set -o errexit | |
| set -o nounset | |
| #set -o xtrace | |
| __DIR__="$(cd "$(dirname "${0}")"; echo $(pwd))" | |
| __BASE__="$(basename "${0}")" | |
| __FILE__="${__DIR__}/${__BASE__}" |
| { | |
| // Preferences => Compiler => Gradle => VM Options. Add -DflavorWhitelist=flavor1,flavor2 | |
| // Omit -DflavorWhitelist for all flavors. | |
| def flavorMap = [ | |
| flavor1: { | |
| // flavor stuff | |
| }, | |
| flavor2 : { | |
| // flavor 2 stuff | |
| } |
| map rr :exec ":silent !tmux send-keys -t 1 'zspec %". ":" . line('.') . "' C-m"<CR>:redraw!<cr> | |
| map tt :exec ":silent !tmux send-keys -t 1 'zcuke %". ":" . line('.') . "' C-m"<CR>:redraw!<cr> |
| :%s/:\(\w*\) =>/\1:/g |
| 1) backup production database: | |
| heroku pgbackups:capture --expire --remote production | |
| 2) obtain url string to backup from step 1: | |
| heroku pgbackups:url --app production_app_name --remote production_app_branch_name | |
| 3) transfer backup from production to staging app: | |
| heroku pgbackups:restore DATABASE 'production_app_backup_url_string_from_step_2' --app production_app_name --app staging_app_name --confirm staging_app_name |
| struct Position { | |
| char value; | |
| // some other attributes | |
| }; | |
| class Board { | |
| public: | |
| Board(); | |
| Board(string filename); //another constructor given a filename | |
| ~Board(); |
| // if we had the program | |
| int main(int argc, char* argv[]) { | |
| cout << "output is: "; | |
| for(int i = 0; i < argc; i++) | |
| cout << argv[i] << ", "; | |
| cout << endl; | |
| return 0; | |
| } |
| string &Assoc::operator(const string key) { | |
| int index = hash(key); | |
| // Case where key is not in hash | |
| if(heads[index] == NULL) { | |
| heads[index] = new Elem(key); | |
| return heads[index]->value; | |
| } | |
| Elem *iter = heads[index]; | |
| // Case where key is already stored in hash | |
| while(iter != NULL) { |