Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

#1738
#bangyourheadagainstthewall
from sys import argv
from docx import Document
def main():
f = open(argv[1])
document = Document(f)
print dir(document)
#print document.sections[0].start_type
@zaxklone
zaxklone / ist.list
Created December 10, 2014 18:34
Words ending with the suffix -IST
#Credit to http://wordlister.blogspot.com/2011/03/words-ending-in-ist.html
abacist
abiogenist
ableist
abolitionist
abortionist
absolutist also an adjective
abstentionist also an adjective
abstractionist also an adjective
absurdist also an adjective
@zaxklone
zaxklone / 0. Google Apps Scripts Snippets
Last active August 29, 2015 14:07
Code snippets for Google Apps Script
Below are snippets that are meant

How to change Pantheon Terminal's color scheme

Many of us spend many hours of our days using their terminal. Plus, we all have different tastes when it comes to color schemes. That's why the ability to change the color scheme of a terminal is one of its more important featuresl. Throughout this tutorial, I'll teach you how you can change the looks of your terminal, step by step.

This tutorial is aimed at elementary OS users, but it also works for any Ubuntu user. Start by installing dconf-tools:

sudo apt-get install dconf-tools

Secondly, you need to decide which theme you're going to apply. You can find dozens of terminal color schemes online, you can even design your own using this web application. Design the color scheme, hit "Get Scheme" and choose "Terminator". You'll get a raw text file with a background color, a foreground color and a palette. Those strings define your color scheme. In this tutorial, I'll post an

My_Daily_Hacks
==============
quick json pretty print
cat output.json | python -m json.tool
clear &&
echo 'Installing Flash for Midori' &&
read -p 'Press Enter to continue, or abort by pressing CTRL+C' nothing &&
mkdir -p ~/.mozilla/plugins &&
wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.310/install_flash_player_11_linux.i386.tar.gz &&
tar -zxvf install_flash_player_11_linux.i386.tar.gz libflashplayer.so &&
rm install_flash_player_11_linux.i386.tar.gz &&
if [ $(getconf LONG_BIT) = '64' ]
then
mv libflashplayer.so ~/.mozilla/plugins/libflashplayer.32.so &&