I hereby claim:
- I am gcmurphy on github.
- I am gmurphy (https://keybase.io/gmurphy) on keybase.
- I have a public key whose fingerprint is 634C 0EB3 217B 3080 5C9A 0ACB 8362 ECFD 8F22 453B
To claim this, I am signing this object:
| #OpenDaylight - Vulnerability Management | |
| [TOC] | |
| ##Motivation | |
| The OpenDaylight project has gained enough momentum and popularity that the responsible management of security issues in the upstream community is warranted. OpenDaylight has in fact had its first [CVE](http://seclists.org/bugtraq/2014/Aug/75) assigned via an independent security researcher, who at the time had no process to follow. This **must** change. | |
| #!/bin/bash | |
| # Check if your site is still up and send you a direct tweet if it isn't | |
| # | |
| # [dependencies] | |
| # libwww-perl | |
| # ruby-gem -> t | |
| # | |
| # [setup] | |
| # mkdir ~/twitter_alerts | |
| # t authorize |
I hereby claim:
To claim this, I am signing this object:
| def draft_email(**kwargs): | |
| cmd = ["mutt"] | |
| if 'to' in kwargs: | |
| cmd.append(",".join(kwargs.get('to'))) | |
| if 'subject' in kwargs: | |
| cmd.append("-s") | |
| cmd.append(kwargs.get('subject')) |
| def edit_dialog(**kwargs): | |
| EDITOR = os.environ.get("EDITOR", "vim") | |
| with tempfile.NamedTemporaryFile(suffix=".tmp") as tmp: | |
| if 'prefill' in kwargs: | |
| tmp.write(kwargs.get('prefill')) | |
| tmp.flush() | |
| subprocess.call([EDITOR, tmp.name]) | |
| output = "" | |
| with open(tmp.name) as message: |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define nil NULL | |
| #define ScopedFile FILE * __attribute__((cleanup(fclosep))) | |
| #define ScopedMemory void * __attribute__((cleanup(freep))) | |
| void fclosep(FILE **f){ | |
| if (*f){ | |
| fclose(*f); |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
| http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <artifactId>parent</artifactId> | |
| <groupId>org.sonatype.mavenbook.simpleweb</groupId> | |
| <version>0.8-SNAPSHOT</version> |
| import sys | |
| import __builtin__ | |
| real_import = __builtin__.__import__ | |
| def debug_import(name, locals=None, globals=None, fromlist=None, level=-1): | |
| glob = globals or sys._getframe(1).f_globals | |
| importer_name = glob and glob.get('__name__') or 'unknown' | |
| print('{} imports {}'.format(importer_name, name)) | |
| return real_import(name, locals, globals, fromlist, level) |
| # save as ~/.pythonstartup.py | |
| # export PYTHONSTARTUP=$HOME/.pythonstartup.py | |
| # (gives you tab completion / history) | |
| import readline | |
| import rlcompleter | |
| import atexit | |
| import os | |
| readline.parse_and_bind('tab: complete') |
| #include <iostream> | |
| #include <cstdint> | |
| template<int i, uint64_t val, typename Function> | |
| class Loop { | |
| public: | |
| static inline void call(Function f){ | |
| f(i, val); | |
| Loop<i-1, val, Function>::call(f); | |
| } |