Fix for deploy

master
bel 2020-09-15 05:36:02 -06:00
parent a5bbf85da9
commit 6dcd11b7e9
4 changed files with 13 additions and 16 deletions

View File

@ -18,12 +18,12 @@ cp ./resume.md-main/resume.pdf $outdir/public/
) > $outdir/app.yaml
cp ./main.go $outdir/
pushd $outdir
GOOS=linux CGO_ENABLED=0 go build -ldflags "-s -w" -a -installsuffix cgo
GOOS=linux CGO_ENABLED=0 go build -ldflags "-s -w" -a -installsuffix cgo -trimpath
rm main.go
popd
tar -czf ./deploy.tar $outdir
rm -rf $outdir
scp -i $HOME/.ssh/remote.blapointe.com ./deploy.tar remote.blapointe.com:./
ssh -i $HOME/.ssh/remote.blapointe.com remote.blapointe.com bash -c "true; tar -xf deploy.tar; mv $outdir/${outdir##*/} ./services/bin/resume; rm -rf services/lib/resume; mv $outdir/public services/lib/resume; rm -rf deploy.tar $outdir"
scp -i $HOME/.ssh/gcp.blapointe.com ./deploy.tar gcp.blapointe.com:./
ssh -i $HOME/.ssh/gcp.blapointe.com gcp.blapointe.com bash -c "true; tar -xf deploy.tar; mv $outdir/${outdir##*/} ./services/bin/resume; rm -rf services/lib/resume; mv $outdir/public services/lib/resume; rm -rf deploy.tar $outdir"
rm -f ./deploy.tar

View File

@ -3,7 +3,6 @@ package main
import (
"fmt"
"local/args"
"local/gziphttp"
"log"
"net/http"
@ -21,13 +20,11 @@ func main() {
panic(err)
}
log.Printf("listening on %v to serve %s at %d rps", as.GetInt("port"), as.GetString("root"), as.GetInt("rps"))
s := http.FileServer(http.Dir(as.GetString("root")))
limiter := rate.NewLimiter(rate.Limit(as.GetInt("rps")), as.GetInt("rps"))
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", as.GetInt("port")), http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if gziphttp.Can(r) {
gz := gziphttp.New(w)
w = gz
}
if err := limiter.Wait(r.Context()); err != nil {
log.Println("rate limited:", err)
return

View File

@ -17,20 +17,20 @@
<h3><div><div>Software Developer II</div><div><i>Qualtrics</i></div></div> <div>Oct 2019 &ndash; Present</div></h3>
<ul>
<li>Designed cross-team database and service migrations for security, customer, and operational pain relief.</li>
<li>Lead weekly technical book club and participated in leadership book club and white paper reviews.</li>
<li>Led weekly technical book club and participated in leadership book club and white paper reviews.</li>
<li>Interviewed and mentored entry level candidates.</li>
<li>Developed and maintained generic, highly available and reliable data storage solutions, ingestion services, and operations tools.</li>
</ul>
<h3><div><div>Software Developer I</div><div><i>Qualtrics</i></div></div> <div>Feb 2018 &ndash; Oct 2019</div></h3>
<ul>
<li>Deployed the first sharded MongoDB cluster of the company. Acting in-house SME for MongoDB, Couchbase, and Redis operations.</li>
<li>Deployed the first sharded MongoDB cluster of the company. </li>
<li>Acting in-house SME for MongoDB, Couchbase, and Redis operations.</li>
<li>Built an extensible framework for no-downtime system patching across services and clusters with modules for five databases.</li>
</ul>
<h2>Research</h2>
<h2>Publications</h2>
<h3><div>Arabidopsis thaliana computationally-generated next-state gene interaction models</div> <div>Jan 2017 &ndash; Dec 2017</div></h3>
<ul>
<li>Implemented an exponentially more efficient solution than previous work with comparable correctness.</li>
<li>Published September 2018</li>
</ul>
<h2>Education</h2>
<h3><div><div>Master of Science, Computer Science</div><div><i>Wake Forest University</i></div></div> <div>Jan 2016 &ndash; Dec 2017</div></h3>

View File

@ -10,21 +10,21 @@
### <div><div>Software Developer II</div><div><i>Qualtrics</i></div></div> <div>Oct 2019 -- Present</div>
- Designed cross-team database and service migrations for security, customer, and operational pain relief.
- Lead weekly technical book club and participated in leadership book club and white paper reviews.
- Led weekly technical book club and participated in leadership book club and white paper reviews.
- Interviewed and mentored entry level candidates.
- Developed and maintained generic, highly available and reliable data storage solutions, ingestion services, and operations tools.
### <div><div>Software Developer I</div><div><i>Qualtrics</i></div></div> <div>Feb 2018 -- Oct 2019</div>
- Deployed the first sharded MongoDB cluster of the company. Acting in-house SME for MongoDB, Couchbase, and Redis operations.
- Deployed the first sharded MongoDB cluster of the company.
- Acting in-house SME for MongoDB, Couchbase, and Redis operations.
- Built an extensible framework for no-downtime system patching across services and clusters with modules for five databases.
## Research
## Publications
### <div>Arabidopsis thaliana computationally-generated next-state gene interaction models</div> <div>Jan 2017 -- Dec 2017</div>
- Implemented an exponentially more efficient solution than previous work with comparable correctness.
- Published September 2018
## Education