- MongoDB
- GitLens
- Ruby
This file contains 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
# | |
# add this command to your .profile or .bash_profile | |
alias vim='tmux new-session -d 'vim' \; split-window -v \; resize-pane -D 13 \; split-window -h \; resize-pane -R 13 \; attach' |
This file contains 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
# Purpose: to extend the date class to match the week aggregation for MongoDB 3.2 | |
# | |
require 'date' | |
class Date | |
def mongo_week_number | |
week_offset = 0 | |
unless Date.new(self.year,1,1).wday == 0 | |
week_offset = 7 - (Date.new(self.year,1,1).wday) |
This file contains 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
#!/bin/bash | |
# | |
# script to fix errors after installing spidermonkey javascript engine on OS X and you get errors | |
# | |
cd /usr/local/lib | |
sudo rm libgif.dylib | |
sudo ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libGIF.dylib libGIF.dylib | |
sudo rm libjpeg.dylib | |
sudo ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libJPEG.dylib libJPEG.dylib | |
sudo rm libtiff.dylib |
This file contains 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
wget https://packages.chef.io/files/stable/chefdk/1.2.22/ubuntu/14.04/chefdk_1.2.22-1_amd64.deb | |
sudo dpkg -i chefdk_1.2.22-1_amd64.deb | |
echo 'eval "$(chef shell-init bash)"' >> ~/.profile | |
source ~/.profile |
This file contains 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
<# | |
PowerShell Script that updates the knife-windows bootstrap template so it installs chef as a service. | |
#> | |
$basePath = "C:\opscode\chefdk\embedded\lib\ruby\gems" | |
$folders = Get-ChildItem -Path $basePath |
This file contains 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
# | |
# Load the library to access the data | |
# | |
library(jsonlite) | |
library(httr) | |
# Header values required for accessing NewRelic | |
# ['X-Query-Key'] = 'NewRelicApi key' | |
# |
This file contains 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
<# | |
.SYNOPSIS | |
Beginning of a script to do things specific to the Windows Operating System | |
.DESCRIPTION | |
I automate tasks often in a windows environment. This script can be customized for all Windows Operating Systems. | |
.NOTES | |
Author : Chris Wessells (chris@wessells.me) | |
.LINK | |
Script posted over: | |
http://wessells.me |