c# link parser

// stackoverflow.com/q/10576686/c-sharp-regex-pattern-to-extract-urls-from-given-string-not-full-html-urls-but //You can write some pretty simple regular expressions to handle this, or go via more traditional string splitting + LINQ methodology. //Regex var linkParser = new Regex(@”\b(?:https?://|www\.)\S+\b”, RegexOptions.Compiled | RegexOptions.IgnoreCase); var rawString =…

website copy or archive website

to dump all site you can use classic software httrack.com but if you need archive website you can user archive.is or Wayback Machine from web.archive.org bookmarklets to copy website: archive is javascript:void(open(‘http://archive.is/?run=1&url=’+encodeURIComponent(document.location))) web.archive.org javascript:location.href=’http://web.archive.org/save/’+location.href

register / add feedly / inoreader on firefox chrome

chrome https://www.inoreader.com/?add_feed=%s http://www.feedly.com/subscribe.htm?feedURL=%s mozilla firefox 1. in ff type in url bar – about:config 2. search and check contentHandlers (should be listed as browser.contentHandlers.types.#) 3. increment number # 4. add new value feedly: browser.contentHandlers.types.#.uri;http://www.feedly.com/subscribe.htm?feedURL=%s browser.contentHandlers.types.#.title;feedly.com…

tapatalk statistics piwik

copy file PiwikTracker.php from piwik directory libs/PiwikTracker/PiwikTracker.php to yours tapatalk plugin add on mobiquo/mobiquo.php following lines before line with “exit”: $idSite = 1;//set up your site id from piwik $piwikUrl = ‘http://www.yourUrls.tld/piwikPath/’; //remember to update…

backup all mysql databases

#! /bin/bash TIMESTAMP=$(date +”%F”) BACKUP_DIR=”/home/mysql_backup/$TIMESTAMP” MYSQL=/usr/bin/mysql MYSQLDUMP=/usr/bin/mysqldump MYSQL_USER=”root” MYSQL_PASSWORD=”************” mkdir -p $BACKUP_DIR databases=`$MYSQL -u$MYSQL_USER -p$MYSQL_PASSWORD -e “SHOW DATABASES;” | grep -Ev “(Database|information_schema)”` for db in $databases; do echo $db $MYSQLDUMP –force –opt –user=$MYSQL_USER -p$MYSQL_PASSWORD –databases…

wordpress plugin add custom menu

//add custom menu to backend / admin dashboard add_action(‘admin_menu’, ‘register_my_custom_menu_page’); function register_my_custom_menu_page() { add_menu_page( ‘page title’, ‘menu Title’, ‘manage_options’, ‘my_custom_menu’, ‘my_custom_menu_page’, ”, 101 ); add_submenu_page( ‘my_custom_menu’, ‘page subtitle’, ‘sub menu’, ‘manage_options’, ‘my_custom_submenu’, ‘my_custom_submenu_page’ ); add_submenu_page(…