Skip to content

Instantly share code, notes, and snippets.

View maxfierke's full-sized avatar
🌋
NoMethodError: undefined method `status' for #<ProfileInfo:0x00007fc2ffae9f38>

Max Fierke maxfierke

🌋
NoMethodError: undefined method `status' for #<ProfileInfo:0x00007fc2ffae9f38>
View GitHub Profile
@maxfierke
maxfierke / cancelable-fetch.js
Last active April 21, 2022 18:15
cancelableFetch Yieldable ember-concurrency
import { Yieldable } from 'ember-concurrency';
import fetch from 'fetch'; // i.e. ember-fetch. could also use native fetch too.
class FetchYieldable extends Yieldable {
constructor(url, opts = {}) {
super(...arguments);
this.url = url;
this.opts = opts;
}
@maxfierke
maxfierke / components.uses-task-one.js
Created August 8, 2019 04:20
Importable Tasks example
import Ember from 'ember';
import myTask from '../my-task';
export default Ember.Component.extend({
myTask
});
import EmberTooltipComponent from 'ember-tooltips/components/ember-tooltip';
export default EmberTooltipComponent.extend({
effect: 'fade',
side: 'bottom',
});
@maxfierke
maxfierke / controllers.application.js
Last active May 18, 2018 22:39
e-c vs e-c-retryable return erroring promise
import Ember from 'ember';
import { task, timeout, all } from 'ember-concurrency';
import { retryable, DelayPolicy } from 'ember-concurrency-retryable';
import RSVP from 'rsvp';
const delayPolicy = new DelayPolicy({ delay: [100, 100] });
const originalEmberOnError = Ember.onerror;
let defers = [];
import Ember from 'ember';
import { task, timeout, all } from 'ember-concurrency';
import { retryable, DelayPolicy } from 'ember-concurrency-retryable';
import RSVP from 'rsvp';
const delayPolicy = new DelayPolicy({ delay: [100, 100] });
const originalEmberOnError = Ember.onerror;
let defers = [];
@maxfierke
maxfierke / controllers.application.js
Last active May 30, 2017 21:04
ember-procrastination demo
import Ember from 'ember';
import { someday } from 'ember-procrastination';
import { timeout } from 'ember-concurrency';
export default Ember.Controller.extend({
regenerateNumber: someday(function* () {
this.set('num', Math.random());
yield timeout(1000);
})
});
@maxfierke
maxfierke / controllers.application.js
Created May 16, 2017 02:06
injecting DS.Store into a helper
import Ember from 'ember';
const { inject } = Ember;
export default Ember.Controller.extend({
store: inject.service()
});
@maxfierke
maxfierke / README.md
Last active September 8, 2020 14:34
PM2 as a Windows Service under Local Service

PM2 as a Windows Service under Local Service

This is a PoC for running PM2 as a Windows Service under the Local Service account instead of the Local System account.

Prerequsites

  • Neither pm2 or pm2-windows-service installed yet. (The Powershell script will run npm i)
    • At the very least, you should run pm2-service-uninstall before running this script
  • npm and npm-cache global folders should be somewhere accessible to NT AUTHORITY\LocalService.
@maxfierke
maxfierke / 0001-AxDroid-Dell-Axim-x51v-patches.patch
Created November 9, 2015 04:50
Collection of Dell Axim X50/X51(v) related linux patches
From 6d9ae3523f12b1cf0e65ca493b8a2fb73fd31bf9 Mon Sep 17 00:00:00 2001
From: Ertan Deniz <[email protected]>
Date: Tue, 25 Aug 2009 20:04:07 +0300
Subject: [PATCH] AxDroid - Dell Axim x51v patches
---
Makefile | 6 +-
arch/arm/configs/aximx50_static_defconfig | 1638 ++++++++++++++++
arch/arm/mach-pxa/Kconfig | 2 +
arch/arm/mach-pxa/Makefile | 1 +
@maxfierke
maxfierke / docker-compose.yml
Created September 26, 2015 21:07
Docker-compose roles reusing same image
db:
image: postgres:9.4.1
ports:
- "5432:5432"
redis:
image: redis
worker:
build: .
command: bundle exec sidekiq
environment: