| # This is just a cheat sheet: | |
| # On production | |
| sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
| # On local | |
| scp -C production:~/database.sql.gz | |
| dropdb database && createdb database | |
| gunzip < database.sql.gz | psql database |
| --- Actions --- | |
| $Copy <M-C> | |
| $Cut <M-X> <S-Del> | |
| $Delete <Del> <BS> <M-BS> | |
| $LRU | |
| $Paste <M-V> | |
| $Redo <M-S-Z> <A-S-BS> | |
| $SearchWeb <A-S-G> | |
| $SelectAll <M-A> | |
| $Undo <M-Z> |
| package be.objectify.example.jooq; | |
| import java.sql.SQLException; | |
| import java.sql.SQLFeatureNotSupportedException; | |
| import java.sql.Types; | |
| import java.util.Objects; | |
| import com.fasterxml.jackson.databind.JsonNode; | |
| import org.jooq.Binding; | |
| import org.jooq.BindingGetResultSetContext; | |
| import org.jooq.BindingGetSQLInputContext; |
| git remote prune origin |
| git branch --merged | grep -E -v "master|develop" | xargs git branch -d |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| public class UpdateService : IUpdateService | |
| { | |
| public async Task<UpdateInfo> CheckForUpdates() | |
| { | |
| try | |
| { | |
| bool restart = false; | |
| string latestExe = ""; | |
| using (var mgr = new Squirrel.UpdateManager(@"http://x.y.z/AppName/Releases/")) |
The only way to encrypt today is authenticated encryption, or "AEAD". ChaCha20-Poly1305 is faster in software than AES-GCM. AES-GCM will be faster than ChaCha20-Poly1305 with AES-NI. Poly1305 is also easier than GCM for library designers to implement safely. AES-GCM is the industry standard.
Use, in order of preference:
- The NaCl/libsodium default
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.