Updated: Just use qutebrowser (and disable javascript). The web is done for.
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
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # Modified. | |
| # Original script source: | |
| # http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html | |
| # https://web.archive.org/web/20150312172727/http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html | |
| # Usage: | |
| # Run the script from a folder with file "all.mbox" |
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
| -- delete any usermeta specific to the other subsites | |
| delete from wp_usermeta where meta_key regexp '^wp_([0-9]+)_'; | |
| -- duplicate the wp_usermeta structure in a working data table, | |
| -- but add a unique index for filtering out duplicates | |
| create table _fix_usermeta like wp_usermeta; | |
| alter table _fix_usermeta add unique(user_id, meta_key); | |
| -- copy the site-specific usermeta, keeping only the last of each duplicate | |
| insert into _fix_usermeta |
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
| # -*- encoding: UTF-8 -*- | |
| import os | |
| import httplib2 | |
| # pip install --upgrade google-api-python-client | |
| from oauth2client.file import Storage | |
| from apiclient.discovery import build | |
| from oauth2client.client import OAuth2WebServerFlow |
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
| /* Vedant Misra (vedantmisra.com) (github.com/vedant) | |
| * | |
| * Script for exporting Google Keep note files. | |
| * | |
| * This does not handle attachments or checklists, only note files. Downloads | |
| * each note to a .txt file named for the note's title. | |
| * | |
| * To use this, go to https://drive.google.com/keep/ and wait for the page to | |
| * fully load all of your saved notes; scroll to the bottom to confirm they're | |
| * loaded. Then paste the below in your URI bar, go to the start of the line, |
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 | |
| /* setup custom general settings */ | |
| function ts_theme_settings () { | |
| register_setting( 'general', 'homepage_slider_wide' ); | |
| add_settings_field( | |
| 'homepage_slider_wide', | |
| 'Homepage Slider (Wide)', | |
| 'homepage_slider_wide_callback', |
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 | |
| function cs_last_posts_json() { | |
| $json = array(); | |
| $last_posts = get_posts( array( | |
| 'posts_per_page' => 5, | |
| 'post_type' => 'post' | |
| ) ); | |
| foreach ( $last_posts as $post ) { |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Feed</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
| </head> | |
| <body> | |
| <script> | |
| jQuery(document).ready(function($) { | |
| var url = 'http://claudiosmweb.com/feed/', |
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 | |
| /** | |
| * Main Query for the Front Page | |
| * | |
| * Display the latest post per category. The latest sticky post goes to the | |
| * top. It's category is then excluded as we only want 1 post per category. | |
| * | |
| * @param object $query WP_Query | |
| */ | |
| function sh_pre_get_posts_front_page( $query ) { |