One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| function wp_admin_bar_my_custom_account_menu( $wp_admin_bar ) { | |
| $current_user = wp_get_current_user(); | |
| $profile_url = get_edit_profile_url( $current_user->ID ); | |
| if ( 0 != $user_id ) { | |
| // Add the "My Account" menu | |
| $avatar = get_avatar( $user_id, 28 ); | |
| $howdy = sprintf( __('Welcome, %1$s'), $current_user->display_name ); | |
| $class = empty( $avatar ) ? '' : 'with-avatar'; |
| /** | |
| * This rather nifty snippet forces the category edit screen to be bound to a defined parent | |
| */ | |
| function fixUserTaxPage( $parent_file = '' ) { | |
| global $pagenow; | |
| $taxes = array('taxonomy1', 'taxonomy2', 'taxonomy3'); | |
| if ( ! empty( $_GET[ 'taxonomy' ] ) && in_array($_GET[ 'taxonomy' ], $taxes) && $pagenow == 'edit-tags.php' ) { |
| #!/usr/bin/env ruby | |
| # Aside from removing Ruby on Rails specific code this is taken verbatim from | |
| # mislav's git-deploy (http://github.com/mislav/git-deploy) and it's awesome | |
| # - Ryan Florence (http://ryanflorence.com) | |
| # | |
| # Install this hook to a remote repository with a working tree, when you push | |
| # to it, this hook will reset the head so the files are updated | |
| if ENV['GIT_DIR'] == '.' |
| #!/bin/bash | |
| # Runs a bootstrapped install for Meteor using iron-cli | |
| npm install -g iron-meteor && iron create newproject && cd newproject && iron add twbs:bootstrap aldeed:collection2 aldeed:autoform aldeed:delete-button aldeed:delete-button accounts-password ian:accounts-ui-bootstrap-3 natestrauser:font-awesome && iron |
| 1) Copy dump folder to server | |
| scp -r /local_path/to/dump_folder root@111.222.33.4:/remote/path | |
| 2) SSH into server | |
| ssh root@111.222.33.4 | |
| 3) Copy from root of server to inside docker container |
| !function (t) { | |
| function e(i) { | |
| if (n[i])return n[i].exports; | |
| var o = n[i] = {exports: {}, id: i, loaded: !1}; | |
| return t[i].call(o.exports, o, o.exports, e), o.loaded = !0, o.exports | |
| } | |
| var n = {}; | |
| return e.m = t, e.c = n, e.p = "", e(0) | |
| }([function (t, e, n) { |
| meteor create --bare chimp-testing | |
| cd chimp-testing meteor |
| #!/usr/bin/env bash | |
| if git rev-parse --verify HEAD >/dev/null 2>&1 | |
| then | |
| against=HEAD | |
| else | |
| # Initial commit: diff against an empty tree object | |
| EMPTY_TREE=$(git hash-object -t tree /dev/null) | |
| against=$EMPTY_TREE | |
| fi |
| 'use strict'; | |
| const apiURL = 'https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=BTC,USD,GBP,ETH'; | |
| module.exports.definition = { BTC: 0.1387, USD: 378.43, GBP: 302, ETH: 1 }; | |
| module.exports.run = ( mock = false ) => { | |
| const time = new Date(); | |
| this.runCryptoCurrencyChecker(mock, time); | |
| console.log(`CryptoTracker ran at ${time}`); |