I'm writing this up from memory, so errors may appear.
This has been updated to use SHA256 certificates.
- Go to http://www.startssl.com/
- Click on 'Control Panel'
fun! ToggleTerminal() | |
let terms = term_list() | |
if terms == [] " no terminals, open one | |
botright term | |
elseif bufwinnr(terms[0]) == -1 " terminal hidden, show it | |
exec 'botright sbuffer' terms[0] | |
else " terminal visible, hide it | |
exec bufwinnr(terms[0]) .. 'hide' | |
endif | |
endf |
#!/usr/bin/python | |
import subprocess | |
DOCUMENTATION = ''' | |
--- | |
module: postfix | |
short_description: changes postfix configuration parameters | |
description: | |
- The M(postfix) module changes postfix configuration by invoking 'postconf'. |
I'm writing this up from memory, so errors may appear.
This has been updated to use SHA256 certificates.
#!/usr/bin/python | |
"""Print a swatch using all 256 colors of 256-color-capable terminals.""" | |
__author__ = "Marius Gedminas <marius@gedmin.as>" | |
__url__ = "https://gist.github.com/mgedmin/2762225" | |
__version__ = '2.0' | |
def hrun(start, width, padding=0): |
use num_integer::lcm; | |
use std::cmp::Ordering; | |
use std::collections::{BinaryHeap, HashMap}; | |
#[derive(Copy, Clone)] | |
pub struct Pos { | |
x: usize, | |
y: usize, | |
} |
use lazy_static::lazy_static; | |
use num_enum::{IntoPrimitive, TryFromPrimitive}; | |
use num_integer::gcd; | |
use regex::Regex; | |
use std::collections::{HashMap, VecDeque}; | |
#[repr(u8)] | |
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] | |
pub enum Facing { | |
Right = 0, |
use std::collections::HashMap; | |
use num_rational::Rational64; | |
pub type Number = Rational64; | |
#[derive(Debug)] | |
pub enum Expr<'a> { | |
Unknown, | |
Number(Number), | |
Add(&'a str, &'a str), |
# This is the actual file that combines all of the other snippets | |
# I've been using it for a while, so it's officially Bug Free (TM) | |
# Python startup script. vim: set ft=python : | |
# from http://www.norvig.com/python-iaq.html | |
# also see Tarek Ziade's _Expert_Pythom_Programming_ page 19 | |
import os, sys | |
# Coloured prompt | |
if os.getenv('TERM') in ('xterm', 'vt100', 'rxvt', 'Eterm', 'putty'): |
#!/usr/bin/python | |
""" | |
Produce a disk inventory for fridge: | |
- how many hard disks and how large | |
- how are they partitioned | |
- how are the RAID devices defined | |
- where are they mounted | |
- how much space is used and how much is free |
#!/usr/bin/env python3 | |
# See http://stackoverflow.com/questions/3581031/backup-mirror-github-repositories/13917251#13917251 | |
# You can find the latest version of this script at | |
# https://gist.github.com/4319265 | |
import os | |
import sys | |
import json | |
import urllib.request | |
import subprocess |