Skip to content

Instantly share code, notes, and snippets.

View iDoMeteor's full-sized avatar
🇺🇸
Live free, code hard, be prepared.

@iDoMeteor iDoMeteor

🇺🇸
Live free, code hard, be prepared.
View GitHub Profile
@iDoMeteor
iDoMeteor / Install Ruby and RubyGems
Created July 12, 2017 07:00 — forked from chiraggude/Install Ruby and RubyGems
Install Ruby 2.1.1 and RubyGems 1.8.25 on CentOS 6.5
# Install Ruby
wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz
tar xvzf ruby-2.1.1.tar.gz
cd ruby-2.1.1
./configure --prefix=/usr
make
make install
# remove "ruby-2.1.1" folder in /root
@iDoMeteor
iDoMeteor / mkgit-centos6.sh
Created March 7, 2017 08:11 — forked from eyecatchup/mkgit-centos6.sh
Bash script to install the latest Git version on CentOS 6.x.
#!/usr/bin/env bash
# Install the latest version of git on CentOS 6.x
# Install Required Packages
sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
sudo yum install gcc perl-ExtUtils-MakeMaker
# Uninstall old Git RPM
sudo yum remove git
@iDoMeteor
iDoMeteor / wc-customer-csv-export-renaming-removing-reordering-columns.php Rename, Re-order, or Remove columns from Customer CSV with WooCommerce Customer/Order CSV Export
<?php
/**
* These samples do not have to be used together
* They show how to rename, re-order, or remove columns
* from the exported customer CSV
*/
/**
* Rename Customer CSV Columns
* Sample: rename the customer_id column to User ID
@iDoMeteor
iDoMeteor / example.js
Created July 13, 2016 07:11 — forked from osteenbergen/example.js
Laterjs Timezone support with MomentJS Timezone library
// Timezone library
var moment = require("moment-timezone");
// Later
var later = require("later");
// The schedule we would like to support:
var sched = later.parse.text("at 17:00");
// In March CET switches to CEST (daylight saving) so this is a nice example
var timezone = "Europe/Amsterdam";
@iDoMeteor
iDoMeteor / forward_backward.js
Created July 2, 2016 04:22 — forked from burakcan/forward_backward.js
Basic F# forward / backward operators in JS
/* jshint esnext: true */
const FORWARD = '|>';
const BACKWARD = '<|';
function _(...args) {
return function(value) {
return args.reduce((val, curr, index) => {
switch(curr) {
case FORWARD:
@iDoMeteor
iDoMeteor / parse_aws.md
Created May 14, 2016 16:46 — forked from hassy/parse_aws.md
Deploying Parse Server on AWS (WIP)

Deploying Parse Server on AWS

Note: this is a work-in-progress and will be updated with more information over the next few days.

Intro

This guide will walk you through deploying your own instance of the open-source Parse Server. This would be a good starting point for testing your existing application to see if the functionality provided by the server is enough for your application, and to potentially plan your migration off the Parse Platform.

This guide will walk you through using Elastic Beanstalk (EB), which is an AWS service similar to Heroku. Why use EB rather than Heroku? Elastic Beanstalk does not lock you into Heroku-specific ways of doing things, is likely cheaper to run your backend on than Heroku, and it integrates with other services that AWS offer (and they offer almost everything one needs to run an application these days).

@iDoMeteor
iDoMeteor / meteor-dump.sh
Created January 26, 2016 23:49 — forked from olizilla/meteor-dump.sh
Dump a mongo db from a live meteor app to a local dump dir.
#!/bin/bash
# __
# _____ ____ _/ |_ ____ ____ _______
# / \ _/ __ \ \ __\_/ __ \ / _ \ \_ __ \
# | Y Y \\ ___/ | | \ ___/ ( <_> ) | | \/
# |__|_| / \___ > |__| \___ > \____/ |__|
# \/ \/ \/
#
# .___
# __| _/ __ __ _____ ______
// Just paste this into the console on http://www.jshint.com/docs/options/
(function() {
var i, row, link, span, extraCol, checkbox, value;
var rows = document.querySelectorAll('table.options tr');
var links = document.querySelectorAll('table.options a');
// add checkboxes
for (var i = 0; i < rows.length; i++) {
row = rows[i];
@iDoMeteor
iDoMeteor / scrape.js
Last active August 29, 2015 14:22 — forked from yurivictor/scrape.js
var cheerio = require('cheerio');
var request = require('request');
var fs = require('fs');
var s,
Scrape = {
settings: {
// Object, the json to be output
json: {},
// String, the url to scrape