I hereby claim:
- I am markoshust on github.
- I am markoshust (https://keybase.io/markoshust) on keybase.
- I have a public key whose fingerprint is 1197 0D20 86BD 2304 091D 2184 00DB 310B BF4B A5FB
To claim this, I am signing this object:
| <?php | |
| /** | |
| * Fancy ID generator that creates 20-character string identifiers with the following properties: | |
| * | |
| * 1. They're based on timestamp so that they sort *after* any existing ids. | |
| * 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs. | |
| * 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly). | |
| * 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the | |
| * latter ones will sort after the former ones. We do this by using the previous random bits |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /* @var $installer Mage_Core_Model_Resource_Setup */ | |
| $installer = $this; | |
| $installer->startSetup(); | |
| $connection = $installer->getConnection(); | |
| $identifier = 'id-goes-here'; | |
| $title = 'Title Goes Here'; |
| db.createUser({user: "oplogger", pwd: "PasswordForOplogger", roles: [{role: "read", db: "local"}]}) |
| _.mixin({ | |
| mutateVideoUrlsToEmbeds: function(html) { | |
| let embed = ''; | |
| const youtubeRegEx = /(?:http?s?:\/\/)?(?:www\.)?(?:youtu\.be|youtube\.com)\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=)?((\w|-){11})/g; | |
| const vimeoRegEx = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/(.*)/g; | |
| if (youtubeRegEx.test(html)) { | |
| embed = '<iframe width="360" height="270" src="//www.youtube.com/embed/$1" frameborder="0" allowfullscreen></iframe>'; | |
| html = html.replace(youtubeRegEx, embed); | |
| } |
| _.mixin({ | |
| lbToBr: function(html) { | |
| html = html.replace(/(?:\r\n|\r|\n)/g, '<br />'); | |
| return html; | |
| } | |
| }); |
| _.mixin({ | |
| imageToImg: function(html) { | |
| const regEx = /(https?:\/\/.*\.(?:jpg|jpeg|gif|png))/g; | |
| if (regEx.test(html)) { | |
| const embed = '<img src="$1" />'; | |
| html = html.replace(regEx, embed); | |
| } | |
| return html; |
| const { Dialog, FlatButton, RaisedButton } = mui; | |
| CustomDialog = React.createClass({ | |
| getInitialState() { | |
| return { | |
| showDialog: false | |
| }; | |
| }, | |
| handlePrompt() { |
| cat domain.com.crt domain.com.ca-bundle > domain.com.bundle.crt |