Fix for deploy
parent
a5bbf85da9
commit
6dcd11b7e9
|
|
@ -18,12 +18,12 @@ cp ./resume.md-main/resume.pdf $outdir/public/
|
||||||
) > $outdir/app.yaml
|
) > $outdir/app.yaml
|
||||||
cp ./main.go $outdir/
|
cp ./main.go $outdir/
|
||||||
pushd $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
|
rm main.go
|
||||||
popd
|
popd
|
||||||
tar -czf ./deploy.tar $outdir
|
tar -czf ./deploy.tar $outdir
|
||||||
rm -rf $outdir
|
rm -rf $outdir
|
||||||
scp -i $HOME/.ssh/remote.blapointe.com ./deploy.tar remote.blapointe.com:./
|
scp -i $HOME/.ssh/gcp.blapointe.com ./deploy.tar gcp.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"
|
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
|
rm -f ./deploy.tar
|
||||||
|
|
||||||
|
|
|
||||||
7
main.go
7
main.go
|
|
@ -3,7 +3,6 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"local/args"
|
"local/args"
|
||||||
"local/gziphttp"
|
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
|
@ -21,13 +20,11 @@ func main() {
|
||||||
panic(err)
|
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")))
|
s := http.FileServer(http.Dir(as.GetString("root")))
|
||||||
limiter := rate.NewLimiter(rate.Limit(as.GetInt("rps")), as.GetInt("rps"))
|
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) {
|
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 {
|
if err := limiter.Wait(r.Context()); err != nil {
|
||||||
log.Println("rate limited:", err)
|
log.Println("rate limited:", err)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
|
|
@ -17,20 +17,20 @@
|
||||||
<h3><div><div>Software Developer II</div><div><i>Qualtrics</i></div></div> <div>Oct 2019 – Present</div></h3>
|
<h3><div><div>Software Developer II</div><div><i>Qualtrics</i></div></div> <div>Oct 2019 – Present</div></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Designed cross-team database and service migrations for security, customer, and operational pain relief.</li>
|
<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>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>
|
<li>Developed and maintained generic, highly available and reliable data storage solutions, ingestion services, and operations tools.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h3><div><div>Software Developer I</div><div><i>Qualtrics</i></div></div> <div>Feb 2018 – Oct 2019</div></h3>
|
<h3><div><div>Software Developer I</div><div><i>Qualtrics</i></div></div> <div>Feb 2018 – Oct 2019</div></h3>
|
||||||
<ul>
|
<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>
|
<li>Built an extensible framework for no-downtime system patching across services and clusters with modules for five databases.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h2>Research</h2>
|
<h2>Publications</h2>
|
||||||
<h3><div>Arabidopsis thaliana computationally-generated next-state gene interaction models</div> <div>Jan 2017 – Dec 2017</div></h3>
|
<h3><div>Arabidopsis thaliana computationally-generated next-state gene interaction models</div> <div>Jan 2017 – Dec 2017</div></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Implemented an exponentially more efficient solution than previous work with comparable correctness.</li>
|
<li>Implemented an exponentially more efficient solution than previous work with comparable correctness.</li>
|
||||||
<li>Published September 2018</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<h2>Education</h2>
|
<h2>Education</h2>
|
||||||
<h3><div><div>Master of Science, Computer Science</div><div><i>Wake Forest University</i></div></div> <div>Jan 2016 – Dec 2017</div></h3>
|
<h3><div><div>Master of Science, Computer Science</div><div><i>Wake Forest University</i></div></div> <div>Jan 2016 – Dec 2017</div></h3>
|
||||||
|
|
|
||||||
|
|
@ -10,21 +10,21 @@
|
||||||
### <div><div>Software Developer II</div><div><i>Qualtrics</i></div></div> <div>Oct 2019 -- Present</div>
|
### <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.
|
- 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.
|
- Interviewed and mentored entry level candidates.
|
||||||
- Developed and maintained generic, highly available and reliable data storage solutions, ingestion services, and operations tools.
|
- 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>
|
### <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.
|
- 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>
|
### <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.
|
- Implemented an exponentially more efficient solution than previous work with comparable correctness.
|
||||||
- Published September 2018
|
|
||||||
|
|
||||||
## Education
|
## Education
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue