Skip to content

Commit

Permalink
3.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
atomantic committed Oct 19, 2016
1 parent 06add73 commit 8dc8afb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
8 changes: 7 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*

- [Release History](#release-history)
- [Release History](#release-history)
- [v3.3.2](#v332)
- [v3.3.1](#v331)
- [v3.3.0](#v330)
- [v3.2.1](#v321)
Expand All @@ -17,6 +18,11 @@

# Release History

## v3.3.2
* `curltime` shell function
* OSX Sierra fixes for key repeat
* OSX Sierra wallpaper

## v3.3.1
* fix restore

Expand Down
26 changes: 15 additions & 11 deletions homedir/.shellfn
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,13 @@ function setproj()
bot "Hi, this workspace is setup for the $1 project"
}

function schef()
{
sudo chef-client
}

function fixperms(){
find . \( -name "*.sh" -or -type d \) -exec chmod 755 {} \; && find . -type f ! -name "*.sh" -exec chmod 644 {} \;
}

## curlheader will return the header value specified for a given URL
## usage: curlheader ${header} ${url}
## or get all headers
## curlheader ${url}
## curlheader will return only a specific response header or all response headers for a given URL
## usage: curlheader $header $url
## usage: curlheader $url
function curlheader() {
if [[ -z "$2" ]]; then
echo "curl -k -s -D - $1 -o /dev/null"
Expand All @@ -109,6 +103,7 @@ function curlheader() {
}

## hammer a service with curl for a given number of times
## usage: curlhammer $url
function curlhammer () {
bot "about to hammer $1 with $2 curls ⇒";
echo "curl -k -s -D - $1 -o /dev/null | grep 'HTTP/1.1' | sed 's/HTTP\/1.1 //'"
Expand All @@ -119,6 +114,15 @@ function curlhammer () {
bot "done"
}

function dockershell () {
bash --login '/Applications/Docker/Docker Quickstart Terminal.app/Contents/Resources/Scripts/start.sh'
## get the timings for a curl to a URL
## usage: curltime $url
function curltime(){
curl -w " time_namelookup: %{time_namelookup}\n\
time_connect: %{time_connect}\n\
time_appconnect: %{time_appconnect}\n\
time_pretransfer: %{time_pretransfer}\n\
time_redirect: %{time_redirect}\n\
time_starttransfer: %{time_starttransfer}\n\
--------------------------\n\
time_total: %{time_total}\n" -o /dev/null -s "$1"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dotfiles",
"version": "3.3.1",
"version": "3.3.2",
"description": "atomantic dotfiles for osx",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 8dc8afb

Please sign in to comment.