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
| $ php -i |grep php\.ini |
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
| convert -strip -interlace Plane -quality 95% origin.jpg result.jpg |
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
| // Based on this https://news.ycombinator.com/item?id=11421509 | |
| git clone [email protected]:orinocoz/pirateflix.git | |
| cd pirateflix | |
| npm install | |
| chmod +x bin/cli.js | |
| // Execute client | |
| ./bin/cli.js |
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
| git clone git://github.com/tpope/vim-sensible.git ~/.vim/bundle/vim-sensible |
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
| Taken from http://stackoverflow.com/questions/15395479/why-ive-got-no-crontab-entry-on-os-x-when-using-vim | |
| 1- In Terminal: crontab -e. | |
| 2- Press i to go into vim's insert mode. | |
| 3- Type your cron job, for example: | |
| 30 * * * * /usr/bin/curl --silent --compressed http://example.com/crawlink.php | |
| 4- Press Esc to exit vim's insert mode. |
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
| //: Playground - noun: a place where people can play | |
| import UIKit | |
| import XCPlayground | |
| XCPSetExecutionShouldContinueIndefinitely(continueIndefinitely: true) | |
| func getProduct(session: NSURLSession, codigo: NSString) { | |
| var url_request:NSURL = NSURL(string: url_root as! String + "products/\(codigo).json")! |
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
| curl -A "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3" http://www.website.com |
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
| private function put($data) { | |
| // Open connection | |
| $ch = curl_init(); | |
| $url = 'http://127.0.0.1:9200/colombia/bogota/'.$data['id']; | |
| // Set the url, number of POST vars, POST data | |
| curl_setopt( $ch, CURLOPT_URL, $url ); | |
| // curl_setopt( $ch, CURLOPT_POST, true ); | |
| curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT"); | |
| curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); |
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
| watch tail -n 15 /usr/local/mysql/data/ArielMac.log |