To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
| module.exports = { | |
| deleteObject: function (client, deleteParams) { | |
| client.deleteObject(deleteParams, function (err, data) { | |
| if (err) { | |
| console.log("delete err " + deleteParams.Key); | |
| } else { | |
| console.log("deleted " + deleteParams.Key); | |
| } | |
| }); | |
| }, |
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
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: |
| # Customize BASH PS1 prompt to show current GIT repository and branch. | |
| # by Mike Stewart - http://MediaDoneRight.com | |
| # SETUP CONSTANTS | |
| # Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
| # I don't remember where I found this. o_O | |
| # Reset | |
| Color_Off="\[\033[0m\]" # Text Reset |
| /* Entity Interpolation | |
| this code occurs within the draw loop for an entity | |
| this.x and this.y represent the most recently received server position of | |
| the entity -- though i don't ever intend to use it for drawing | |
| when an update is received (roughly every 50ms in my particular game) this.x and this.y get | |
| pushed into previousState.x and previousState.y | |
| i also continue sloppily onwards to previousPreviousState.x, but I've removed that code | |
| httpClient.DefaultRequestHeaders.Authorization = | |
| new AuthenticationHeaderValue( | |
| "Basic", | |
| Convert.ToBase64String( | |
| System.Text.ASCIIEncoding.ASCII.GetBytes( | |
| string.Format("{0}:{1}", username, password)))); |
| 'use strict'; | |
| /*****************NATIVE forEACH*********************/ | |
| Array.prototype.myEach = function(callback) { | |
| for (var i = 0; i < this.length; i++) | |
| callback(this[i], i, this); | |
| }; | |
| //tests |
| #!/bin/env/python | |
| import hashlib | |
| import binascii | |
| # Utility methods for generating and comparing RabbitMQ user password hashes. | |
| # | |
| # Rabbit Password Hash Algorithm: | |
| # | |
| # Generate a random 32 bit salt: | |
| # CA D5 08 9B |
| "use strict"; | |
| var stackTrace = (new Error()).stack; // Only tested in latest FF and Chrome | |
| var callerName = stackTrace.replace(/^Error\s+/, ''); // Sanitize Chrome | |
| callerName = callerName.split("\n")[1]; // 1st item is this, 2nd item is caller | |
| callerName = callerName.replace(/^\s+at Object./, ''); // Sanitize Chrome | |
| callerName = callerName.replace(/ \(.+\)$/, ''); // Sanitize Chrome | |
| callerName = callerName.replace(/\@.+/, ''); // Sanitize Firefox | |
| console.log(callerName) |