Skip to content

Instantly share code, notes, and snippets.

View doodlemoonch's full-sized avatar

Matt Tortolani doodlemoonch

View GitHub Profile
@doodlemoonch
doodlemoonch / scratch.js
Created March 15, 2023 15:00
Debug when cookies are set
origDescriptor = Object.getOwnPropertyDescriptor(Document.prototype, 'cookie');
Object.defineProperty(document, 'cookie', {
get() {
return origDescriptor.get.call(this);
},
set(value) {
debugger;
return origDescriptor.set.call(this, value);
},
enumerable: true,
import React, { useEffect, useState } from 'react';
import { ActivityIndicator, View } from 'react-native';
import { WebView } from 'react-native-webview';
import { AuthHeaders, getCognitoHeaders } from '@root/cognito/cognitoSessionInfo';
import { useAppSelector } from '@hooks/hooks';
export interface IAuthenticatedWebviewProps {
url: string;
injectedJavaScript?: any;
onShouldStartLoadWithRequest: any;
diff --git a/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java b/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java
index d7d32cd..2443037 100644
--- a/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java
+++ b/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java
@@ -4,28 +4,25 @@ import android.app.Activity;
import android.app.Application;
import android.content.Intent;
import android.os.Bundle;
-import android.util.Log;
@doodlemoonch
doodlemoonch / arial.ttf
Last active March 26, 2019 18:08
arial.ttf

After migrating from heroku to dokku, we had to also chance codeship so we deploy to dokku. I followed the following steps to successfully deploy to dokku.

  1. Save the public key of the codeship project. It is found in Project Settings > General Settings.
  2. Copy the public key to a file /tmp/codeship_projectname.pub.
  3. Make sure when pasting, all the contents are in a single line and not multiple lines.
  4. Add the public key to dokku using the following command in console. Reference.
cat /tmp/codeship_projectname.pub | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<canvas id="canvas" height="1000" width="1000"></canvas>
</body>
</html>
@doodlemoonch
doodlemoonch / README.md
Last active December 16, 2015 05:59 — forked from assimovt/README.md

Setup

Add the following gems to your Gemfile:

gem 'activeresource'
gem 'newrelic_api'

Update your bundle: