How to use Pelican on GitHub Pages 
Author: Josef Jezek
sudo apt-get install python-setuptools
/* | |
* predefined classes | |
* | |
* Copyright (C) 2013 Rintaro Okamura | |
*/ | |
//mixin | |
$vendpf: -webkit-, -moz-, -ms-, -o-, ''; |
from salt.client import LocalClient | |
client = LocalClient() | |
o = client.cmd(t, 'cmd.run_all', kwarg={ | |
'cmd': 'curl *options and url redacted*', | |
'cwd': dirname | |
}) | |
print "Ret: %(retcode)d\n\nstdout:\n%(stdout)s\n\nstderr:\n%(stderr)s\n" % o[t] | |
print o[t], "\n" | |
if o[t]['retcode'] != 0: | |
client.cmd(t, 'file.remove', arg=(dirname,), timeout=5) |
// To compile this on mac: gcc -m32 -o rawcode rawcode.c | |
// Probably the same on linux, or drop the -m32. | |
// Then: ./rawcode | |
#include <stdio.h> // printf | |
#include <string.h> // memcpy | |
#include <sys/mman.h> // mmap, munmap | |
int main () { | |
// x86 machine code for: int mul (int a, int b) { return a * b; } |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
''' | |
Bootstrapping the salt minions on Rackspace (using fabric rather than | |
salt-cloud). | |
This is not the most effective way to do this, but it gets it done. |
Author: Josef Jezek
sudo apt-get install python-setuptools