(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
'''Hide a zipfile in an image or unpack an image with a hidden archive in it''' | |
import argparse | |
from zipfile import ZipFile | |
def hide(image_file, archive_file): | |
'''Append an archive onto the end of an image''' | |
# open the image file in "append binary" mode |
'''Hide a zipfile in an image or unpack an image with a hidden archive in it''' | |
import argparse | |
from zipfile import ZipFile | |
def hide(image_file, archive_file): | |
'''Append an archive onto the end of an image''' | |
# open the image file in "append binary" mode |
import argparse |
<!DOCTYPE html> | |
<html><head data-gwd-animation-mode="quickMode"> | |
<meta name="generator" content="Google Web Designer 1.0.0.924"> | |
<meta name="template" content="Banner 1.0.5"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style type="text/css">html, body { | |
width: 100%; | |
height: 100%; | |
margin: 0px; |
<script type='text/javascript'> | |
googletag.cmd.push(function() { Modernizr.mq('(min-width: 1200px)') && googletag.display('div-gpt-ad-1377815593640-3') }); | |
</script> |
import sys | |
from django.conf import settings | |
from django.core.cache import cache | |
from twython import Twython, TwythonError | |
from ttp.ttp import Parser | |
from pprint import pprint | |
def parse_tweet(x): | |
""" |
from StringIO import StringIO | |
import requests | |
from xmlutils.xml2csv import xml2csv | |
"""Grab xml schedules from gsl.tandemcal.com and convert to csv""" | |
varsity_sports_ids = { | |
"boys_baseball": 26, | |
"boys_basketball": 19, | |
"girls_basketball": 20, | |
"boys_cross_country": 7, |
return {"category": category, | |
"category_url": category_url, | |
"winner": winner, | |
"runners_up": runners_up} |
""" | |
In the terminal, go to the directory of the files you want to rename | |
Open yer python CLI, import os, then one-liner. I guess technically 2-liner | |
""" | |
import os | |
[os.rename(f, f.replace('_','-')) for f in os.listdir('.')] |