I hereby claim:
- I am chris-skud on github.
- I am cskud (https://keybase.io/cskud) on keybase.
- I have a public key whose fingerprint is D29A E245 B9F0 2419 981D F6A9 F4FF EAC3 67EF 5207
To claim this, I am signing this object:
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
#!/usr/bin/env ruby | |
$:.unshift File.dirname(__FILE__) | |
require ‘<the_module>’ | |
#run if command line, do not if required (called from rspec) | |
if $0 == __FILE__ | |
require File.join(File.expand_path("..", Dir.pwd), 'path/to/other/rubies') | |
<TheClass>.provider_pull | |
end |
function get() { | |
var prom = $http({method:'GET', url: 'test.json'}) | |
.then(function(data) { | |
//set local value with returned data | |
vals = data; | |
// and return to caller so they can .then(function(data){}) | |
return vals; |
angular.element(document.querySelector('.ng-scope')).injector().get('theService') |
> Post.new.methods.count | |
> Post.new.methods.count - Object.new.methods.count | |
docker rm -f $(docker ps -aq) | |
docker rmi -f $(docker images -q) |
for json_val in $(curl -H "Content-Type: application/json; charset=utf-8" -H "Authorization: Bearer <secret>" https://thingthatreturnsjson | ./bin/JSON.sh | | |
egrep '^\[\d*,"id"\]\s\d*' | cut -f 2); do echo $json_val; sleep 3; done |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"log" | |
"reflect" | |
"strings" | |
"github.com/kelseyhightower/envconfig" | |
) |
// source https://medium.com/@xoen/golang-read-from-an-io-readwriter-without-loosing-its-content-2c6911805361 | |
var bodyBytes []byte | |
if c.Request.Body != nil { | |
bodyBytes, _ = ioutil.ReadAll(c.Request.Body) | |
} | |
// Restore the io.ReadCloser to its original state | |
c.Request.Body = ioutil.NopCloser(bytes.NewBuffer(bodyBytes)) | |
// Use the content | |
bodyString := string(bodyBytes) |