brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| import requests | |
| import time | |
| import json | |
| token = '' | |
| #Delete files older than this: | |
| ts_to = int(time.time()) - 30 * 24 * 60 * 60 | |
| def list_files(): |
| # A sample Logstash configuration to parse logs shipped with rsyslog. | |
| # See also information about | |
| input { | |
| file { | |
| path => "/var/log/rsyslog/*/*.log" | |
| exclude => "*.bz2" | |
| type => syslog | |
| sincedb_path => "/var/run/logstash/sincedb" | |
| sincedb_write_interval => 10 |
| grep { | |
| type => "syslog" | |
| match => [ "syslog_program", "drupal" ] | |
| add_tag => "Drupal" | |
| drop => false | |
| } | |
| grok { | |
| type => "syslog" | |
| tags => [ "Drupal" ] | |
| match => [ "@message", "^https?://%{HOSTNAME:drupal_vhost}\|%{NUMBER:drupal_timestamp}\|(?<drupal_action>[^\|]*)\|%{IP:drupal_ip}\|(?<drupal_request_uri>[^\|]*)\|(?<drupal_referer>[^\|]*)\|(?<drupal_uid>[^\|]*)\|(?<drupal_link>[^\|]*)\|(?<drupal_message>.*)" ] |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
| import base64 | |
| from myapplication import app | |
| class MyTestCase(unittest.TestCase): | |
| def setUp(self): | |
| self.app = app.test_client() | |
| def tearDown(self): | |
| pass |