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
/* | |
aprilFools.css | |
Written by Wes Bos | |
I assume no responsibility for angry co-workers or lost productivity | |
Put these CSS definitons into your co-workers Custom.css file. | |
They will be applied to every website they visit as well as their developer tools. | |
*/ |
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
from fabric.api import * | |
from fabric.context_managers import cd | |
from fabric.operations import local as lrun, sudo | |
from fabric.contrib.files import sed | |
from fabric.utils import warn | |
from local_fabfile import root, prod, lh, SERVER_IP | |
def virtualenv(command, run_directory=''): | |
if run_directory == '': |
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
from cssutils import profile | |
from cssutils.profiles import Profiles, properties, macros | |
#patch um up | |
properties[Profiles.CSS_LEVEL_2]['-ms-interpolation-mode'] = r'none|bicubic|nearest-neighbor' | |
properties[Profiles.CSS_LEVEL_2]['-ms-text-size-adjust'] = r'none|auto|{percentage}' | |
properties[Profiles.CSS_LEVEL_2]['mso-table-lspace'] = r'0|{num}(pt)' | |
properties[Profiles.CSS_LEVEL_2]['mso-table-rspace'] = r'0|{num}(pt)' | |
properties[Profiles.CSS_LEVEL_2]['-webkit-text-size-adjust'] = r'none|auto|{percentage}' | |
#re-add | |
profile.addProfiles([(Profiles.CSS_LEVEL_2, |
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
// This script, when used with Google Apps Scripts will delete 500 emails and can be triggered to run every minute without user interaction enabling you to bulk delete email in Gmail without getting the #793 error from Gmail. | |
// Configure the search query in the code below to match the type of emails you want to delete | |
// Browser to https://script.google.com/. | |
// Start a script and paste in the code below. | |
// After you past it in, save it and click the little clock looking button. This is for your triggers. You can set up how frequently you want the script to run (I did mine for every minute). | |
// Source : # https://productforums.google.com/d/msg/gmail/YeQVDuPIQzA/kpZPDDj8TXkJ | |
function batchDeleteEmail() { | |
var batchSize = 100 // Process up to 100 threads at once |
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
# usage | |
# bash install-python-2.7.14.sh | |
sudo apt-get update | |
sudo apt-get install build-essential checkinstall -y | |
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev -y | |
cd /usr/src | |
sudo wget https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz | |
sudo tar xzf Python-2.7.14.tgz | |
cd Python-2.7.14 | |
sudo ./configure --enable-optimizations |
OlderNewer