This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IL that git push -u origin my-new-branch is no more needed with push.autoSetupRemote : | |
| git config --global --add --bool push.autoSetupRemote true | |
| git config --global --add --bool pull.rebase true | |
| git config --global --add --bool rebase.autoStash true | |
| git config --global --add --bool fetch.prune true | |
| # git undo | |
| git config --global alias.undo '!f() { \ | |
| git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; \ | |
| }; f' => http://megakemp.com/2016/08/25/git-undo/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "crypto/sha256" | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| input := "Lorem Ipsum dolor sit Amet" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CGO_ENABLED=0 GOGC=off go build --ldflags '-extldflags "-static"' main.go |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker rm $(docker ps -aq) | |
| docker rmi $(docker images -q --filter=dangling=true) | |
| docker volume rm $(docker volume ls -q) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -t durdn/minimal-java /bin/true | |
| docker export `docker ps -q -n=1` | docker import - durdn/minimal-java:stripped | |
| docker history durdn/minimal-java:stripped | |
| # cf https://developer.atlassian.com/blog/2015/08/minimal-java-docker-containers/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git rev-parse :front/package.json | |
| b5b0d3057d3f408251a3bed3d210bad7edfd0cc0 | |
| git hash-object package.json | |
| b5b0d3057d3f408251a3bed3d210bad7edfd0cc0 | |
| git rev-parse --short :front/package.json | |
| b5b0d30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <a href="https://twitter.com/jlandure" class="icon-href" target="_blank"> | |
| <div style="height: 48px;width: 48px;background-color: #1CB7EB;border-radius: 50%;"> | |
| <svg class="icon icon-twitter" viewBox="0 0 30 32" style="margin-top: 9px;margin-left: 9px;width: 32px;height: 32px;"> | |
| <use xlink:href="/images/social/sprites.svg#icon-twitter"></use> | |
| </svg> | |
| </div> | |
| </a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var data = [];//some data | |
| //create and push 200 items to check the ui | |
| data.push( | |
| ..._.times(200).map((el, index) => | |
| _.assign(_.cloneDeep(data[0]), { id: index + data.length })) | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package filter; | |
| import org.springframework.web.filter.OncePerRequestFilter; | |
| import javax.servlet.FilterChain; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletResponse; | |
| import java.io.IOException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| application: some-dummy-app-name # overridden by -A | |
| dispatch: | |
| # Let's Encrypt ACME challenge service | |
| - url: "*/.well-known/acme-challenge/*" | |
| module: acme |