Skip to content

Instantly share code, notes, and snippets.

View newswim's full-sized avatar
🦬
Hi

Dan Minshew newswim

🦬
Hi
View GitHub Profile
@newswim
newswim / remove_brew-mongo_osx.sh
Created October 22, 2015 12:53 — forked from katychuang/remove_brew-mongo_osx.sh
remove mongodb that was installed via brew
#!/usr/bin/env sh
# checks to see if running
launchctl list | grep mongo
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
launchctl remove homebrew.mxcl.mongodb
pkill -f mongod
@newswim
newswim / fcc_solutions.js
Last active October 25, 2015 18:13
Free Code Camp JS Path *solutions
/*
Recursion
*
A function that evokes itself within its lexical scope
*
*/
function factorialize(num) {
// If the number is less than 0, reject it.
@newswim
newswim / open_graph_and_seo.html
Last active October 26, 2015 13:21
Meteor SEO Settings and
<script>
onAfterAction: function(){
document.title = 'my awesome site: ' + Router.current().route.getName();
}
</script>
<!-- I use a head.html that includes various SEO settings: -->
<head>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
@newswim
newswim / dump.sh
Created October 27, 2015 19:57
dump of savi-metal/get-network
19:56:20.912Z ERROR SAVI: connect ECONNREFUSED (klass=/savi-metal/get-network, arguments=[], err.code=ECONNREFUSED)
I20151027-14:56:20.915(-5)? Error: connect ECONNREFUSED
I20151027-14:56:20.915(-5)? at Object.Future.wait (/Users/dm/.meteor/packages/meteor-tool/.1.1.4.1ty214v++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:398:15)
I20151027-14:56:20.915(-5)? at Object.call (packages/meteor/helpers.js:119:1)
I20151027-14:56:20.915(-5)? at Object.HTTP.get (packages/http/httpcall_common.js:45:1)
I20151027-14:56:20.915(-5)? at [object Object].Meteor.methods./savi-metal/get-network (packages/savi:metal/server/savi_metal.js:56:1)
I20151027-14:56:20.915(-5)? at maybeAuditArgumentChecks (packages/ddp/livedata_server.js:1617:1)
I20151027-14:56:20.915(-5)? at packages/ddp/livedata_server.js:648:1
I20151027-14:56:20.916(-5)? at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1
@newswim
newswim / 56GB.js
Created November 5, 2015 04:50 — forked from vicapow/56GB.js
Was I really just able to allocate 56GB of memory in Google chrome?
var x = [];
for (var i = 0; i < 56; i++) {
x.push(new Uint8Array(1024 * 1024 * 1024));
}
console.log(x.length);
@newswim
newswim / parallels-tools-install.log
Created November 5, 2015 16:24
Error logs from attempting install of Parallels Tools in Ubuntu 15.10 (OS X 10.10 Yosemite)
2015-11-03T11:01:33-0600:
Parallels Tools 11.0.2-31348 Installer started.
2015-11-03T11:01:35-0600: execCmd: ./installer/pm.sh --check gtools [0]
Started installation of Parallels Guest Tools version '11.0.2.31348'
Tue Nov 3 11:01:35 CST 2015
Start installation or upgrade of Guest Tools
new version of parallels tools
Installed Guest Tools were not found
@newswim
newswim / blah.sh
Created November 28, 2015 21:24
trying to install web starter kit...
│ ├─┬ pretty-bytes@2.0.1
│ │ ├── get-stdin@4.0.1
│ │ ├─┬ meow@3.6.0
│ │ │ ├─┬ camelcase-keys@2.0.0
│ │ │ │ ├── camelcase@2.0.1
│ │ │ │ └── map-obj@1.0.1
│ │ │ ├─┬ loud-rejection@1.2.0
│ │ │ │ └── signal-exit@2.1.2
│ │ │ ├── minimist@1.2.0
│ │ │ ├─┬ normalize-package-data@2.3.5
@newswim
newswim / gist:508f453926fb1de842ed
Created December 2, 2015 20:10
dump of some mongo shell things
### trying to deploy to aws via distelli
> show profile
db.system.profile is empty
Use db.setProfilingLevel(2) will enable profiling
Use db.system.profile.find() to show raw profile entries
> admin.help()
Wed Dec 2 20:05:29.741 ReferenceError: admin is not defined
> show dbs
admin 0.203125GB
@newswim
newswim / gist:175406078a9ae6c123b8
Created December 2, 2015 20:45
distelli manifest for meteor
### Taken from these two sources :
######## https://www.distelli.com/docs/tutorials/deploying-meteor-applications
######## https://github.com/aldeed/deploymeteor
fracknews/FrackNews:
#Learn about the distelli-manifest.yml at https://www.distelli.com/docs/reference/distelli-manifest
PkgInclude:
- '*'
@newswim
newswim / distelli-manifest.yml
Created December 4, 2015 16:22
Distelli manifest for Meteor application
fracknews/FrackNews:
#Learn about the distelli-manifest.yml at https://www.distelli.com/docs/reference/distelli-manifest
PkgInclude:
- '*'
Build:
- echo "Begin Build"
# - npm install