This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## recipes/default.rb | |
| template "/etc/logrotate.d/rsyslog" do | |
| owner "root" | |
| group "root" | |
| mode 0515 | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bundle exec rspec | |
| ================================================================================ | |
| Recipe Compile Error in /var/folders/98/my9tl6c977dcn_kj67bx19100000gp/T/d20131119-11683-5k8a7x/chefspec-wrapper/recipes/default.rb | |
| ================================================================================ | |
| LoadError | |
| --------- | |
| cannot load such file -- chef/sugar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Backups | |
| (setq version-control nil) | |
| (setq backup-directory-alist | |
| `((".*" . ,temporary-file-directory))) | |
| (setq auto-save-file-name-transforms | |
| `((".*" ,temporary-file-directory t))) | |
| (setq create-lockfiles nil) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (setq org-capture-templates | |
| (quote (("d" "quick-todo" entry (file "~/Dropbox/org-mode/inbox.org") | |
| "* TODO %cCreateAt: %U" :immediate-finish t) | |
| ("t" "quick-todo" entry (file "~/Dropbox/org-mode/inbox.org") | |
| "* TODO %cCreateAt: %U")))) | |
| (defun mine-alfred-capture () | |
| (interactive) | |
| "Capture from alfred" | |
| (org-capture nil "d")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'serverspec' | |
| include Serverspec::Helper::Exec | |
| include Serverspec::Helper::DetectOS | |
| describe "nginx" do | |
| it "should listen on port 80" do | |
| expect(port(80)).to be_listening | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ubuntu@ip-10-235-49-86:~$ dpkg --get-selections | |
| accountsservice install | |
| acl install | |
| acpi-support install | |
| acpid install | |
| activity-log-manager-common install | |
| activity-log-manager-control-center install | |
| adduser install | |
| adium-theme-ubuntu install | |
| aisleriot install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include_recipe 'runit::default' | |
| include_recipe 'apt::default' | |
| include_recipe 'java::default' | |
| user 'artifactory' do | |
| home '/opt/artifactory' | |
| end | |
| package 'unzip' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; HipChat | |
| (setq ssl-program-name "gnutls-cli" | |
| ssl-program-arguments '("--insecure" "-p" service host) | |
| ssl-certificate-verification-policy 1) | |
| ;; Connect using jabber.el | |
| ;; M-x jabber-connect <RET> | |
| ;; Config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT setting INTO version FROM pg_settings WHERE name='server_version_num'; | |
| IF version < 90000 THEN | |
| DROP LANGUAGE IF EXISTS plpgsql; | |
| CREATE LANGUAGE plpgsql; | |
| ELSE | |
| DROP EXTENSION IF EXISTS plpgsql; | |
| CREATE EXTENSION plpgsql; | |
| END IF; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "oldbackends": [ | |
| { | |
| "hostname": "serverurl", | |
| "port": 123, | |
| "weight": 123, | |
| "backup": false | |
| }, | |
| { | |
| "hostname": "anotherurl", | |
| "port": 123, |