- WYSIWYG HTML
- integrates with MoxieManager for file management (PHP only)
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
| # Improving the security of your SSH private key files ( | |
| # Better key protection with PKCS#8 | |
| # http://martin.kleppmann.com/2013/05/24/improving-security-of-ssh-private-keys.html | |
| mv ~/.ssh/id_rsa ~/.ssh/id_rsa.old | |
| openssl pkcs8 -topk8 -v2 des3 -in ~/.ssh/id_rsa.old -out ~/.ssh/id_rsa | |
| chmod 600 ~/.ssh/id_rsa | |
| # Check that the converted key works; if yes, delete the old one: | |
| rm ~/.ssh/id_rsa.old |
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
| #!/bin/bash | |
| # Bandwidth throttling for OSX, | |
| # http://www.macosxhints.com/article.php?story=20080119112509736 | |
| case "$1" in | |
| 'start') | |
| KB=$2 | |
| echo Throttling at $KB Kbytes/s | |
| sudo ipfw pipe 1 config bw "$KB"KByte/s |
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
| /** | |
| * Performs a binary search on the host array. This method can either be | |
| * injected into Array.prototype or called with a specified scope like this: | |
| * binaryIndexOf.call(someArray, searchElement); | |
| * | |
| * @param {*} searchElement The item to search for within the array. | |
| * @return {Number} The index of the element which defaults to -1 when not found. | |
| */ | |
| function binaryIndexOf(searchElement) { | |
| 'use strict'; |
I'm doing some research on how companies use GitHub Enterprise (or public GitHub) internally. If you can help out by answering a few questions, I'd greatly appreciate it.
- What is the primary setup? Is there an organization and each official repo is owned by that organization?
- Does every engineer have a fork of each repo they're working on?
- Are engineers allowed to push directly to the official repo? Or must all commits go through a pull request?
- Do engineers work on feature branches on the main repo or on their own forks?
- Do you require engineers to squash commits and rebase before merging?
- Overall, what is the workflow for getting a new commit into the main repository?
- What sort of hooks do you make use of?
- Are there any ops issues you encountered? (Scaling, unforeseen downtime, etc.)
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
| // @license http://opensource.org/licenses/MIT | |
| // copyright Paul Irish 2015 | |
| // Date.now() is supported everywhere except IE8. For IE8 we use the Date.now polyfill | |
| // github.com/Financial-Times/polyfill-service/blob/master/polyfills/Date.now/polyfill.js | |
| // as Safari 6 doesn't have support for NavigationTiming, we use a Date.now() timestamp for relative values | |
| // if you want values similar to what you'd get with real perf.now, place this towards the head of the page | |
| // but in reality, you're just getting the delta between now() calls, so it's not terribly important where it's placed |
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
Show hidden characters
| { "moved": "https://github.com/coolaj86/oh-my-dotfiles/blob/master/dummy/.jshintrc" } |
A Static Site Generator is a program, that generates an HTML website as an output. ThisHTML website is then served through your web server, just like the old’n’days. This is usually achieved using template languages and code that separates out the layout of the website from its content and styles.
Advantages of a Static Site Generator?
- Security – There’s no database layer, or rails/pylons layer of code so security excellent.
- Performance – Under load, less memory / cpu usage to serve your website, so your website stays up longer
- Have a copy of your content separate from your server
- Easily move your website to another host – Copy and paste the HTML and re-route the domain name should you have one.
The spec has moved to a repo: https://github.com/defunctzombie/package-browser-field-spec to facilitate collaboration.