# Something in lines of
# Make sure you have IMAP enabled in your gmail settings.
# Right now it won't download same file name twice even if their contents are different.
import email
import getpass, imaplib
import os
import sys
detach_dir = '.'
import email, getpass, imaplib, os
detach_dir = '.' # directory where to save attachments (default: current)
user = raw_input("Enter your GMail username:")
pwd = getpass.getpass("Enter your password: ")
# connecting to the gmail imap server
m = imaplib.IMAP4_SSL("")
m.login(user,pwd)"cs2043") # here you a can choose a mail box like INBOX instead
#!/usr/bin/env python
# Very simple Python script to dump all emails in an IMAP folder to files.
# This code is released into the public domain.
# RKI Nov 2013
import sys
import imaplib
import getpass
#!/usr/bin/env python
# Very basic example of using Python and IMAP to iterate over emails in a
# gmail folder/label. This code is released into the public domain.
# RKI July 2013
import sys
import imaplib
View gist:38ddb5625bf194a8dd224bc43c145fca
/* border-serrated - a zig zag triangle border with linear gradient
@mixin border-top-serrated($size, $color-outer) {
& {
position: relative;
overflow: auto;
padding-top: $size;
&:before {
top: 0px;
View columns.css
/* Column Classes
--------------------------------------------- */
View wp-localhost-requests.php
* Plugin Name: Allow localhost http requests.
* Plugin URI:
* Description: Note: Please don't use it on live website. If you are working locally, sometimes you get errors such as "A valid URL was not provided" or such, specially when you are interacting with website which is also hosted locally, so it becomes annoying at times to find the cause, and most of the time its wp_safe_remote_request, wp_safe_remote_get or wp_safe_remote_post functions who are the culprit. So this plugin is a quick fix.
* Author: saas786
* Version: 0.1
add_filter( 'http_request_host_is_external', 'wplr_http_request_host_is_external' );
function wplr_http_request_host_is_external(){
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<!-- we use 'preload_' instead of 'preload' to make it testable in chrome -->
<link rel="preload_" onload="console.log(this, 'script');" href="" as="script" />
<link rel="preload_" onload="console.log(this, 'style');" href="" as="style" />
<link rel="preload_" onload="console.log(this, 'font');" href="LatoLatin-Regular.woff" as="font" type="font/woff" crossorigin="" />
View wordpress-move-javascript-to-footer.php
View change-url.html
Step 1. Redirect using «template_redirect»
Note: In all examples below I use category as default categories prefix and tag as default post tags prefix.
Insert the following code to your current theme functions.php.
function rudr_url_redirects() {
/* in this array: old URLs=>new URLs */
$redirect_rules = array(
array('old'=>'/category/uncategorized/','new'=>'/category/Uncategorized/'), // category
array('old'=>'/contacts/','new'=>'/Contacts/'), // page