Websites
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
| // How to do this.bind | |
| // ES7 syntax | |
| render() { | |
| <div onClick={::this.onClick}> </div> | |
| } | |
| onClick() { | |
| } |
Here's how I set up a tiny Nginx/Rails server that uses HTTPS via a Let's Encrypt issued certificate.
I use the smallest DigitalOcean droplet (512 MB) here, which is built from the "Ubuntu Ruby on Rails on 14.04" image provided by them.
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
| # Basically the nginx configuration I use at konklone.com. | |
| # I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com | |
| # | |
| # To provide feedback, please tweet at @konklone or email [email protected]. | |
| # Comments on gists don't notify the author. | |
| # | |
| # Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites. | |
| # Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration. | |
| server { |
- Note that SHA2 hash algorithm may be not supported on older systems (Windows XP, Windows 2003, among others).
- Be aware that mandatory https on SNI vhosts eliminate [Internet Explorer on Windows XP, among others] (http://en.wikipedia.org/wiki/Server_Name_Indication#Web_browsers.5B6.5D).
- My version of konklones SSL config does not have SPDY support(my nginx+openssl does not support it)
- You need a default ssl server (example.org-default.conf).
- Some SSL-options have to be unique across your instance, so it's easier to have them in a common file(ssl.conf).
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
| 10 Ways To Improve Your Google Rank: | |
| 1. Focus on your content. Make sure you provide a quality content. | |
| 2. Regularly update your website. | |
| 3. Pointing Links to your Website. | |
| 4. Page Authority. | |
| 5. Use a site map(sample: https://gist.github.com/MicBrain/e5125d4b861c3071c63560b51ee66634) | |
| 6. Effectively use "keyword" and "description" HTML Meta Tags. Make sure that the content of the website matches to these 2 tags. | |
| 7. Effectively use <title> tag. | |
| 8. Use ALT text on images. |
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
| package main | |
| import ( | |
| "time" | |
| ) | |
| type LazyInt chan func() int | |
| // Can't use pointer receiver: invalid operation: l <- (func literal) (send to non-chan type *LazyInt) | |
| func (l LazyInt) Future(i int) { |
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
| https://stackoverflow.com/questions/17931571/freeze-screen-in-chrome-debugger-devtools-panel-for-popover-inspection |
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
| sudo add-apt-repository ppa:stebbins/handbrake-releases | |
| sudo apt-get update | |
| sudo apt-get install handbrake-gtk | |
| sudo apt-get install handbrake-cli | |
| sudo apt-get install ubuntu-restricted-extras | |
| sudo /usr/share/doc/libdvdread4/install-css.sh |
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
| youtube-dl Supported sites | |
| Here's is the list of all the supported sites, ordered alphabetically: | |
| 1tv: Первый канал | |
| 1up.com | |
| 20min | |
| 220.ro | |
| 23video |