Matches all defs, including multi-line defs:
def\s+\w+\(((?!\):).|\n)+\):
Matches all instances of ={
and =[
:
=(\[|\{)
#!/bin/bash | |
# Since Ceph's TRIM/discard support for the rbd kernel module driver has been | |
# an open TODO for half a decade, this script attempts to boot up a minimal | |
# Ubuntu QEMU+KVM guest to do such bidding. Due to mysterious raisins, librbd | |
# has discard support, whereas the rbd kernel module does not... and QEMU uses | |
# librbd, hence this wasteful script. | |
# | |
# On "decent" server hardware at home, this completes in just under 60sec for | |
# a 100GB rbd image. | |
# |
DEVICE="he-ipv6" | |
DEVICETYPE=sit | |
BOOTPROTO=none | |
ONBOOT=yes | |
IPV6INIT=yes | |
IPV6TUNNELIPV4=184.105.253.10 | |
IPV6TUNNELIPV4LOCAL=XXX.XXX.XXX.XXX | |
IPV6ADDR=2001:470:YYYY:YYYY::2/64 | |
IPV6_DEFAULTGW=2001:470:YYYY:YYYY::1 |
#!/usr/bin/env python | |
from __future__ import print_function | |
import sys | |
def _leloo_multiparse(v): | |
parse_fn = None | |
try: | |
import pkg_resources |
/* | |
* Ugh. This code is pretty bad. But, it's the only basis I've been able | |
* to use successfully on OSX, since Apple stupidly auto-claims every single | |
* HID device on the system, making it unwritable via libusb, etc. unless you | |
* write an actual driver for it. | |
* | |
* So this will have to do. | |
*/ | |
/********************************************************************************* |
#include <stdio.h> | |
#define $$$ /**/ | |
int main(int argc, char* argv[]) { | |
$$$ $$$ $$$ $$$ printf("cashmoney indentation or bust\n"); | |
$$$ $$$ $$$ $$$ return 0; | |
} |
#!/usr/bin/env python | |
from __future__ import print_function | |
from heliotron import Bridge | |
# ...and by heliotron I mean https://github.com/briancline/heliotron | |
bridge = Bridge(ip='10.0.0.42', app_name='testscript') | |
lights = bridge.get_lights() | |
print('Good night!') |
Matches all defs, including multi-line defs:
def\s+\w+\(((?!\):).|\n)+\):
Matches all instances of ={
and =[
:
=(\[|\{)
These are based on updated instructions for the Swift multi-node setup guide.
Steps to install on Ubuntu 14.04, assuming at least two machines:
NODE=1 ./02-install-storage-node.sh
on your first storage node, NODE=2 ./02-install-storage-node.sh
on your second storage node, etc.set | grep -a '^STORAGE_'
from your proxy should show you all the storage nodes' exports.discovery.dfw1:~% gitignore | |
zsh: do you wish to see all 112 possibilities (28 lines)? y | |
Actionscript Erlang Mercury Scrivener | |
Ada ExpressionEngine MetaProgrammingSystem Sdcc | |
Agda ExtJS-MVC Meteor SeamGen | |
Android Fancy Node SketchUp | |
AppceleratorTitanium Finale OCaml SugarCRM | |
ArchLinuxPackages ForceDotCom Objective-C Swift | |
Autotools Fortran Opa Symfony | |
Bancha FuelPHP OpenCart Symfony2 |