summary refs log tree commit diff
path: root/configs/rcs
diff options
context:
space:
mode:
Diffstat (limited to 'configs/rcs')
-rw-r--r--configs/rcs/Makefile41
-rw-r--r--configs/rcs/agignore5
-rw-r--r--configs/rcs/aspell.en.pws16
-rwxr-xr-xconfigs/rcs/bashrc54
-rw-r--r--configs/rcs/ctags25
-rw-r--r--configs/rcs/emacs.d/init.el343
-rw-r--r--configs/rcs/gitconfig20
-rw-r--r--configs/rcs/gitignore24
8 files changed, 0 insertions, 528 deletions
diff --git a/configs/rcs/Makefile b/configs/rcs/Makefile
deleted file mode 100644
index e71e986..0000000
--- a/configs/rcs/Makefile
+++ /dev/null
@@ -1,41 +0,0 @@
-INTO      = $(HOME)
-
-
-INSTALL = \
-	agignore \
-	aspell.en.pws \
-	bashrc \
-	ctags \
-	emacs.d \
-	gitconfig \
-	gitignore
-
-
-INSTALLED = $(patsubst %,$(INTO)/.%,$(INSTALL))
-LN        = @ln -sf
-
-$(INTO)/.% : %
-	@[ ! -e $@ ] || [ -h $@ ] || mv -f $@ $@.bak
-	$(LN) $(PWD)/$< $@
-
-$(HOME)/.ssh/authorized_keys:
-	@curl https://github.com/fcuny.keys -o $(HOME)/.ssh/authorized_keys
-
-$(HOME)/workspace:
-	@mkdir -p $(HOME)/workspace/
-
-.PHONY: git
-git:
-	@git config --local user.email "franck.cuny@gmail.com"
-	@git config --local user.name "Franck Cuny"
-
-.PHONY: check-dead
-check-dead:
-	@find ~ -maxdepth 1 -name '.*' -type l -exec test ! -e {} \; -print
-
-.PHONY: clean-dead
-clean-dead:
-	@find ~ -maxdepth 1 -name '.*' -type l -exec test ! -e {} \; -delete
-
-.PHONY: install
-install: $(INSTALLED) $(HOME)/workspace $(HOME)/.ssh/authorized_keys
diff --git a/configs/rcs/agignore b/configs/rcs/agignore
deleted file mode 100644
index afeb483..0000000
--- a/configs/rcs/agignore
+++ /dev/null
@@ -1,5 +0,0 @@
-/go/pkg
-*.js
-*.css
-*.pdf
-*.git
diff --git a/configs/rcs/aspell.en.pws b/configs/rcs/aspell.en.pws
deleted file mode 100644
index 5525b9f..0000000
--- a/configs/rcs/aspell.en.pws
+++ /dev/null
@@ -1,16 +0,0 @@
-personal_ws-1.1 en 15 
-IP
-DistributedLog
-distributedlog
-filesystems
-DeferredRPC
-Cuny
-koalabird
-cql
-lumberjaph
-mesos
-easyviz
-DHCPD
-TSS
-EventBus
-SRE
diff --git a/configs/rcs/bashrc b/configs/rcs/bashrc
deleted file mode 100755
index 302472a..0000000
--- a/configs/rcs/bashrc
+++ /dev/null
@@ -1,54 +0,0 @@
-export EDITOR="emacsclient -nw"
-export HISTFILE=
-export LANG="en_US.UTF-8"
-export LC_ALL="$LANG"
-export LC_CTYPE="$LANG"
-export PAGER="less"
-export TZ=America/Los_Angeles
-export GOPATH="${HOME}/workspace/go"
-
-[ -z "$PS1" ] && return
-
-# prompts
-export PS1="\h:\w % "
-
-RC_DIR=$(dirname $(readlink ${BASH_SOURCE[0]}))
-
-# finally, build the path and source a few files
-__add_to_path_if_exists() {
-  [ -d "$1" ] && export PATH="$1:$PATH"
-}
-
-__source_file_if_exists() {
-  [ -s "$1" ] && source "$1"
-}
-
-__add_to_path_if_exists "${HOME}/workspace/bin"
-__add_to_path_if_exists "${GOPATH}/bin"
-__add_to_path_if_exists "${RC_DIR}/../../scripts/"
-
-__source_file_if_exists "/opt/google-cloud-sdk/path.bash.inc"
-__source_file_if_exists "/opt/google-cloud-sdk/completion.bash.inc"
-
-# Twitter paths
-__add_to_path_if_exists "${HOME}/workspace/git.twitter.biz/source/dist"
-__add_to_path_if_exists "/opt/twitter/opt/go/libexec/bin"
-__add_to_path_if_exists "/opt/twitter/bin"
-__source_file_if_exists "/opt/twitter/rvm/scripts/rvm"
-
-alias cp="cp -i"
-alias l="ls"
-alias la="ls -a"
-alias ll="ls -lh"
-alias lt="ls -lhtr"
-alias mv="mv -i"
-alias rm="rm -i"
-
-alias g="git"
-alias s="cd ~/workspace/git.twitter.biz/source"
-
-alias gomesosbuild="ssh -A smf1-egu-15-sr1.prod.twitter.com"
-
-alias smf1pending='curl -s https://aurora-smf1.twitter.biz/pendingtasks | jq .'
-alias atlapending='curl -s https://aurora-atla.twitter.biz/pendingtasks | jq .'
-
diff --git a/configs/rcs/ctags b/configs/rcs/ctags
deleted file mode 100644
index 3d83cd1..0000000
--- a/configs/rcs/ctags
+++ /dev/null
@@ -1,25 +0,0 @@
---recurse=yes
---exclude=.git,.pants.d
---exclude=log
---languages=-javascript,-html
---append
---tag-relative=yes
-
---langdef=Go
---langmap=Go:.go
---regex-Go=/func([ \t]+\([^)]+\))?[ \t]+([a-zA-Z0-9_]+)/\2/d,func/
---regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/d,type/
---regex-Go=/var[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/d,var/
-
---langdef=scala
---langmap=scala:.scala
---regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*(private[^ ]*|protected)?[ \t]*class[ \t]+([a-zA-Z0-9_]+)/\4/c,classes/
---regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*(private[^ ]*|protected)?[ \t]*object[ \t]+([a-zA-Z0-9_]+)/\4/c,objects/
---regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*(private[^ ]*|protected)?[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*case class[ \t]+([a-zA-Z0-9_]+)/\6/c,case classes/
---regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*(private[^ ]*|protected)?[ \t]*case object[ \t]+([a-zA-Z0-9_]+)/\4/c,case objects/
---regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*(private[^ ]*|protected)?[ \t]*trait[ \t]+([a-zA-Z0-9_]+)/\4/t,traits/
---regex-scala=/^[ \t]*type[ \t]+([a-zA-Z0-9_]+)/\1/T,types/
---regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy|private[^ ]*(\[[a-z]*\])*|protected)[ \t]*)*def[ \t]+([a-zA-Z0-9_]+)/\4/m,methods/
---regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy|private[^ ]*|protected)[ \t]*)*val[ \t]+([a-zA-Z0-9_]+)/\3/l,constants/
---regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy|private[^ ]*|protected)[ \t]*)*var[ \t]+([a-zA-Z0-9_]+)/\3/l,variables/
---regex-scala=/^[ \t]*package[ \t]+([a-zA-Z0-9_.]+)/\1/p,packages/
diff --git a/configs/rcs/emacs.d/init.el b/configs/rcs/emacs.d/init.el
deleted file mode 100644
index 2506a77..0000000
--- a/configs/rcs/emacs.d/init.el
+++ /dev/null
@@ -1,343 +0,0 @@
-;; Initialize the package system first of all.
-(require 'package)
-
-(setq package-archives '(("melpa" . "https://melpa.org/packages/")))
-
-(defvar fcuny-path-emacs-var (expand-file-name "var" user-emacs-directory)
-  "Path to some files for Emacs.")
-
-(defvar fcuny-path-emacs-elpa (expand-file-name "elpa" fcuny-path-emacs-var)
-  "Path to elpa's local files.")
-
-;; where to store the packages
-(setq package-user-dir fcuny-path-emacs-elpa)
-
-;; initialize it
-(package-initialize)
-
-;; if use-package is not present, we install it
-(unless (package-installed-p 'use-package)
-  (package-refresh-contents)
-  (package-install 'use-package))
-
-(require 'use-package)
-
-(defvar fcuny/bookmarks-dir (expand-file-name "bookmarks" fcuny-path-emacs-var)
-  "Path to save the bookmarks")
-
-(defvar fcuny/custom-settings (expand-file-name "emacs-custom.el" fcuny-path-emacs-var)
-  "Path to emacs custom variables.")
-
-(defun fcuny/rename-this-buffer-and-file ()
-  "Renames current buffer and file it is visiting."
-  (interactive)
-  (let ((name (buffer-name))
-        (filename (buffer-file-name))
-        (read-file-name-function 'read-file-name-default))
-    (if (not (and filename (file-exists-p filename)))
-        (error "Buffer '%s' is not visiting a file!" name)
-      (let ((new-name (read-file-name "New name: " filename)))
-        (cond ((get-buffer new-name)
-               (error "A buffer named '%s' already exists!" new-name))
-              (t
-               (rename-file filename new-name 1)
-               (rename-buffer new-name)
-               (set-visited-file-name new-name)
-               (set-buffer-modified-p nil)
-               (message "File '%s' successfully renamed to '%s'" name (file-name-nondirectory new-name))))))))
-
-(defun fcuny/check-work-machine-p ()
-  "Returns t if this is a work machine"
-  (string-match "tw-mbp.*" (system-name)))
-
-(defun fcuny/remove-mysql-columns ()
-  "Removes | from text. This is useful when I want to drop the column separator from some text coming from a mysql query."
-  (interactive)
-  (if (region-active-p)
-      (replace-regexp "\s?|\s?" "" nil (region-beginning) (region-end))
-    (replace-regexp "\s?|\s?" "")))
-
-;; set utf-8 as the default encoding
-(prefer-coding-system 'utf-8-unix)
-(set-terminal-coding-system 'utf-8)
-(set-keyboard-coding-system 'utf-8)
-
-;; alias yes-or-no to y-or-n
-(fset 'yes-or-no-p 'y-or-n-p)
-
-(setq auto-save-default nil)                     ;; don't auto save files
-(setq auto-save-list-file-prefix nil)            ;; no backups
-(setq create-lockfiles nil)                      ;; don't use a lock file
-(setq custom-file fcuny/custom-settings)         ;; where to save custom settings
-(setq make-backup-files nil)                     ;; really no backups
-(setq minibuffer-message-timeout 0.5)            ;; How long to display an echo-area message
-(setq next-screen-context-lines 5)               ;; scroll 5 lines at a time
-(setq require-final-newline t)                   ;; ensure newline exists at the end of the file
-(setq ring-bell-function 'ignore)                ;; really no bell
-(setq tab-always-indent 'complete)               ;; when using TAB, always indent
-(setq visible-bell nil)                          ;; no bell
-(setq column-number-mode t)                      ;; show column number in the mode line
-(setq-default indent-tabs-mode nil)              ;; turn off tab indentation
-(setq-default cursor-type 'hbar)                 ;; cursor is a horizontal bar
-(setq bookmark-default-file fcuny/bookmarks-dir) ;; where to save bookmarks
-(setq bookmark-save-flag 1)                      ;; save bookmarks when emacs qui
-(setq vc-handled-backends nil)                   ;; don't use the VC backend, it's too slow with source
-(setq-default delete-by-moving-to-trash t)       ;; delete files by moving them to the trash
-(setq initial-scratch-message "")                ;; empty scratch buffer
-
-(custom-set-variables
- '(tool-bar-mode nil)
- '(scroll-bar-mode nil)
- '(use-file-dialog nil)
- '(use-dialog-box nil)
- '(blink-cursor-mode nil)
- '(inhibit-startup-screen t)
- '(inhibit-startup-message t)
- '(inhibit-startup-echo-area-message t))
-
-(use-package frame
-  :bind (("C-c C-m" . toggle-frame-fullscreen))
-  :config
-  (progn
-    (defun fcuny/setup-frame(&optional frame)
-      (fringe-mode '(10 . 10))
-      (setq-default frame-title-format "%b")
-      (set-face-attribute 'default nil :height 150 :weight 'normal :width 'normal :font "Source Code Pro")
-      (when (eq system-type 'darwin)
-        (setq ns-use-native-fullscreen nil)
-        (setq mac-allow-anti-aliasing t)))
-  (fcuny/setup-frame)))
-
-(use-package general
-  :config
-  (general-define-key
-   "M-j" 'join-line))
-
-;;; emacs hygiene
-
-(use-package midnight
-  :config
-  (midnight-mode t))
-
-(use-package server
-  :hook (after-init . server-start))
-
-(use-package exec-path-from-shell
-  :ensure t
-  :if (memq window-system '(mac ns))
-  :config
-  (exec-path-from-shell-initialize))
-
-;;; general editing
-
-(use-package ace-window
-  :ensure t
-  :bind (("C-x o" . ace-window)))
-
-(use-package recentf
-  :config
-  (recentf-mode 1)
-  (setq recentf-max-saved-items 500
-        recentf-save-file (expand-file-name "var/recentf" user-emacs-directory)))
-
-(use-package autorevert
-  :config
-  (setq global-auto-revert-non-file-buffers t)
-  (setq auto-revert-verbose nil)
-  (global-auto-revert-mode t))
-
-(use-package hl-line
-  :config
-  (set-face-background 'hl-line "#E0EBF5")
-  (global-hl-line-mode t))
-
-(use-package uniquify
-  :defer 5
-  :config
-  (setq uniquify-ignore-buffers-re "^\\*") ; don't muck with special buffers
-  (setq uniquify-buffer-name-style 'forward)
-  (setq uniquify-separator "/"))
-
-;;; files navigation
-
-(use-package ag
-  :ensure t
-  :bind (:map ag-mode-map
-              ("p" . compilation-previous-error)
-              ("n" . compilation-next-error)
-              ("N" . compilation-next-file)
-              ("P" . compilation-previous-file))
-  :custom
-  (ag-highlight-search t)
-  (ag-reuse-buffers t)
-  (ag-reuse-window t))
-
-(use-package dired
-  :defer t
-  :bind (("C-x C-d" . dired)
-         ("C-x C-j" . dired-jump))
-  :init
-  (setq-default dired-dwim-target t)
-  (setq-default dired-listing-switches "--group-directories-first -alh")
-  (setq dired-recursive-deletes 'always)
-  (setq dired-recursive-copies 'always)
-
-  (let ((gls (executable-find "/opt/twitter/bin/gls")))
-    (when gls (setq insert-directory-program gls))))
-
-(use-package ibuffer
-  :bind ("C-x C-b" . ibuffer))
-
-;;; general text editing
-
-(use-package flyspell
-  :hook ((text-mode . flyspell-mode)
-         (prog-mode . flyspell-prog-mode))
-  :config
-  (setq ispell-dictionary "en_US")
-
-  (when (executable-find "aspell")
-    (setq ispell-program-name "aspell"
-          ispell-list-command "--list"))
-
-  (use-package flyspell-correct
-    :after (flyspell)
-    :commands (flyspell-correct-word-generic
-               flyspell-correct-previous-word-generic)
-    :bind (:map flyspell-mode-map
-                ("C-;" . flyspell-correct-previous-word-generic))))
-
-(use-package whitespace
-  :custom
-  (whitespace-style '(face trailing))
-  (show-trailing-whitespace t)
-  :hook (whitespace-mode))
-
-(use-package electric-pair-mode
-  :commands electric-pair-mode
-  :init (add-hook 'prog-mode-hook 'electric-pair-mode))
-
-(use-package paren
-  :ensure t
-  :custom
-  (show-paren-delay 0)
-  :config
-  (show-paren-mode 1))
-
-;;; text formats
-
-(use-package markdown-mode
-  :ensure t
-  :after (flyspell)
-  :commands (markdown-mode gfm-mode)
-  :mode (("README\\.md\\'" . gfm-mode)
-         ("\\.md\\'"       . gfm-mode)
-         ("\\.markdown\\'" . gfm-mode)))
-
-;;; source control
-
-(use-package magit
-  :ensure t
-  :after (flyspell)
-  :hook ((magit-mode . hl-line-mode))
-  :bind (("C-x g s" . magit-status))
-  :config
-  (setq git-commit-summary-max-length 50)
-  (setq git-commit-fill-column 72)
-  (setq git-commit-turn-on-auto-fill t))
-
-;;; prog mode
-
-(use-package flycheck
-  :ensure t
-  :custom
-  (flycheck-idle-change-delay 2))
-
-(use-package lisp-mode
-  :bind
-  (("C-c C-e" . eval-buffer)
-   ("C-c C-r" . eval-region)))
-
-(use-package make-mode
-  :config
-  (add-hook 'makefile-mode-hook (lambda () (setq-local tab-width 2))))
-
-(use-package go-mode
-  :ensure t
-  :after (exec-path-from-shell)
-  :hook (go-mode . fcuny/go-mode-setup)
-  :init
-  (defun fcuny/go-mode-setup ()
-    (setq tab-width 4)
-    (add-hook 'before-save-hook 'gofmt-before-save))
-  :config
-  (when (memq window-system '(mac ns))
-    (exec-path-from-shell-copy-env "GOPATH")))
-
-(use-package python
-  :mode (("\\.py$"   . python-mode)
-         ("BUILD\\'" . python-mode))
-  :commands python-mode
-  :custom (python-indent-offset 2))
-
-(use-package sh-script
-  :mode ("bashrc" . sh-mode)
-  :hook (after-save . executable-make-buffer-file-executable-if-script-p)
-  :config
-  (setq-default sh-indentation 2
-                sh-basic-offset 2))
-
-;;; configurations
-
-(use-package dockerfile-mode
-  :ensure t
-  :mode "Dockerfile[a-zA-Z.-]*\\'")
-
-(use-package gitconfig-mode
-  :ensure t
-  :defer 5)
-
-(use-package puppet-mode
-  :ensure t
-  :bind (:map puppet-mode-map
-              ("C-c |" . puppet-align-block)))
-
-(use-package yaml-mode
-  :ensure t)
-
-(use-package json-mode
-  :after (flyspell flycheck)
-  :custom
-  (json-reformat:indent-width 2)
-  (js-indent-level 2)
-  :hook ((json-mode . flyspell-prog-mode)
-         (json-mode . flycheck-mode))
-  :init
-  (if (fcuny/check-work-machine-p)
-    (add-to-list 'auto-mode-alist '("\\.workflow$" . json-mode))))
-
-(use-package protobuf-mode
-  :after (flyspell flycheck)
-  :ensure t
-  :hook ((protobuf-mode . flyspell-prog-mode)
-         (protobuf-mode . flycheck-mode)))
-
-(use-package counsel
-  :ensure t
-  :init (counsel-mode 1) (ivy-mode 1)
-  :bind
-  (("M-x"     . counsel-M-x)
-   ("C-s"     . counsel-grep-or-swiper)
-   ("C-x C-f" . counsel-find-file)
-   ("C-x C-r" . counsel-recentf)
-   ("C-c f"   . counsel-git)
-   ("C-c s"   . counsel-git-grep)
-   ("C-c /"   . counsel-ag)
-   ("C-x r l" . counsel-bookmark))
-  :custom
-  (counsel-find-file-at-point t)
-  (ivy-use-virtual-buffers t)
-  (ivy-count-format "(%d/%d) ")
-  (ivy-height 10)
-  :config
-  (use-package swiper :ensure t))
diff --git a/configs/rcs/gitconfig b/configs/rcs/gitconfig
deleted file mode 100644
index 8914029..0000000
--- a/configs/rcs/gitconfig
+++ /dev/null
@@ -1,20 +0,0 @@
-[color]
-	ui = true
-
-[push]
-	default = simple
-
-[core]
-	whitespace = trailing-space,space-before-tab
-	excludesfile = ~/.gitignore
-
-[branch]
-	autosetuprebase = remote
-
-[include]
-	path = ~/.gitconfig.private
-
-[http]
-	postBuffer = 524288000
-[url "https://source.developers.google.com/p/fcuny-code/r/"]
-	insteadOf = gcloud:
diff --git a/configs/rcs/gitignore b/configs/rcs/gitignore
deleted file mode 100644
index c8124cb..0000000
--- a/configs/rcs/gitignore
+++ /dev/null
@@ -1,24 +0,0 @@
-# osx stuff
-.DS_Store
-Icon
-
-# ide
-.idea
-*.iml
-/env/*
-
-# python stuff
-.flake8rc
-*pyc
-
-# ctags stuff
-TAGS
-tags
-
-# emacs stuff
-.projectile
-.dir-locals.el
-.pytest_cache/
-
-.reviewboardrc
-ui/package-lock.json