From 0188e5850c251ede34a7d14b3c678ecf2fadf7da Mon Sep 17 00:00:00 2001 From: Andrew Pennebaker Date: Sat, 10 Nov 2018 13:15:00 -0600 Subject: [PATCH] update editorconfig settings --- .bowerrc | 2 +- .cabal/config | 40 +-- .editorconfig | 60 +--- .eslintrc | 24 +- .excellent.yml | 16 +- .gitconfig | 8 +- .gitignore-global | 2 +- .jshintrc | 32 +- .jslintrc | 26 +- .rubocop.yml | 14 +- .sbclrc | 4 +- .scss-lint.yml | 24 +- .vimrc | 72 ++-- .yamllint | 10 +- Guardfile | 33 -- Guardfile-compile | 9 - Guardfile-coverage | 9 - Guardfile-cucumber | 9 - Guardfile-doc | 9 - Guardfile-lint | 9 - LICENSE.md | 6 +- LICENSE.md.gotpl | 6 +- Makefile | 7 +- README.md | 2 + Vagrantfile | 58 ++-- autohotkey/AutoHotkey.ahk | 30 +- bootstrap.rb | 6 +- build.gradle | 20 +- castle.md | 20 +- coffeelint.json | 200 +++++------ compiz.profile | 1 - defaults.reek | 20 +- emacsen-ispell-dicts.el | 1 - gen-completions.ccl | 68 ++-- gen-completions.clisp | 68 ++-- gen-completions.clj | 2 +- gen-completions.ecl | 68 ++-- gen-completions.sbcl | 68 ++-- manifests/default.pp | 457 ------------------------- motd | 1 + package.json | 16 + pc | 8 +- pom.xml | 442 ++++++++++++------------ profile.ps1 | 8 +- profiles.clj | 2 +- roodi.yml | 2 +- setenv.MOZ_DISABLE_SAFE_MODE_KEY.plist | 18 +- settings.json | 136 ++++---- vsexec.bat | 18 +- 49 files changed, 813 insertions(+), 1358 deletions(-) delete mode 100644 Guardfile delete mode 100644 Guardfile-compile delete mode 100644 Guardfile-coverage delete mode 100644 Guardfile-cucumber delete mode 100644 Guardfile-doc delete mode 100644 Guardfile-lint delete mode 100644 manifests/default.pp create mode 100644 package.json diff --git a/.bowerrc b/.bowerrc index a62d72d..8dccfea 100644 --- a/.bowerrc +++ b/.bowerrc @@ -1,3 +1,3 @@ { - "directory": "public/bower_components/" + "directory": "public/bower_components/" } diff --git a/.cabal/config b/.cabal/config index cba4698..08a9d1c 100644 --- a/.cabal/config +++ b/.cabal/config @@ -64,25 +64,25 @@ remote-build-reporting: anonymous -- password: install-dirs user - -- prefix: /Users/andrew/.cabal - -- bindir: $prefix/bin - -- libdir: $prefix/lib - -- libsubdir: $pkgid/$compiler - -- libexecdir: $prefix/libexec - -- datadir: $prefix/share - -- datasubdir: $pkgid - -- docdir: $datadir/doc/$pkgid - -- htmldir: $docdir/html - -- haddockdir: $htmldir + -- prefix: /Users/andrew/.cabal + -- bindir: $prefix/bin + -- libdir: $prefix/lib + -- libsubdir: $pkgid/$compiler + -- libexecdir: $prefix/libexec + -- datadir: $prefix/share + -- datasubdir: $pkgid + -- docdir: $datadir/doc/$pkgid + -- htmldir: $docdir/html + -- haddockdir: $htmldir install-dirs global - -- prefix: /usr/local - -- bindir: $prefix/bin - -- libdir: $prefix/lib - -- libsubdir: $pkgid/$compiler - -- libexecdir: $prefix/libexec - -- datadir: $prefix/share - -- datasubdir: $pkgid - -- docdir: $datadir/doc/$pkgid - -- htmldir: $docdir/html - -- haddockdir: $htmldir + -- prefix: /usr/local + -- bindir: $prefix/bin + -- libdir: $prefix/lib + -- libsubdir: $pkgid/$compiler + -- libexecdir: $prefix/libexec + -- datadir: $prefix/share + -- datasubdir: $pkgid + -- docdir: $datadir/doc/$pkgid + -- htmldir: $docdir/html + -- haddockdir: $htmldir diff --git a/.editorconfig b/.editorconfig index d809738..fdea629 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,67 +1,37 @@ -# ln -s .../.editorconfig ~/.editorconfig - -root = true - # Most text files [*] charset = utf-8 insert_final_newline = true trim_trailing_whitespace = true max_line_length = none +end_of_line = lf indent_style = space +indent_size = 4 # bash8 -# patchfiles -[*.patch] -trim_trailing_whitespace = false +# Freestyle text +[{*.txt,*.plist,*.emacs,*.el,*.abcl,*.lisp,*.lsp,*.scm,*.clj,*.eclrc,*.sbclrc}] +indent_size = none -# bash8 -[{*.py,*.sh,*.bash,*.ksh,*.zsh,*.csh,*.tcsh,*.dash,*.fish}] -end_of_line = lf -indent_size = 4 +# Windows junk +[{*.cmd,*.bat,*.reg,*.ps1,*.vbs,*.cs,*.fs,*.fsx,*.ahk}] +end_of_line = crlf # Lexer restrictions -[{Makefile*,*.mf,*.go}] +[{Makefile*,GNUMakefile*,*.mf,*.makefile,*.go}] indent_style = tab -[{*.fs,*.fsx}] -indent_style = space # Natural HTML nesting [*.js] quote_type = single -[*.min.js] +# Compressed artifacts +[*.min.*,*-min.*] insert_final_newline = false -# Windows junk -[{*.cmd,*.bat,*.reg,*.ps1,*.vbs,*.cs,*.fs,*.fsx,*.ahk}] -end_of_line = crlf - -# -# legacy -# -[{*.rb,Gemfile,*.gemspec,Rakefile,Vagrantfile,Guardfile*,*.reek,*.pp,*.feature}] -indent_size = 2 -[{*.js,*.json,*.coffee,*.ts,*.dart,*.pjs,.eslintrc,.jshintrc,.jslintrc,.bowerrc}] -indent_size = 2 -[{*.html,*.css,*.less,*.scss,*.styl,*.php,*.tex}] -indent_size = 2 -[{*.yml,*.yaml}] -indent_size = 2 -[{*.ps1,*.ahk,.emacs,.vimrc}] -indent_size = 2 -[{*.java,*.groovy,*.scala,*.gradle}] -indent_size = 2 -[{*.c,*.h,*.cpp,*.rs,*.d,*.swift,*.vala,*.sac}] -indent_size = 2 -[{*.asm,*.ll}] -indent_size = 2 -[{*.pl,*.pm,*.f08,*.j,*.lua,*.st,*.io,*.pas,*.oz}] -indent_size = 2 -[{*.hs,*.cabal,*.ml,*.v,*.sml,*.fs,*.fsx,*.ma,*.psql,*.R}] -indent_size = 2 -[{*.awk,*.erl,*.escript,*.yaws,*.bf,*.bs,*.cob,*.factor,*.tcl,*.rl}] -indent_size = 2 +# Patch files +[*.patch] +trim_trailing_whitespace = false -# Generated files +# Machine-controlled files [ConEmu.xml] indent_style = tab diff --git a/.eslintrc b/.eslintrc index 52c19a3..c94a536 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,14 +1,14 @@ { - "env": { - "node": true, - "browser": true, - "mocha": true, - "jquery": true - }, - "rules": { - "global-strict": true, - "no-mixed-requires": true, - "no-unused-vars": true, - "quotes": "single" - } + "env": { + "node": true, + "browser": true, + "mocha": true, + "jquery": true + }, + "rules": { + "global-strict": true, + "no-mixed-requires": true, + "no-unused-vars": true, + "quotes": "single" + } } diff --git a/.excellent.yml b/.excellent.yml index ea4a580..9d3fb45 100644 --- a/.excellent.yml +++ b/.excellent.yml @@ -1,17 +1,17 @@ --- MethodLineCountCheck: - threshold: 60 + threshold: 60 FlogMethodCheck: - threshold: 100 + threshold: 100 FlogBlockCheck: - threshold: 60 + threshold: 60 CyclomaticComplexityMethodCheck: - threshold: 20 + threshold: 20 CyclomaticComplexityBlockCheck: - threshold: 20 + threshold: 20 ParameterNumberCheck: - false + false AbcMetricMethodCheck: - false + false ClassVariableCheck: - false + false diff --git a/.gitconfig b/.gitconfig index d4a759e..c3386ab 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,6 +1,6 @@ [core] - editor = vi - excludesfile = /Users/andrew/.gitignore-global + editor = vi + excludesfile = /Users/andrew/.gitignore-global ignorecase = false [push] @@ -21,5 +21,5 @@ rebase = true [mergetool] keepBackup = false [user] - name = Andrew Pennebaker - email = andrew.pennebaker@gmail.com + name = Andrew Pennebaker + email = andrew.pennebaker@gmail.com diff --git a/.gitignore-global b/.gitignore-global index 4bd6e2e..7c30b19 100644 --- a/.gitignore-global +++ b/.gitignore-global @@ -168,7 +168,7 @@ fabric.properties .LSOverride # Icon must end with two \r -Icon +Icon # Thumbnails ._* diff --git a/.jshintrc b/.jshintrc index 52d98ea..b1549e2 100755 --- a/.jshintrc +++ b/.jshintrc @@ -1,18 +1,18 @@ { - "expr": true, - "maxerr": 10000, - "indent": 2, - "eqeqeq": true, - "quotmark": true, - "curly": true, - "camelcase": true, - "globalstrict": true, - "node": true, - "browser": true, - "globals": { - "alert": false, - "$": false, - "describe": false, - "it": false - } + "expr": true, + "maxerr": 10000, + "indent": 2, + "eqeqeq": true, + "quotmark": true, + "curly": true, + "camelcase": true, + "globalstrict": true, + "node": true, + "browser": true, + "globals": { + "alert": false, + "$": false, + "describe": false, + "it": false + } } diff --git a/.jslintrc b/.jslintrc index d879c50..c4dce67 100644 --- a/.jslintrc +++ b/.jslintrc @@ -1,15 +1,15 @@ { - "node": true, - "browser": true, - "bitwise": true, - "nomen": true, - "plusplus": true, - "white": true, - "predef": [ - "alert", - "$", - "describe", - "it" - ], - "terse": true + "node": true, + "browser": true, + "bitwise": true, + "nomen": true, + "plusplus": true, + "white": true, + "predef": [ + "alert", + "$", + "describe", + "it" + ], + "terse": true } diff --git a/.rubocop.yml b/.rubocop.yml index e724272..d67193d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,14 +1,14 @@ --- LineLength: - Max: 140 + Max: 140 MethodLength: - Max: 60 + Max: 60 CyclomaticComplexity: - Max: 20 + Max: 20 SpecialGlobalVars: - Enabled: false + Enabled: false NumericLiterals: - Enabled: false + Enabled: false Style/FileName: - Exclude: - - 'Guardfile*' + Exclude: + - 'Guardfile*' diff --git a/.sbclrc b/.sbclrc index f06cc0f..b7be853 100644 --- a/.sbclrc +++ b/.sbclrc @@ -1,7 +1,7 @@ ;;; The following lines added by ql:add-to-init-file: #-quicklisp (let ((quicklisp-init (merge-pathnames - "quicklisp/setup.lisp" - (user-homedir-pathname)))) + "quicklisp/setup.lisp" + (user-homedir-pathname)))) (when (probe-file quicklisp-init) (load quicklisp-init))) diff --git a/.scss-lint.yml b/.scss-lint.yml index b0bcabd..3729d74 100644 --- a/.scss-lint.yml +++ b/.scss-lint.yml @@ -1,16 +1,16 @@ --- exclude: - - 'node_modules/*' - - 'bower_components/*' + - 'node_modules/*' + - 'bower_components/*' linters: - EmptyLineBetweenBlocks: - enabled: false - Indentation: - enabled: false - SingleLinePerSelector: - enabled: false - Comment: - enabled: false - LeadingZero: - enabled: false + EmptyLineBetweenBlocks: + enabled: false + Indentation: + enabled: false + SingleLinePerSelector: + enabled: false + Comment: + enabled: false + LeadingZero: + enabled: false diff --git a/.vimrc b/.vimrc index cf65a2d..c6fd635 100755 --- a/.vimrc +++ b/.vimrc @@ -32,7 +32,7 @@ set clipboard=unnamed " http://www.culater.net/software/SIMBL/SIMBL.php " https://bitheap.org/mouseterm/ if has("mouse") - set mouse=a + set mouse=a endif set shell=bash\ -i @@ -63,7 +63,7 @@ inoremap d$i " Fix Alt key in MacVIM GUI " TODO - Fix in MacVIM terminal if has("gui_macvim") - set macmeta + set macmeta endif " Emacs-style start of file / end of file navigation @@ -131,15 +131,15 @@ autocmd BufRead,BufNewFile *.cql set filetype=cql " Wrap window-move-cursor " function! s:GotoNextWindow( direction, count ) - let l:prevWinNr = winnr() - execute a:count . 'wincmd' a:direction - return winnr() != l:prevWinNr + let l:prevWinNr = winnr() + execute a:count . 'wincmd' a:direction + return winnr() != l:prevWinNr endfunction function! s:JumpWithWrap( direction, opposite ) - if ! s:GotoNextWindow(a:direction, v:count1) - call s:GotoNextWindow(a:opposite, 999) - endif + if ! s:GotoNextWindow(a:direction, v:count1) + call s:GotoNextWindow(a:opposite, 999) + endif endfunction nnoremap h :call JumpWithWrap('h', 'l') @@ -165,30 +165,30 @@ inoremap :call JumpWithWrap('l', 'h') " call plug#begin('~/.vim/plugged') - Plug 'bruno-/vim-alt-mappings' - Plug 'ctrlpvim/ctrlp.vim' - Plug 'tpope/vim-fugitive' - Plug 'tomtom/tcomment_vim' + Plug 'bruno-/vim-alt-mappings' + Plug 'ctrlpvim/ctrlp.vim' + Plug 'tpope/vim-fugitive' + Plug 'tomtom/tcomment_vim' " Workaround https://github.com/vim-airline/vim-airline/issues/1325 -" Plug 'bling/vim-airline' -" Plug 'vim-airline/vim-airline-themes' - Plug 'benjaminwhite/Benokai' - Plug 'fsouza/go.vim' - Plug 'wting/rust.vim' - Plug 'godlygeek/tabular' - Plug 'hashivim/vim-terraform' - Plug 'plasticboy/vim-markdown' - Plug 'mtth/scratch.vim' - Plug 'vim-scripts/greplace.vim' - Plug 'mcandre/Conque-Shell' - Plug 'elubow/cql-vim' - Plug 'scrooloose/nerdtree' - Plug 'moll/vim-bbye' - Plug 'editorconfig/editorconfig-vim' - Plug 'fatih/vim-go' - Plug 'robbles/logstash.vim' - Plug 'vim-scripts/groovy.vim' - Plug 'docker/docker' , {'rtp': '/contrib/syntax/vim/'} + " Plug 'bling/vim-airline' + " Plug 'vim-airline/vim-airline-themes' + Plug 'benjaminwhite/Benokai' + Plug 'fsouza/go.vim' + Plug 'wting/rust.vim' + Plug 'godlygeek/tabular' + Plug 'hashivim/vim-terraform' + Plug 'plasticboy/vim-markdown' + Plug 'mtth/scratch.vim' + Plug 'vim-scripts/greplace.vim' + Plug 'mcandre/Conque-Shell' + Plug 'elubow/cql-vim' + Plug 'scrooloose/nerdtree' + Plug 'moll/vim-bbye' + Plug 'editorconfig/editorconfig-vim' + Plug 'fatih/vim-go' + Plug 'robbles/logstash.vim' + Plug 'vim-scripts/groovy.vim' + Plug 'docker/docker' , {'rtp': '/contrib/syntax/vim/'} call plug#end() " " Enable Powerline fonts for airline @@ -199,7 +199,7 @@ call plug#end() " Work around PowerShell color limitations if !has("win32") && !has("win16") - colorscheme Benokai + colorscheme Benokai endif " Column 80 marker @@ -235,13 +235,13 @@ autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in " Focus main window, not NERDTree augroup NERD - autocmd! - autocmd VimEnter * NERDTree - autocmd VimEnter * wincmd p + autocmd! + autocmd VimEnter * NERDTree + autocmd VimEnter * wincmd p augroup END augroup filetypedetect - au BufRead,BufNewFile Jenkinsfile set filetype=groovy + au BufRead,BufNewFile Jenkinsfile set filetype=groovy augroup END " Exit Vim when the only window left is NERDTree diff --git a/.yamllint b/.yamllint index dc3fb5d..19d0640 100644 --- a/.yamllint +++ b/.yamllint @@ -2,10 +2,10 @@ extends: default rules: - comments: disable - comments-indentation: disable - line-length: disable + comments: disable + comments-indentation: disable + line-length: disable ignore: | - node_modules - vendor + node_modules + vendor diff --git a/Guardfile b/Guardfile deleted file mode 100644 index 1b144f1..0000000 --- a/Guardfile +++ /dev/null @@ -1,33 +0,0 @@ -guard :shell do - watch(/^pom\.xml$/) do || - title = 'Test' - eager 'mvn clean && mvn test' - status = ($CHILD_STATUS.success? && :success) || :failed - n '', title, status - '' - end - - watch(%r{^src/main/java/.+\.java$}) do |m| - title = 'Test' - eager "mvn test-compile -q && mvn -Dtest=\`basename #{m[0]} .java\`Test test" - status = ($CHILD_STATUS.success? && :success) || :failed - n '', title, status - '' - end - - watch(%r{^src/test/java/.+\.java$}) do |m| - title = 'Test' - eager "mvn test-compile -q && mvn -Dtest=\`basename #{m[0]} .java\` test" - status = ($CHILD_STATUS.success? && :success) || :failed - n '', title, status - '' - end - - watch(%r{^src/main/thrift/.+\.thrift$}) do |m| - title = 'Test' - eager "mvn generate-sources && mvn test-compile -q && mvn -Dtest=\`basename #{m[0]} .thrift\`Test test" - status = ($CHILD_STATUS.success? && :success) || :failed - n '', title, status - '' - end -end diff --git a/Guardfile-compile b/Guardfile-compile deleted file mode 100644 index d0dc6b7..0000000 --- a/Guardfile-compile +++ /dev/null @@ -1,9 +0,0 @@ -guard :shell do - watch(%r{^pom\.xml|src/(main|test)/.+\.(thrift|java)$}) do || - title = 'Test' - eager 'mvn generate-sources -q && mvn compile -q && echo Success' - status = ($CHILD_STATUS.success? && :success) || :failed - n '', title, status - '' - end -end diff --git a/Guardfile-coverage b/Guardfile-coverage deleted file mode 100644 index 9227a9c..0000000 --- a/Guardfile-coverage +++ /dev/null @@ -1,9 +0,0 @@ -guard :shell do - watch %r{^pom\.xml|src/(main|test)/java/.+\.java$} do || - title = 'Coverage' - eager 'mvn cobertura:cobertura' - status = ($CHILD_STATUS.success? && :success) || :failed - n '', title, status - '' - end -end diff --git a/Guardfile-cucumber b/Guardfile-cucumber deleted file mode 100644 index 055b7e5..0000000 --- a/Guardfile-cucumber +++ /dev/null @@ -1,9 +0,0 @@ -guard :shell do - watch(/^.*\.(rb|feature|java|xml|thrift)$/) do || - title = 'Cucumber' - eager 'cucumber 2>&1' - status = ($CHILD_STATUS.success? && :success) || :failed - n '', title, status - '' - end -end diff --git a/Guardfile-doc b/Guardfile-doc deleted file mode 100644 index f6e7958..0000000 --- a/Guardfile-doc +++ /dev/null @@ -1,9 +0,0 @@ -guard :shell do - watch(%r{^pom\.xml|src/(main|test)/.+\.(thrift|java)$}) do || - title = 'Javadoc' - eager 'mvn javadoc:javadoc' - status = ($CHILD_STATUS.success? && :success) || :failed - n '', title, status - '' - end -end diff --git a/Guardfile-lint b/Guardfile-lint deleted file mode 100644 index 952ab70..0000000 --- a/Guardfile-lint +++ /dev/null @@ -1,9 +0,0 @@ -guard :shell do - watch(%r{^pom\.xml|src/(main|test)/.+\.(java|thrift)}) do || - title = 'Lint' - eager 'mvn compile && mvn checkstyle:checkstyle && mvn pmd:check' - status = ($CHILD_STATUS.success? && :success) || :failed - n '', title, status - '' - end -end diff --git a/LICENSE.md b/LICENSE.md index f95cbf9..0f86170 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -5,10 +5,10 @@ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright, this - list of conditions and the following disclaimer. + list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED diff --git a/LICENSE.md.gotpl b/LICENSE.md.gotpl index 2d45a60..d55e7d4 100644 --- a/LICENSE.md.gotpl +++ b/LICENSE.md.gotpl @@ -5,10 +5,10 @@ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright, this - list of conditions and the following disclaimer. + list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED diff --git a/Makefile b/Makefile index f06e339..0e88119 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,13 @@ all: lint -lint: funk yamllint - funk: funk . yamllint: yamllint .yamllint yamllint . + +editorconfig: + $(shell npm bin)/eclint check + +lint: funk yamllint editorconfig diff --git a/README.md b/README.md index 305c347..0c7ff07 100755 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ https://github.com/mcandre/dotfiles * [make](https://www.gnu.org/software/make/) * [stank](https://github.com/mcandre/stank) (e.g. `go get github.com/mcandre/stank/...`) +* [Python](https://www.python.org) 3+ (for yamllint) +* [Node.js](https://nodejs.org/en/) (for eclint) # TERMINAL COLORS diff --git a/Vagrantfile b/Vagrantfile index edf2702..38ec368 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,39 +1,39 @@ VAGRANTFILE_API_VERSION = '2' Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| - config.vm.box = 'precise64' - config.vm.box_url = 'http://files.vagrantup.com/precise64.box' + config.vm.box = 'precise64' + config.vm.box_url = 'http://files.vagrantup.com/precise64.box' - # - # Use host authenticaton for git and maven. - # - # Ensure host private key is registered with host SSH agent: - # - # ssh-add -L - # ssh-add ~/.ssh/id_rsa - # ssh-add -L - # + # + # Use host authenticaton for git and maven. + # + # Ensure host private key is registered with host SSH agent: + # + # ssh-add -L + # ssh-add ~/.ssh/id_rsa + # ssh-add -L + # - config.ssh.private_key_path = [ - '~/.vagrant.d/insecure_private_key', - '~/.ssh/id_rsa' - ] - config.ssh.forward_agent = true + config.ssh.private_key_path = [ + '~/.vagrant.d/insecure_private_key', + '~/.ssh/id_rsa' + ] + config.ssh.forward_agent = true - config.vm.synced_folder "~/.m2", "/home/vagrant/.m2" + config.vm.synced_folder "~/.m2", "/home/vagrant/.m2" - config.vm.provision :shell, path: 'upgrade-puppet.sh' + config.vm.provision :shell, path: 'upgrade-puppet.sh' - # Install puppet modules - config.vm.provision :shell, path: 'bootstrap.rb', args: %w( - puppetlabs-stdlib - puppetlabs/apt - puppetlabs/vcsrepo - maestrodev/rvm - deric/zookeeper - ) + # Install puppet modules + config.vm.provision :shell, path: 'bootstrap.rb', args: %w( + puppetlabs-stdlib + puppetlabs/apt + puppetlabs/vcsrepo + maestrodev/rvm + deric/zookeeper + ) - config.vm.provision :puppet do |puppet| - puppet.options = ENV['PUPPET_OPTIONS'] - end + config.vm.provision :puppet do |puppet| + puppet.options = ENV['PUPPET_OPTIONS'] + end end diff --git a/autohotkey/AutoHotkey.ahk b/autohotkey/AutoHotkey.ahk index 8b2a54d..9c7777a 100755 --- a/autohotkey/AutoHotkey.ahk +++ b/autohotkey/AutoHotkey.ahk @@ -2,34 +2,34 @@ ; Control+Alt+T launches Console2 ^!t:: - SetWorkingDir %userprofile% - run "C:\Program Files\ConEmu\ConEmu64.exe" - return + SetWorkingDir %userprofile% + run "C:\Program Files\ConEmu\ConEmu64.exe" + return ; Control+Alt+E launches Emacs ^!e:: - run runemacs.exe - return + run runemacs.exe + return ; Control+Alt+G launches a Web Browser ^!g:: - run "C:\Program Files\Mozilla Firefox\firefox.exe" - return + run "C:\Program Files\Mozilla Firefox\firefox.exe" + return ; Control+Alt+S launches Steam ^!s:: - run steam.exe - return + run steam.exe + return ; Control+Alt+W launches Todoist ^!w:: - run cmd /c "start todoist:" - return + run cmd /c "start todoist:" + return ; ; Invert mouse scroll ; WheelUp:: -; send {WheelDown} -; return +; send {WheelDown} +; return ; WheelDown:: -; send {WheelUp} -; return +; send {WheelUp} +; return diff --git a/bootstrap.rb b/bootstrap.rb index 8409aa0..64e9eba 100755 --- a/bootstrap.rb +++ b/bootstrap.rb @@ -9,7 +9,7 @@ installed = `puppet module list`.split "\n" mods.each do |mod| - puts `puppet module install #{mod}` unless installed.any? do |i| - i.include?(mod.sub('/', '-')) - end + puts `puppet module install #{mod}` unless installed.any? do |i| + i.include?(mod.sub('/', '-')) + end end diff --git a/build.gradle b/build.gradle index 477949a..d957143 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'com.github.johnrengelman.shadow' version '1.2.2' + id 'com.github.johnrengelman.shadow' version '1.2.2' } apply plugin: 'java' @@ -10,27 +10,27 @@ apply plugin: 'jacoco' sourceCompatibility = '1.8' compileJava { - options.compilerArgs << '-Xlint:all' + options.compilerArgs << '-Xlint:all' } checkstyle { - configFile = "${rootProject.projectDir}/config/checkstyle/checkstyle.xml" as File - configProperties = [configDir: "${rootProject.projectDir}/config"] + configFile = "${rootProject.projectDir}/config/checkstyle/checkstyle.xml" as File + configProperties = [configDir: "${rootProject.projectDir}/config"] } pmd { consoleOutput = true } jar { - manifest { - attributes 'Main-Class': 'us.yellosoft.lambdatest.LambdaTest' - } + manifest { + attributes 'Main-Class': 'us.yellosoft.lambdatest.LambdaTest' + } } repositories { - mavenCentral() + mavenCentral() } dependencies { - testCompile 'junit:junit:4.12' - testCompile 'org.slf4j:slf4j-log4j12:1.7.12' + testCompile 'junit:junit:4.12' + testCompile 'org.slf4j:slf4j-log4j12:1.7.12' } diff --git a/castle.md b/castle.md index e537897..68a74d3 100755 --- a/castle.md +++ b/castle.md @@ -1,15 +1,15 @@ # Demo file for testing Emacs Markdown block vs line indent - F~ /\ + F~ /\ /\ /__\ - /__\ |. | - |n | :_|__|_: - :_| |_: p |. | - | n| p p /\ |. | - | | /\_____/\ /__\ |. | - |n |_=_|. . . .|_=_=_=_=_=_=_|. | - |n |. .| ___ |. . . . . . .|. | - |n | | | | | |. | - __|__|___|_|___|_|_____________|__|__ + /__\ |. | + |n | :_|__|_: + :_| |_: p |. | + | n| p p /\ |. | + | | /\_____/\ /__\ |. | + |n |_=_|. . . .|_=_=_=_=_=_=_|. | + |n |. .| ___ |. . . . . . .|. | + |n | | | | | |. | + __|__|___|_|___|_|_____________|__|__ / / / \ diff --git a/coffeelint.json b/coffeelint.json index 897e109..8a4d6f3 100644 --- a/coffeelint.json +++ b/coffeelint.json @@ -1,103 +1,103 @@ { - "arrow_spacing": { - "level": "ignore" - }, - "camel_case_classes": { - "level": "error" - }, - "coffeescript_error": { - "level": "error" - }, - "colon_assignment_spacing": { - "level": "ignore", - "spacing": { - "left": 0, - "right": 0 + "arrow_spacing": { + "level": "ignore" + }, + "camel_case_classes": { + "level": "error" + }, + "coffeescript_error": { + "level": "error" + }, + "colon_assignment_spacing": { + "level": "ignore", + "spacing": { + "left": 0, + "right": 0 + } + }, + "cyclomatic_complexity": { + "value": 10, + "level": "ignore" + }, + "duplicate_key": { + "level": "error" + }, + "empty_constructor_needs_parens": { + "level": "ignore" + }, + "indentation": { + "value": 2, + "level": "error" + }, + "line_endings": { + "level": "ignore", + "value": "unix" + }, + "max_line_length": { + "value": 80, + "level": "error", + "limitComments": true + }, + "missing_fat_arrows": { + "level": "ignore" + }, + "newlines_after_classes": { + "value": 3, + "level": "ignore" + }, + "no_backticks": { + "level": "error" + }, + "no_debugger": { + "level": "warn" + }, + "no_empty_functions": { + "level": "ignore" + }, + "no_empty_param_list": { + "level": "ignore" + }, + "no_implicit_braces": { + "level": "ignore", + "strict": true + }, + "no_implicit_parens": { + "strict": true, + "level": "ignore" + }, + "no_interpolation_in_single_quotes": { + "level": "ignore" + }, + "no_plusplus": { + "level": "ignore" + }, + "no_stand_alone_at": { + "level": "ignore" + }, + "no_tabs": { + "level": "error" + }, + "no_throwing_strings": { + "level": "error" + }, + "no_trailing_semicolons": { + "level": "error" + }, + "no_trailing_whitespace": { + "level": "error", + "allowed_in_comments": false, + "allowed_in_empty_lines": true + }, + "no_unnecessary_double_quotes": { + "level": "ignore" + }, + "no_unnecessary_fat_arrows": { + "level": "warn" + }, + "non_empty_constructor_needs_parens": { + "level": "ignore" + }, + "space_operators": { + "level": "ignore" } - }, - "cyclomatic_complexity": { - "value": 10, - "level": "ignore" - }, - "duplicate_key": { - "level": "error" - }, - "empty_constructor_needs_parens": { - "level": "ignore" - }, - "indentation": { - "value": 2, - "level": "error" - }, - "line_endings": { - "level": "ignore", - "value": "unix" - }, - "max_line_length": { - "value": 80, - "level": "error", - "limitComments": true - }, - "missing_fat_arrows": { - "level": "ignore" - }, - "newlines_after_classes": { - "value": 3, - "level": "ignore" - }, - "no_backticks": { - "level": "error" - }, - "no_debugger": { - "level": "warn" - }, - "no_empty_functions": { - "level": "ignore" - }, - "no_empty_param_list": { - "level": "ignore" - }, - "no_implicit_braces": { - "level": "ignore", - "strict": true - }, - "no_implicit_parens": { - "strict": true, - "level": "ignore" - }, - "no_interpolation_in_single_quotes": { - "level": "ignore" - }, - "no_plusplus": { - "level": "ignore" - }, - "no_stand_alone_at": { - "level": "ignore" - }, - "no_tabs": { - "level": "error" - }, - "no_throwing_strings": { - "level": "error" - }, - "no_trailing_semicolons": { - "level": "error" - }, - "no_trailing_whitespace": { - "level": "error", - "allowed_in_comments": false, - "allowed_in_empty_lines": true - }, - "no_unnecessary_double_quotes": { - "level": "ignore" - }, - "no_unnecessary_fat_arrows": { - "level": "warn" - }, - "non_empty_constructor_needs_parens": { - "level": "ignore" - }, - "space_operators": { - "level": "ignore" - } } diff --git a/compiz.profile b/compiz.profile index 757ae2e..de64d99 100644 --- a/compiz.profile +++ b/compiz.profile @@ -101,4 +101,3 @@ s0_outputs = 1280x1024+0+0;900x1440+1280+0; s0_autoraise = false s0_autoraise_delay = 500 s0_show_desktop_key = d - diff --git a/defaults.reek b/defaults.reek index ef4f4b2..46275aa 100755 --- a/defaults.reek +++ b/defaults.reek @@ -1,21 +1,21 @@ --- NestedIterators: - enabled: false + enabled: false UncommunicativeVariableName: - enabled: false + enabled: false FeatureEnvy: - enabled: false + enabled: false BooleanParameter: - enabled: false + enabled: false TooManyStatements: - max_statements: 30 + max_statements: 30 LongParameterList: - max_params: 5 + max_params: 5 UncommunicativeParameterName: - enabled: false + enabled: false UncommunicativeMethodName: - enabled: false + enabled: false UncommunicativeModuleName: - enabled: false + enabled: false ControlParameter: - enabled: false + enabled: false diff --git a/emacsen-ispell-dicts.el b/emacsen-ispell-dicts.el index aaa8f09..d2a72d1 100644 --- a/emacsen-ispell-dicts.el +++ b/emacsen-ispell-dicts.el @@ -76,4 +76,3 @@ ;; ;; We need to get it here, after debian-hunspell-equivs-alist is loaded ;; (setq debian-hunspell-dictionary (debian-ispell-get-hunspell-default)) - diff --git a/gen-completions.ccl b/gen-completions.ccl index def0d87..b1d9106 100755 --- a/gen-completions.ccl +++ b/gen-completions.ccl @@ -3,42 +3,42 @@ ;;; http://weitz.de/completions.html (with-open-file (!!!-stream "~/.ccl_completions" - :direction :output - :if-exists :supersede) + :direction :output + :if-exists :supersede) (let ((!!!-seen (make-hash-table :size 6000 :test #'equal)) - (!!!-cl-package (find-package "CL")) - (!!!-cl-user-package (find-package "CL-USER"))) - (loop for !!!-package in (list-all-packages) + (!!!-cl-package (find-package "CL")) + (!!!-cl-user-package (find-package "CL-USER"))) + (loop for !!!-package in (list-all-packages) do (let ((!!!-prefixes - (if (or (eq !!!-package !!!-cl-package) - (eq !!!-package !!!-cl-user-package)) - (list "") - (mapcar #'(lambda (!!!-prefix) - (concatenate 'string - (string-downcase !!!-prefix) - ":")) - (if (package-nicknames !!!-package) - (package-nicknames !!!-package) - (list (package-name !!!-package))))))) - (loop for !!!-symbol being the symbols of !!!-package - for !!!-symbol-name = (symbol-name !!!-symbol) - when (or (eq (nth-value 1 - (find-symbol !!!-symbol-name - !!!-package)) + (if (or (eq !!!-package !!!-cl-package) + (eq !!!-package !!!-cl-user-package)) + (list "") + (mapcar #'(lambda (!!!-prefix) + (concatenate 'string + (string-downcase !!!-prefix) + ":")) + (if (package-nicknames !!!-package) + (package-nicknames !!!-package) + (list (package-name !!!-package))))))) + (loop for !!!-symbol being the symbols of !!!-package + for !!!-symbol-name = (symbol-name !!!-symbol) + when (or (eq (nth-value 1 + (find-symbol !!!-symbol-name + !!!-package)) :external) (eq !!!-package !!!-cl-user-package)) - do (loop for !!!-prefix in !!!-prefixes + do (loop for !!!-prefix in !!!-prefixes do (let ((!!!-completion - (format nil - "~A~A~%" - !!!-prefix - (string-downcase !!!-symbol)))) - (unless (or (gethash !!!-completion !!!-seen) - (string= "!!!-" - !!!-symbol-name - :end2 (min - (length !!!-symbol-name) - 4))) - (setf (gethash !!!-completion !!!-seen) - t) - (princ !!!-completion !!!-stream))))))))) + (format nil + "~A~A~%" + !!!-prefix + (string-downcase !!!-symbol)))) + (unless (or (gethash !!!-completion !!!-seen) + (string= "!!!-" + !!!-symbol-name + :end2 (min + (length !!!-symbol-name) + 4))) + (setf (gethash !!!-completion !!!-seen) + t) + (princ !!!-completion !!!-stream))))))))) diff --git a/gen-completions.clisp b/gen-completions.clisp index 3341ba6..2ac79c6 100755 --- a/gen-completions.clisp +++ b/gen-completions.clisp @@ -3,42 +3,42 @@ ;;; http://weitz.de/completions.html (with-open-file (!!!-stream "~/.clisp_completions" - :direction :output - :if-exists :supersede) + :direction :output + :if-exists :supersede) (let ((!!!-seen (make-hash-table :size 6000 :test #'equal)) - (!!!-cl-package (find-package "CL")) - (!!!-cl-user-package (find-package "CL-USER"))) - (loop for !!!-package in (list-all-packages) + (!!!-cl-package (find-package "CL")) + (!!!-cl-user-package (find-package "CL-USER"))) + (loop for !!!-package in (list-all-packages) do (let ((!!!-prefixes - (if (or (eq !!!-package !!!-cl-package) - (eq !!!-package !!!-cl-user-package)) - (list "") - (mapcar #'(lambda (!!!-prefix) - (concatenate 'string - (string-downcase !!!-prefix) - ":")) - (if (package-nicknames !!!-package) - (package-nicknames !!!-package) - (list (package-name !!!-package))))))) - (loop for !!!-symbol being the symbols of !!!-package - for !!!-symbol-name = (symbol-name !!!-symbol) - when (or (eq (nth-value 1 - (find-symbol !!!-symbol-name - !!!-package)) + (if (or (eq !!!-package !!!-cl-package) + (eq !!!-package !!!-cl-user-package)) + (list "") + (mapcar #'(lambda (!!!-prefix) + (concatenate 'string + (string-downcase !!!-prefix) + ":")) + (if (package-nicknames !!!-package) + (package-nicknames !!!-package) + (list (package-name !!!-package))))))) + (loop for !!!-symbol being the symbols of !!!-package + for !!!-symbol-name = (symbol-name !!!-symbol) + when (or (eq (nth-value 1 + (find-symbol !!!-symbol-name + !!!-package)) :external) (eq !!!-package !!!-cl-user-package)) - do (loop for !!!-prefix in !!!-prefixes + do (loop for !!!-prefix in !!!-prefixes do (let ((!!!-completion - (format nil - "~A~A~%" - !!!-prefix - (string-downcase !!!-symbol)))) - (unless (or (gethash !!!-completion !!!-seen) - (string= "!!!-" - !!!-symbol-name - :end2 (min - (length !!!-symbol-name) - 4))) - (setf (gethash !!!-completion !!!-seen) - t) - (princ !!!-completion !!!-stream))))))))) + (format nil + "~A~A~%" + !!!-prefix + (string-downcase !!!-symbol)))) + (unless (or (gethash !!!-completion !!!-seen) + (string= "!!!-" + !!!-symbol-name + :end2 (min + (length !!!-symbol-name) + 4))) + (setf (gethash !!!-completion !!!-seen) + t) + (princ !!!-completion !!!-stream))))))))) diff --git a/gen-completions.clj b/gen-completions.clj index 8b85566..a41dc6b 100755 --- a/gen-completions.clj +++ b/gen-completions.clj @@ -3,6 +3,6 @@ (def completions (keys (ns-publics (find-ns 'clojure.core)))) (with-open [f (java.io.BufferedWriter. - (java.io.FileWriter. + (java.io.FileWriter. (str (System/getenv "HOME") "/.clj_completions")))] (.write f (apply str (interleave completions (repeat "\n"))))) diff --git a/gen-completions.ecl b/gen-completions.ecl index 13f614d..26f91e4 100755 --- a/gen-completions.ecl +++ b/gen-completions.ecl @@ -3,42 +3,42 @@ ;;; http://weitz.de/completions.html (with-open-file (!!!-stream "~/.ecl_completions" - :direction :output - :if-exists :supersede) + :direction :output + :if-exists :supersede) (let ((!!!-seen (make-hash-table :size 6000 :test #'equal)) - (!!!-cl-package (find-package "CL")) - (!!!-cl-user-package (find-package "CL-USER"))) - (loop for !!!-package in (list-all-packages) + (!!!-cl-package (find-package "CL")) + (!!!-cl-user-package (find-package "CL-USER"))) + (loop for !!!-package in (list-all-packages) do (let ((!!!-prefixes - (if (or (eq !!!-package !!!-cl-package) - (eq !!!-package !!!-cl-user-package)) - (list "") - (mapcar #'(lambda (!!!-prefix) - (concatenate 'string - (string-downcase !!!-prefix) - ":")) - (if (package-nicknames !!!-package) - (package-nicknames !!!-package) - (list (package-name !!!-package))))))) - (loop for !!!-symbol being the symbols of !!!-package - for !!!-symbol-name = (symbol-name !!!-symbol) - when (or (eq (nth-value 1 - (find-symbol !!!-symbol-name - !!!-package)) + (if (or (eq !!!-package !!!-cl-package) + (eq !!!-package !!!-cl-user-package)) + (list "") + (mapcar #'(lambda (!!!-prefix) + (concatenate 'string + (string-downcase !!!-prefix) + ":")) + (if (package-nicknames !!!-package) + (package-nicknames !!!-package) + (list (package-name !!!-package))))))) + (loop for !!!-symbol being the symbols of !!!-package + for !!!-symbol-name = (symbol-name !!!-symbol) + when (or (eq (nth-value 1 + (find-symbol !!!-symbol-name + !!!-package)) :external) (eq !!!-package !!!-cl-user-package)) - do (loop for !!!-prefix in !!!-prefixes + do (loop for !!!-prefix in !!!-prefixes do (let ((!!!-completion - (format nil - "~A~A~%" - !!!-prefix - (string-downcase !!!-symbol)))) - (unless (or (gethash !!!-completion !!!-seen) - (string= "!!!-" - !!!-symbol-name - :end2 (min - (length !!!-symbol-name) - 4))) - (setf (gethash !!!-completion !!!-seen) - t) - (princ !!!-completion !!!-stream))))))))) + (format nil + "~A~A~%" + !!!-prefix + (string-downcase !!!-symbol)))) + (unless (or (gethash !!!-completion !!!-seen) + (string= "!!!-" + !!!-symbol-name + :end2 (min + (length !!!-symbol-name) + 4))) + (setf (gethash !!!-completion !!!-seen) + t) + (princ !!!-completion !!!-stream))))))))) diff --git a/gen-completions.sbcl b/gen-completions.sbcl index 3014779..9260e37 100755 --- a/gen-completions.sbcl +++ b/gen-completions.sbcl @@ -3,42 +3,42 @@ ;;; http://weitz.de/completions.html (with-open-file (!!!-stream "~/.sbcl_completions" - :direction :output - :if-exists :supersede) + :direction :output + :if-exists :supersede) (let ((!!!-seen (make-hash-table :size 6000 :test #'equal)) - (!!!-cl-package (find-package "CL")) - (!!!-cl-user-package (find-package "CL-USER"))) - (loop for !!!-package in (list-all-packages) + (!!!-cl-package (find-package "CL")) + (!!!-cl-user-package (find-package "CL-USER"))) + (loop for !!!-package in (list-all-packages) do (let ((!!!-prefixes - (if (or (eq !!!-package !!!-cl-package) - (eq !!!-package !!!-cl-user-package)) - (list "") - (mapcar #'(lambda (!!!-prefix) - (concatenate 'string - (string-downcase !!!-prefix) - ":")) - (if (package-nicknames !!!-package) - (package-nicknames !!!-package) - (list (package-name !!!-package))))))) - (loop for !!!-symbol being the symbols of !!!-package - for !!!-symbol-name = (symbol-name !!!-symbol) - when (or (eq (nth-value 1 - (find-symbol !!!-symbol-name - !!!-package)) + (if (or (eq !!!-package !!!-cl-package) + (eq !!!-package !!!-cl-user-package)) + (list "") + (mapcar #'(lambda (!!!-prefix) + (concatenate 'string + (string-downcase !!!-prefix) + ":")) + (if (package-nicknames !!!-package) + (package-nicknames !!!-package) + (list (package-name !!!-package))))))) + (loop for !!!-symbol being the symbols of !!!-package + for !!!-symbol-name = (symbol-name !!!-symbol) + when (or (eq (nth-value 1 + (find-symbol !!!-symbol-name + !!!-package)) :external) (eq !!!-package !!!-cl-user-package)) - do (loop for !!!-prefix in !!!-prefixes + do (loop for !!!-prefix in !!!-prefixes do (let ((!!!-completion - (format nil - "~A~A~%" - !!!-prefix - (string-downcase !!!-symbol)))) - (unless (or (gethash !!!-completion !!!-seen) - (string= "!!!-" - !!!-symbol-name - :end2 (min - (length !!!-symbol-name) - 4))) - (setf (gethash !!!-completion !!!-seen) - t) - (princ !!!-completion !!!-stream))))))))) + (format nil + "~A~A~%" + !!!-prefix + (string-downcase !!!-symbol)))) + (unless (or (gethash !!!-completion !!!-seen) + (string= "!!!-" + !!!-symbol-name + :end2 (min + (length !!!-symbol-name) + 4))) + (setf (gethash !!!-completion !!!-seen) + t) + (princ !!!-completion !!!-stream))))))))) diff --git a/manifests/default.pp b/manifests/default.pp deleted file mode 100644 index 145879c..0000000 --- a/manifests/default.pp +++ /dev/null @@ -1,457 +0,0 @@ -# -# Keep apt db uncorrupt: No timeout. -# - -class { 'apt': update_timeout => 60 } - -exec { 'apt-update': - command => 'apt-get update', - path => '/bin:/usr/bin', - timeout => 0 -} - -# -# Developer tools -# - -apt::ppa { [ - 'ppa:cassou/emacs', - 'ppa:hrzhu/smlnj-backport', - 'ppa:wnoronha/thrift', - 'ppa:bjourne/factor' - ]: - before => Exec['apt-update'] -} - -package { [ - 'ack-grep', - 'ant', - 'apache2', - 'aspell', - 'build-essential', - 'checkstyle', - 'chicken-bin', - 'clang', - 'clisp', - 'cppcheck', - 'curl', - 'emacs24', - 'erlang', - 'factor', - 'gawk', - 'gdc', - 'gfortran', - 'ghostscript', - 'git-core', - 'gnu-smalltalk', - 'gnustep', - 'gnustep-make', - 'gnustep-devel', - 'golang', - 'graphviz', - 'haskell-platform', - 'hlint', - 'imagemagick', - 'leiningen', - 'libapache2-mod-php5', - 'libecpg-dev', - 'libgc-dev', - 'libperl-dev', - 'libsqlite3-dev', - 'libxml2-utils', - 'llvm', - 'lua5.1', - 'maven', - 'mysql-client', - 'mysql-server', - 'nasm', - 'ocaml', - 'octave3.2', - 'openjdk-7-jdk', - 'perl-doc', - 'php5', - 'r-base', - 'redis-server', - 'scala', - 'sed', - 'sloccount', - 'smlnj', - 'splint', - 'sqlite3', - 'strace', - 'tcl', - 'texlive', - 'thrift-compiler', - 'tidy', - 'tree', - 'vagrant', - 'valgrind', - 'vim', - 'virtualbox', - 'yasm', - 'zsh' - ]: - ensure => present, - require => Exec['apt-update'] -} - -class { 'mongodb': } - -# -# Libraries -# - -exec { 'chicken cluckcheck': - command => 'chicken-install cluckcheck', - path => '/bin:/usr/bin', - require => [ - Package['build-essential'], - Package['chicken-bin'] - ], - onlyif => '/usr/bin/test ! -f /var/lib/chicken/6/cluckcheck.o' -} - -exec { 'cabal update': - command => 'cabal update', - environment => 'HOME=/root', - path => '/bin:/usr/bin', - require => [ - Package['build-essential'], - Package['haskell-platform'] - ] -} - -file { ['/root', '/root/.cabal']: - ensure => directory, - mode => '0644', -} - -file { '/root/.cabal/bin': - ensure => directory, - mode => '0655', - recurse => true -} - -exec { 'cabal graphviz': - command => 'cabal install graphviz', - path => '/bin:/usr/bin', - environment => 'HOME=/root', - timeout => 0, - require => Exec['cabal update'], - onlyif => '/usr/bin/test ! -d \ - /root/.cabal/packages/hackage.haskell.org/graphviz' -} - -exec { 'cabal shellcheck': - command => 'cabal install shellcheck', - path => '/bin:/usr/bin', - environment => 'HOME=/root', - timeout => 0, - require => Exec['cabal update'], - onlyif => '/usr/bin/test ! -d \ - /root/.cabal/packages/hackage.haskell.org/ShellCheck' -} - -class { 'python': - version => 'system', - virtualenv => true, - pip => true -} - -python::pip { 'invoke': - ensure => present, - pkgname => 'invoke', - owner => 'root' -} - -python::pip { 'pep8': - ensure => present, - pkgname => 'pep8', - owner => 'root' -} - -python::pip { 'pyflakes': - ensure => present, - pkgname => 'pyflakes', - owner => 'root' -} - -python::pip { 'pylint': - ensure => present, - pkgname => 'pylint', - owner => 'root' -} - -python::pip { 'pgsanity': - ensure => present, - pkgname => 'pgsanity', - owner => 'root', - require => Package['libecpg-dev'] -} - -class { 'perl': - require => [ - Package['build-essential'], - Package['libperl-dev'] - ] -} - -perl::module { [ - 'App::pmuninstall', - 'Test::More', - 'PAR::Packer', - 'Perl::Critic', - 'WWW::Mechanize', - 'YAML' - ]: -} - -class { 'nodejs': - version => 'stable' -} - -package { [ - 'bower', - 'coffee-script', - 'coffeelint', - 'csslint', - 'grunt-cli', - 'jshint', - 'less', - 'mocha', - 'sass', - 'stylus', - ]: - provider => 'npm', - require => Class['nodejs'] -} - -class { 'rvm': - version => '1.25.17' -} - -rvm::system_user { 'vagrant': ; } - -rvm_system_ruby { - 'ruby-2.1.0': - ensure => present, - default_use => false; -} - -rvm_gem { [ - 'aspelllint', - 'bundler', - 'cane', - 'churn', - 'cucumber', - 'excellent', - 'flay', - 'flog', - 'guard', - 'puppet-lint', - 'rake', - 'reek', - 'roodi', - 'rubocop', - 'rspec', - 'sasslint', - 'shlint', - 'specs', - 'tailor', - ]: - ensure => present, - ruby_version => 'ruby-2.1.0', - require => [ - Rvm_system_ruby['ruby-2.1.0'], - Package['aspell'], - Package['sed'] - ]; -} - -file { '/home/vagrant/.clisprc.lisp': - ensure => link, - target => '/home/vagrant/src/dotfiles/.clisprc.lisp', - owner => 'vagrant', - group => 'vagrant', - require => Vcsrepo['/home/vagrant/src/dotfiles'] -} - -exec { '/home/vagrant/quicklisp.lisp': - command => 'wget http://beta.quicklisp.org/quicklisp.lisp', - path => '/usr/bin', - user => 'vagrant', - cwd => '/home/vagrant', - onlyif => '/usr/bin/test ! -f /home/vagrant/quicklisp.lisp' -} - -file { '/home/vagrant/install-quicklisp.lisp': - ensure => link, - target => '/vagrant/install-quicklisp.lisp', - owner => 'vagrant', - group => 'vagrant' -} - -exec { 'clisp quicklisp': - command => 'clisp install-quicklisp.lisp', - path => '/usr/bin', - user => 'vagrant', - cwd => '/home/vagrant', - environment => 'HOME=/home/vagrant', - require => [ - Package['clisp'], - File['/home/vagrant/.clisprc.lisp'], - File['/home/vagrant/install-quicklisp.lisp'], - Exec['/home/vagrant/quicklisp.lisp'] - ], - onlyif => '/usr/bin/test ! -d /home/vagrant/quicklisp' -} - -exec { 'cl-quickcheck': - command => 'clisp -x "(ql:quickload \'cl-quickcheck)"', - path => '/usr/bin', - user => 'vagrant', - environment => 'HOME=/home/vagrant', - require => Exec['clisp quicklisp'], - onlyif => '/usr/bin/test ! -d \ - /home/vagrant/quicklisp/dists/quicklisp/software/cl-quickcheck-*-git' -} - -# -# User settings -# - -file { '/home/vagrant/src': - ensure => directory, - owner => 'vagrant', - group => 'vagrant' -} - -vcsrepo { '/home/vagrant/src/dotfiles': - ensure => latest, - provider => git, - source => 'https://github.com/mcandre/dotfiles', - owner => 'vagrant', - group => 'vagrant', - require => File['/home/vagrant/src'] -} - -file { '/home/vagrant/.vimrc': - ensure => link, - target => '/home/vagrant/src/dotfiles/.vimrc', - owner => 'vagrant', - group => 'vagrant', - require => Vcsrepo['/home/vagrant/src/dotfiles'] -} - -file { '/home/vagrant/.vim/': - ensure => directory, - owner => 'vagrant', - group => 'vagrant', -} - -vcsrepo { '/home/vagrant/.vim/bundle/vundle': - ensure => present, - provider => git, - source => 'https://github.com/gmarik/vundle', - owner => 'vagrant', - group => 'vagrant' -} - -exec { 'vundle': - command => 'vim +BundleInstall +qall', - path => '/bin:/usr/bin', - user => 'vagrant', - environment => 'HOME=/home/vagrant/', - refreshonly => true, - require => [ - Package['vim'], - Vcsrepo['/home/vagrant/.vim/bundle/vundle'], - File['/home/vagrant/.vimrc'] - ], - subscribe => Vcsrepo['/home/vagrant/src/dotfiles'] -} - -file { '/home/vagrant/.emacs.d/': - ensure => directory, - owner => 'vagrant', - group => 'vagrant' -} - -vcsrepo { '/home/vagrant/.cask': - ensure => present, - provider => git, - source => 'https://github.com/cask/cask', - owner => 'vagrant', - group => 'vagrant' -} - -file { '/home/vagrant/.emacs.d/Cask': - ensure => link, - target => '/home/vagrant/src/dotfiles/Cask', - owner => 'vagrant', - group => 'vagrant', - require => [ - File['/home/vagrant/.emacs.d/'], - Vcsrepo['/home/vagrant/src/dotfiles'] - ] -} - -file { '/home/vagrant/.emacs': - ensure => link, - target => '/home/vagrant/src/dotfiles/.emacs', - owner => 'vagrant', - group => 'vagrant', - require => Vcsrepo['/home/vagrant/src/dotfiles'] -} - -exec { 'cask': - command => 'cask update && cask install', - cwd => '/home/vagrant/.emacs.d/', - path => '/bin:/usr/bin:/home/vagrant/.cask/bin', - user => 'vagrant', - environment => 'HOME=/home/vagrant/', - refreshonly => true, - require => [ - Package['emacs24'], - Vcsrepo['/home/vagrant/.cask'], - File['/home/vagrant/.emacs.d/Cask'] - ], - subscribe => Vcsrepo['/home/vagrant/src/dotfiles'] -} - -file { '/home/vagrant/.nanorc': - ensure => link, - target => '/home/vagrant/src/dotfiles/.nanorc', - owner => 'vagrant', - group => 'vagrant', - require => Vcsrepo['/home/vagrant/src/dotfiles'] -} - -vcsrepo { '/home/vagrant/.nano': - ensure => present, - provider => git, - source => 'https://github.com/serialhex/nano-highlight', - owner => 'vagrant', - group => 'vagrant' -} - -file { '/home/vagrant/.ackrc': - ensure => link, - target => '/home/vagrant/dotfiles/.ackrc', - owner => 'vagrant', - group => 'vagrant', - require => Vcsrepo['/home/vagrant/src/dotfiles'] -} - -file { '/home/vagrant/.bash_profile': - ensure => link, - target => '/vagrant/.bash_profile', - owner => 'vagrant', - group => 'vagrant' -} - -file { '/home/vagrant/.zshrc': - ensure => present, - owner => 'vagrant', - group => 'vagrant' -} diff --git a/motd b/motd index e69de29..8b13789 100755 --- a/motd +++ b/motd @@ -0,0 +1 @@ + diff --git a/package.json b/package.json new file mode 100644 index 0000000..fa196cd --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "dotfiles", + "description": "Example configurations", + "version": "0.0.1", + "repository": { + "type": "git", + "url": "https://github.com/mcandre/dotfiles.git" + }, + "author": "Andrew Pennebaker ", + "engines": { + "node": ">=6.9.1" + }, + "devDependencies": { + "eclint": "~2.8.1" + } +} diff --git a/pc b/pc index 2b646e0..86c6696 100644 --- a/pc +++ b/pc @@ -65,13 +65,13 @@ xkb_symbols "pc105" { hidden partial alphanumeric_keys xkb_symbols "editing" { key { - type= "PC_ALT_LEVEL2", - symbols[Group1]= [ Print, Sys_Req ] + type= "PC_ALT_LEVEL2", + symbols[Group1]= [ Print, Sys_Req ] }; key { [ Scroll_Lock ] }; key { - type= "PC_CONTROL_LEVEL2", - symbols[Group1]= [ Pause, Break ] + type= "PC_CONTROL_LEVEL2", + symbols[Group1]= [ Pause, Break ] }; key { [ Insert ] }; key { [ Home ] }; diff --git a/pom.xml b/pom.xml index 9b3e9f8..4b27ea2 100644 --- a/pom.xml +++ b/pom.xml @@ -1,230 +1,230 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - us.yellosoft.painbow - painbow - 0.0.1 - jar + us.yellosoft.painbow + painbow + 0.0.1 + jar - painbow - https://github.com/mcandre/painbow/ + painbow + https://github.com/mcandre/painbow/ - - UTF-8 - + + UTF-8 + - - - - standard-jdk - - - ${java.home}/../lib/tools.jar - - - - ${java.home}/../lib/tools.jar - - - - apple-jdk - - - ${java.home}/../Classes/classes.jar - - - - ${java.home}/../Classes/classes.jar - - - + + + + standard-jdk + + + ${java.home}/../lib/tools.jar + + + + ${java.home}/../lib/tools.jar + + + + apple-jdk + + + ${java.home}/../Classes/classes.jar + + + + ${java.home}/../Classes/classes.jar + + + - - - - - org.apache.maven.plugins - maven-assembly-plugin - 2.5.5 - - - jar-with-dependencies - - - - true - us.yellosoft.painbow.Painbow - - - - - - assemble-all - package - - single - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.9 - - - false - - - - - org.apache.maven.plugins - maven-compiler-plugin - 2.3.2 - - ${jdk.version} - ${jdk.version} - -Xlint:all - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - 2.10 - - checkstyle.xml - true - - - - - org.apache.maven.plugins - maven-pmd-plugin - 3.0.1 - - true - true - true - - ${basedir}${file.separator}pmd.xml - - - - - - org.codehaus.mojo - cobertura-maven-plugin - 2.6 - - - com.sun - tools - 1.6 - system - ${tools-jar} - - - - - - **/thrift/*.class - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 2.10 - - - + + + + + org.apache.maven.plugins + maven-assembly-plugin + 2.5.5 + + + jar-with-dependencies + + + + true + us.yellosoft.painbow.Painbow + + + + + + assemble-all + package + + single + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.9 + + + false + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.2 + + ${jdk.version} + ${jdk.version} + -Xlint:all + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 2.10 + + checkstyle.xml + true + + + + + org.apache.maven.plugins + maven-pmd-plugin + 3.0.1 + + true + true + true + + ${basedir}${file.separator}pmd.xml + + + + + + org.codehaus.mojo + cobertura-maven-plugin + 2.6 + + + com.sun + tools + 1.6 + system + ${tools-jar} + + + + + + **/thrift/*.class + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.10 + + + - - - - - org.apache.maven.plugins - maven-jxr-plugin - 2.3 - - - - org.codehaus.mojo - cobertura-maven-plugin - 2.6 - - - html - xml - - - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - 2.6 - - - - index - project-team - modules - plugins - cim - issue-tracking - scm - license - plugin-management - distribution-management - summary - mailing-list - - - - - - + + + + + org.apache.maven.plugins + maven-jxr-plugin + 2.3 + + + + org.codehaus.mojo + cobertura-maven-plugin + 2.6 + + + html + xml + + + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 2.6 + + + + index + project-team + modules + plugins + cim + issue-tracking + scm + license + plugin-management + distribution-management + summary + mailing-list + + + + + + - - - com.offbytwo - docopt - 0.6.0.20150202 - - - org.lucee - commons-codec - 1.10.0 - - - com.datastax.cassandra - cassandra-driver-core - 2.1.7.1 - - - net.sourceforge.cobertura - cobertura - 2.0.3 - - - com.sun - tools - - - - - org.codehaus.mojo - cobertura-maven-plugin - 2.6 - - - org.slf4j - slf4j-simple - 1.6.4 - - + + + com.offbytwo + docopt + 0.6.0.20150202 + + + org.lucee + commons-codec + 1.10.0 + + + com.datastax.cassandra + cassandra-driver-core + 2.1.7.1 + + + net.sourceforge.cobertura + cobertura + 2.0.3 + + + com.sun + tools + + + + + org.codehaus.mojo + cobertura-maven-plugin + 2.6 + + + org.slf4j + slf4j-simple + 1.6.4 + + diff --git a/profile.ps1 b/profile.ps1 index 36782af..d4a1e59 100755 --- a/profile.ps1 +++ b/profile.ps1 @@ -10,11 +10,11 @@ function emacs { emacs.exe -nw $args } function ll { cmd /c dir /a $args } function gitignore { curl.exe -k https://www.gitignore.io/api/$args } function lsdu { - $folders = Get-ChildItem $args | select Name,@{n="Length"; e={[long](ls $_ -file -rec | measure Length -sum | % Sum)}} | sort Length -d - $files = Get-ChildItem -File | select Name, Length | sort Length -d - $list = $folders + $files + $folders = Get-ChildItem $args | select Name,@{n="Length"; e={[long](ls $_ -file -rec | measure Length -sum | % Sum)}} | sort Length -d + $files = Get-ChildItem -File | select Name, Length | sort Length -d + $list = $folders + $files - return $list + return $list } & "C:\Program Files\Docker Toolbox\docker-machine.exe" env default | Invoke-Expression diff --git a/profiles.clj b/profiles.clj index 56300e1..8bd1348 100755 --- a/profiles.clj +++ b/profiles.clj @@ -1,4 +1,4 @@ ;; ln .../profiles.clj ~/.lein/profiles.clj {:user {:plugins [[lein-exec "0.3.0"] - [jonase/eastwood "0.0.2"]]}} + [jonase/eastwood "0.0.2"]]}} diff --git a/roodi.yml b/roodi.yml index b19ed0e..0cbad2c 100644 --- a/roodi.yml +++ b/roodi.yml @@ -1,3 +1,3 @@ --- MethodLineCountCheck: - line_count: 50 + line_count: 50 diff --git a/setenv.MOZ_DISABLE_SAFE_MODE_KEY.plist b/setenv.MOZ_DISABLE_SAFE_MODE_KEY.plist index b14f50d..ae5a8d5 100644 --- a/setenv.MOZ_DISABLE_SAFE_MODE_KEY.plist +++ b/setenv.MOZ_DISABLE_SAFE_MODE_KEY.plist @@ -1,12 +1,12 @@ @@ -16,10 +16,10 @@ setenv.MOZ_DISABLE_SAFE_MODE_KEY ProgramArguments - /bin/launchctl - setenv - MOZ_DISABLE_SAFE_MODE_KEY - 1 + /bin/launchctl + setenv + MOZ_DISABLE_SAFE_MODE_KEY + 1 RunAtLoad diff --git a/settings.json b/settings.json index f871eca..1b02a8f 100644 --- a/settings.json +++ b/settings.json @@ -1,70 +1,70 @@ { - "alt-speed-down": 50, - "alt-speed-enabled": false, - "alt-speed-time-begin": 540, - "alt-speed-time-day": 127, - "alt-speed-time-enabled": false, - "alt-speed-time-end": 1020, - "alt-speed-up": 50, - "bind-address-ipv4": "0.0.0.0", - "bind-address-ipv6": "::", - "blocklist-enabled": false, - "blocklist-url": "http://www.example.com/blocklist", - "cache-size-mb": 4, - "dht-enabled": true, - "download-dir": "/var/lib/transmission-daemon/downloads", - "download-limit": 100, - "download-limit-enabled": 0, - "download-queue-enabled": true, - "download-queue-size": 5, - "encryption": 1, - "idle-seeding-limit": 30, - "idle-seeding-limit-enabled": false, - "incomplete-dir": "/root/Downloads", - "incomplete-dir-enabled": false, - "lpd-enabled": false, - "max-peers-global": 200, - "message-level": 2, - "peer-congestion-algorithm": "", - "peer-limit-global": 240, - "peer-limit-per-torrent": 60, - "peer-port": 51413, - "peer-port-random-high": 65535, - "peer-port-random-low": 49152, - "peer-port-random-on-start": false, - "peer-socket-tos": "default", - "pex-enabled": true, - "port-forwarding-enabled": false, - "preallocation": 1, - "prefetch-enabled": 1, - "queue-stalled-enabled": true, - "queue-stalled-minutes": 30, - "ratio-limit": 2, - "ratio-limit-enabled": false, - "rename-partial-files": true, - "rpc-authentication-required": true, - "rpc-bind-address": "0.0.0.0", - "rpc-enabled": true, - "rpc-password": "password", - "rpc-port": 9091, - "rpc-url": "/transmission/", - "rpc-username": "pi", - "rpc-whitelist": "127.0.0.1,192.168.*.*", - "rpc-whitelist-enabled": true, - "scrape-paused-torrents-enabled": true, - "script-torrent-done-enabled": false, - "script-torrent-done-filename": "", - "seed-queue-enabled": false, - "seed-queue-size": 10, - "speed-limit-down": 100, - "speed-limit-down-enabled": false, - "speed-limit-up": 100, - "speed-limit-up-enabled": false, - "start-added-torrents": true, - "trash-original-torrent-files": false, - "umask": 18, - "upload-limit": 100, - "upload-limit-enabled": 0, - "upload-slots-per-torrent": 14, - "utp-enabled": true + "alt-speed-down": 50, + "alt-speed-enabled": false, + "alt-speed-time-begin": 540, + "alt-speed-time-day": 127, + "alt-speed-time-enabled": false, + "alt-speed-time-end": 1020, + "alt-speed-up": 50, + "bind-address-ipv4": "0.0.0.0", + "bind-address-ipv6": "::", + "blocklist-enabled": false, + "blocklist-url": "http://www.example.com/blocklist", + "cache-size-mb": 4, + "dht-enabled": true, + "download-dir": "/var/lib/transmission-daemon/downloads", + "download-limit": 100, + "download-limit-enabled": 0, + "download-queue-enabled": true, + "download-queue-size": 5, + "encryption": 1, + "idle-seeding-limit": 30, + "idle-seeding-limit-enabled": false, + "incomplete-dir": "/root/Downloads", + "incomplete-dir-enabled": false, + "lpd-enabled": false, + "max-peers-global": 200, + "message-level": 2, + "peer-congestion-algorithm": "", + "peer-limit-global": 240, + "peer-limit-per-torrent": 60, + "peer-port": 51413, + "peer-port-random-high": 65535, + "peer-port-random-low": 49152, + "peer-port-random-on-start": false, + "peer-socket-tos": "default", + "pex-enabled": true, + "port-forwarding-enabled": false, + "preallocation": 1, + "prefetch-enabled": 1, + "queue-stalled-enabled": true, + "queue-stalled-minutes": 30, + "ratio-limit": 2, + "ratio-limit-enabled": false, + "rename-partial-files": true, + "rpc-authentication-required": true, + "rpc-bind-address": "0.0.0.0", + "rpc-enabled": true, + "rpc-password": "password", + "rpc-port": 9091, + "rpc-url": "/transmission/", + "rpc-username": "pi", + "rpc-whitelist": "127.0.0.1,192.168.*.*", + "rpc-whitelist-enabled": true, + "scrape-paused-torrents-enabled": true, + "script-torrent-done-enabled": false, + "script-torrent-done-filename": "", + "seed-queue-enabled": false, + "seed-queue-size": 10, + "speed-limit-down": 100, + "speed-limit-down-enabled": false, + "speed-limit-up": 100, + "speed-limit-up-enabled": false, + "start-added-torrents": true, + "trash-original-torrent-files": false, + "umask": 18, + "upload-limit": 100, + "upload-limit-enabled": 0, + "upload-slots-per-torrent": 14, + "utp-enabled": true } diff --git a/vsexec.bat b/vsexec.bat index 5f00871..3649048 100644 --- a/vsexec.bat +++ b/vsexec.bat @@ -1,9 +1,9 @@ -:: Execute the specified command within a Visual Studio context, -:: where the necessary environment variables are sufficiently configured. -:: -:: Usage: vsexec.bat -:: -:: Requires a Command Prompt or PowerShell context to operate. - -call "C:\\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64 -%* +:: Execute the specified command within a Visual Studio context, +:: where the necessary environment variables are sufficiently configured. +:: +:: Usage: vsexec.bat +:: +:: Requires a Command Prompt or PowerShell context to operate. + +call "C:\\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64 +%*