I hereby claim:
- I am aracki on github.
- I am raca (https://keybase.io/raca) on keybase.
- I have a public key ASCiiMuIYE6DRJ4NF_B_TRlUUW5ULOI_Mndn1_OY-58K3go
To claim this, I am signing this object:
FROM golang:1.10.3-alpine as builder | |
WORKDIR $GOPATH/src/github.com/aracki/countgo | |
COPY . . | |
ENV GOBIN $GOPATH/bin | |
RUN GOOS=linux GOARCH=386 go install cmd/aracki/main.go | |
FROM scratch as appgo | |
COPY --from=builder /go/bin/main /go/bin/main | |
COPY mongo_config.yml mongo_config.yml | |
ENTRYPOINT ["/go/bin/main"] |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>AppleAntiAliasingThreshold</key> | |
<integer>1</integer> | |
<key>AppleScrollAnimationEnabled</key> | |
<integer>0</integer> | |
<key>AppleSmoothFixedFontsSizeThreshold</key> | |
<integer>1</integer> |
# kubernetes - is an open source system for managing containerized | |
# applications across multiple hosts, providing basic mechanisms for | |
# deployment, maintenance, and scaling of applications. | |
# See: https://kubernetes.io | |
function __kubectl_no_command | |
set -l cmd (commandline -poc) | |
if not set -q cmd[2] | |
return 0 | |
end |
I hereby claim:
To claim this, I am signing this object:
func main() { | |
ch := make(chan int) | |
out := make(chan int) | |
go func(ch1 chan int, out chan int) { | |
res := 0 | |
for v := range ch1 { | |
fmt.Println("Receive: ", v) | |
res += v |
alias cd..='cd ..' | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." | |
alias .....="cd ../../../.." | |
alias h='history' | |
alias a='bat' | |
alias l='ls -lrthp' | |
alias tre='tree -L 2' |
nmap <S-Up> v<Up> | |
nmap <S-Down> v<Down> | |
nmap <S-Left> v<Left> | |
nmap <S-Right> v<Right> | |
vmap <S-Up> <Up> | |
vmap <S-Down> <Down> | |
vmap <S-Left> <Left> | |
vmap <S-Right> <Right> | |
imap <S-Up> <Esc>v<Up> | |
imap <S-Down> <Esc>v<Down> |
Language | Vehicle | Reason |
---|---|---|
GoLang | Tesla | The future, but want somebody I know to buy one first |
Haskell | Batmobile | Looks awesome but you'll never figure out how to drive it |
Java | Hummer | Uses way more resources than is strictly necessary |
Perl | Classic Mini | A classic that has influenced many cars, but not practical for 2015 |
PHP | Fiat Multipla | Ugly, nobody wants to be seen driving this |
Ruby | Smart Car | Practical design. Will get you around the city fast, but not great on motorways |
Python | VW Golf | Solid. Reliable. Middle of the road. |
package com.copperdm.global.web.controllers.file_controllers; | |
import com.amazonaws.auth.AWSCredentials; | |
import com.amazonaws.auth.BasicAWSCredentials; | |
import com.amazonaws.services.s3.AmazonS3; | |
import com.amazonaws.services.s3.AmazonS3Client; | |
import com.amazonaws.util.BinaryUtils; | |
import com.copperdm.global.web.config.props.AmazonProps; | |
import com.google.gson.JsonArray; | |
import com.google.gson.JsonElement; |
private File multipartToFile(MultipartFile multipartFile) { | |
File file = new File(multipartFile.getOriginalFilename()); | |
try { | |
multipartFile.transferTo(file); | |
return file; | |
} catch (IOException e) { | |
e.printStackTrace(); | |
return null; | |
} | |
} |