I hereby claim:
- I am marcroberts on github.
- I am marcroberts (https://keybase.io/marcroberts) on keybase.
- I have a public key whose fingerprint is 7E21 9E89 C787 9017 93DE 609F EF27 7115 F24C 8714
To claim this, I am signing this object:
| #!/bin/bash | |
| # Script to delete files older than X days from a specified folder | |
| # Configuration | |
| FOLDER_PATH="/path/to/your/folder" | |
| DAYS_OLD=30 | |
| # Validate folder exists | |
| if [ ! -d "$FOLDER_PATH" ]; then |
| #!/usr/local/bin/ruby | |
| require 'rubygems' | |
| require 'inotify' | |
| i = Inotify.new | |
| last_events = {} | |
| { created_at: 'Mon Jan 26 16:21:26 +0000 2015', | |
| id: 559747954651971600, | |
| id_str: '559747954651971584', | |
| text: 'Мосгорсуд оставил под арестом до 16 апреля Александра Кольченко, фигуранта дела ...', | |
| source: '<a href="http://ifttt.com" rel="nofollow">IFTTT</a>', | |
| truncated: false, | |
| in_reply_to_status_id: null, | |
| in_reply_to_status_id_str: null, | |
| in_reply_to_user_id: null, | |
| in_reply_to_user_id_str: null, |
I hereby claim:
To claim this, I am signing this object:
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://gist.github.com/1595572). | |
| # |
| #!/bin/sh | |
| echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
| read inputline | |
| name=$inputline | |
| echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
| read inputline | |
| url=$inputline |
| class Thing | |
| private | |
| def some_private_method number | |
| print "Success (#{number})\n\n" | |
| end | |
| end | |
| thing = Thing.new |
| class Object | |
| alias :old_initialize :initialize | |
| def initialize(*args,&blk) | |
| if respond_to? :initialise | |
| initialise(*args,&blk) | |
| else | |
| old_initialize(*args,&blk) | |
| end | |
| end | |
| end |
| require 'rack/cache' | |
| require 'rack/cache/storage' | |
| require 'rack/cache/metastore' | |
| require 'iron_cache' | |
| class IronCache::MetaStore < Rack::Cache::MetaStore | |
| def initialize | |
| @cache = IronCache::Client.new.cache('metastore') |
| diff --git a/includes/acp/acp_main.php b/includes/acp/acp_main.php | |
| index b8712b2..cf456db 100644 | |
| --- a/includes/acp/acp_main.php | |
| +++ b/includes/acp/acp_main.php | |
| @@ -337,7 +337,12 @@ class acp_main | |
| } | |
| global $cache; | |
| + | |
| $cache->purge(); |