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
| RewriteEngine on | |
| RewriteBase / | |
| RewriteCond %{REQUEST_URI} !^/blog/ | |
| # Rewrites all URLS [Replace "example" with the actual domain, without the TLD (.com, .net, .biz, etc)] | |
| RewriteCond %{HTTP_HOST} ^(www\.)?example\. | |
| # Rewrite all those to insert /folder | |
| RewriteRule ^(.*)$ /blog/$1 [L] |
netstat -tan| grep -v 'LISTEN'| awk '{print $5}'| grep -v 'and' |grep -v 'Address' |cut -d':' -f1 |sort -n | uniq -c | sort -rn | head -n10
cd /var/log/apache2; for i in ./access.log; do echo $i; cat $i | awk '{print $1}'| sort -n | uniq -c | sort -rn | head -n10; done
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 -X GET \ | |
| -H "X-Parse-Application-Id: parseloldesign" \ | |
| -G \ | |
| --data-urlencode 'limit=10' \ | |
| --data-urlencode 'where={ | |
| "project": "fitfoodtime", | |
| "location": { | |
| "$nearSphere": { | |
| "__type": "GeoPoint", | |
| "latitude": -23.563087, |
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
| (function() { | |
| 'use strict'; | |
| angular | |
| .module('app.restaurants') | |
| .service('UserService', userService); | |
| userService.$inject = ['$http', '$q', '$auth', '$cordovaGeolocation', 'localStorageService', '$log']; | |
| /* @ngInject */ |
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
| class Car | |
| attr_accessor :name, :brand | |
| def initialize(options={}) | |
| @name = options[:name] | |
| @brand = options[:brand] | |
| end | |
| def somebody_inside? | |
| @people_inside.present? |