This file contains 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
uploadImageCordova = function (callback, progressCallback, localPreviewCallback) { | |
var fail = function (error) { | |
callback(error); | |
}; | |
var cameraSuccess = function (imageURI) { | |
if (_.isFunction(localPreviewCallback)) { | |
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { | |
// console.log('image URI'); |
This file contains 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
#from hive console | |
stop all miners on rig | |
disable hashrate watchdog #don't want the last miner starting back up on it's own | |
#from terminal | |
ssh user@192.168.1.XXX #the local ip of the rig | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt-get update |
This file contains 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
Verifying that +natestrauser is my blockchain ID. https://onename.com/natestrauser |
This file contains 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
Modal Markup: | |
<div class="modal modal-fixed-header"> | |
<div class="modal-header"> | |
HEADER CONTENT | |
</div> | |
<div class="modal-content"> | |
MAIN CONTENT | |
</div> | |
</div> |
This file contains 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
echo $METEOR_TOKEN > deployment_token.json | |
echo $METEOR_SETTINGS > deployment_settings.json | |
DEPLOY_HOSTNAME=galaxy.meteor.com METEOR_SESSION_FILE=deployment_token.json meteor deploy $METEOR_TARGET --settings deployment_settings.json |
This file contains 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
{ | |
"galaxy.meteor.com": { | |
"env": { | |
"ROOT_URL": "http://www.weworkmeteor.com", | |
"MONGO_URL": "mongodb://wework:PASSWORD@candidate.15.mongolayer.com:10058,candidate.14.mongolayer.com:10058/wework", | |
"MONGO_OPLOG_URL": "mongodb://wework:PASSWORD@candidate.15.mongolayer.com:10058,candidate.14.mongolayer.com:10058/local?authSource=wework", | |
"MAIL_URL": "smtp://postmaster@weworkmeteor.com:PASSWORD@smtp.mailgun.org:587" | |
} | |
}, | |
"public": { |
This file contains 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
var events = [ | |
{ name: 'approve', from: 'pending', to: 'approved' }, | |
{ name: 'reject', from: 'pending', to: 'rejected' }, | |
{ name: 'fail', from: '*', to: 'failed' } | |
]; | |
var callbacks = { | |
onapprove: function(event, from, to, order) { | |
var setObject = { |
This file contains 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
#!/usr/bin/python | |
# Connects to servers vulnerable to CVE-2014-0160 and looks for cookies, specifically user sessions. | |
# Michael Davis (mike.philip.davis@gmail.com) | |
# Based almost entirely on the quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import select |
This file contains 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
html>>>> | |
<select id="schoolSystem" name="system" placeholder="System" data-required="true" class="input-large" data-required-message="System is required"> | |
<option></option> | |
{{#each systems}} | |
<option value="{{_id}}">{{name}}</option> | |
{{/each}} | |
</select> | |
This file contains 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
Meteor.startup(function () { | |
if(!Meteor.roles.findOne({name: "admin"})) | |
Roles.createRole("admin"); | |
if(!Meteor.roles.findOne({name: "baker"})) | |
Roles.createRole("baker"); | |
if(Users.find().count() === 0){ | |
log.info('no users detected, loading sample data'); |
NewerOlder