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
| # content has to be in .config/fish/config.fish | |
| # if it does not exist, create the file | |
| setenv SSH_ENV $HOME/.ssh/environment | |
| function start_agent | |
| echo "Initializing new SSH agent ..." | |
| ssh-agent -c | sed 's/^echo/#echo/' > $SSH_ENV | |
| echo "succeeded" | |
| chmod 600 $SSH_ENV | |
| . $SSH_ENV > /dev/null |
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 io = require('socket.io-client')("http://localhost:3001") | |
| var Promise = require("bluebird") | |
| io.emitAsync = Promise.promisify(io.emit) | |
| io.emitAsync("report", { | |
| "name": "thomas" | |
| }).then(function(data){ | |
| console.log(data) | |
| }).catch(function(e){ | |
| console.log(e.message) |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the\commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
NewerOlder